DELETE vs CLEAR vs REFRESH vs FREE
DELETE CLEAR REFRESH FREE
These are different ways of deleting all data from an internal table. They look the same. But they aren’t.
DELETE CLEAR REFRESH FREE
These are different ways of deleting all data from an internal table. They look the same. But they aren’t.
Get ready because you’ll soon be running into a lot of surprises. ABAP is learning new tricks. Look at this one:
CONSTANTS:
lc_menina TYPE STRING VALUE ‘GIRL',
lc_menino TYPE STRING VALUE ‘BOY’,
lc_senhor TYPE STRING VALUE ’GENTLEMAN’,
lc_senhora TYPE STRING VALUE ‘LADY’.
SELECT nome,
CASE
WHEN sexo_id = ‘M' AND idade < 18 THEN @lc_menino
WHEN sexo_id = ‘F’ AND idade < 18 THEN @lc_menina
WHEN sexo_id = ‘M' AND idade >=18 THEN @lc_senhor
WHEN sexo_id = ‘F’ AND idade >=18 THEN @lc_senhora
END AS titulo
FROM zpessoa
WHERE pessoa_id = @pessoa_id
INTO CORRESPONDING FIELDS OF @lt_pessoas.You just have to wait for version 7.40.
Google Chrome has an app for searching SAP notes. It’s called SAP Notes finder.
You can install it here.
Thank you Fernanda Mirabile and Talita Polanczyk for the tip.
Greetings from Abapinho.
Reports still writing directly to the screen are very hard to maintain whenever changes to the layout are required. On such occasions, review the code and, if the effort involved is not too big, consider converting it to ALV. Always involve the functional people in this decision.
[:pt]O Pedro Lima (responsável pelo OnSAP) fez um curso online grátis a ensinar os rudimentos da depuração em ABAP. Espreitem pois está bem feito e porque estas iniciativas merecem todo o nosso apoio. Tenho a certeza de que o Pedro fará mais cursos se vir que há público interessado.
Nota: o curso é em inglês.
O Abapinho saúda-vos [:]
Sadly, Abapinho will not be able to continue posting the English translation of the Portuguese posts. I am sorry to all the readers who don’t speak Portuguese.
Abapinho’s main goal has always been to publish ABAP content written in Portuguese. But the possibility of also publishing them in English was a great asset because it allowed us to reach a much wider audience. We were able to do it for several years because the translations were sponsored. Unfortunately, at least for now, this will no longer be possible. For this I ask your understanding.
[:pt]Sabias que quando invocas uma função com a opção DESTINATION ‘NONE’ estás a iniciar uma nova LUW?
Isto pode parecer apenas uma curiosidade, mas há um caso em que pode fazer toda a diferença: sabes aqueles módulos de função que ao serem chamados uma segunda vez têm um comportamento diferente da primeira vez? Isto acontece porque eles hão-de ter alterado alguma variável global ao grupo de funções. Ora se iniciares uma nova LUW quando chamares a função, o seu grupo de funções é automaticamente inicializado e assim garantes que o comportamento da função é o esperado.
If you’re still not using exception classes, then you’re making a mistake. Cause they are very healthy for your code. They’re not only good nutrients for the system, they also make it lean and less vulnerable to diseases.
There are cases where you still need to deal with the old exceptions. For example, when a function module is invoked.
In this article I am presenting a suggestion that seems a little complex, but it works very well if you need to integrate the old exceptions with exception class in a simple way. And though it is sophisticated, you only need to do it once. Once it’s done, it’s easy to use.
[:pt]O Flávio Pagoti, do blog ABAP101 publicou um livro em português sobre SAPUI5/OPENUI5.
Aqui está o artigo do ABAP101 a anunciar o livro. Lá encontras um link para o comprar. Custa $9,99.
A minha principal motivação quando decidi criar o Abapinho foi exactamente combater a gritante falta de conteúdos técnicos de qualidade escritos em português. Hoje as coisas estão um pouco melhores, em particular no mundo do ABAP onde há vários blogs de óptima qualidade. É fantástico que surjam publicações em português nesta área, ainda por cima de um assunto tão novo e inovador como este. Desejo-lhe muito sucesso.