Supported by
Supported by Inetum

More RANGEs, less SELECTs

images/thumbnail.jpg - Thumbnail
The dictionary has the following entry for “style”: “set of formal aspects and expressive resources that characterise a text.” It is preferable to read a text with style than one without. If ABAP were a language, a program in ABAP would be a text. When it comes to style, there are programs that seem to have been written by the feet, while there are others that one would swear the quill that wrote them was guided by the pure hand of an eighteenth century lady plagued by the troubles of love. Fortunately, I think it’s not possible to write programs in ABAP as tacky as the last sentence. The “style” label is used here in Abapinho to identify articles that talk about just that: style. These articles try to find ways to improve the style of ABAP programs. This is one of Abapinho’s favourite labels, as you can see here. And what you are reading is another of those articles. Moving on.

Follow your fingers

images/thumbnail.jpg - Thumbnail
I have a number of friends working as managers, lawyers, marketers, programmers, etc., at very dynamic and competitive companies who are allegedly very busy and are always up to their eyeballs in work. They dedicated several years of their lives to their degrees in order to specialise in a particular field and some of them have put in the extra effort to get a postgraduate diploma in order to be better qualified and therefore able to do more both better and faster. However, the vast majority of them use two fingers when typing at a computer. Over a number of years they have acquired many skills that supposedly make them ultra efficient and yet they still type with two fingers.

<!--:pt-->Curso ABAP em São Paulo - 10% de desconto!<!--:-->

images/thumbnail.jpg - Thumbnail
(actualizado em 16 de Junho) Queres aprender ABAP e moras em São Paulo? Se sim, aqui está a tua oportunidade. ZTREINAMENTO vai realizar um curso de 8 6 semanas que custará R$1.200,00 R$750,00 e é adequado a pessoas sem qualquer conhecimento de ABAP. Serão abordados os seguintes temas: Entendendo alguns conceitos de ABAP Comandos básicos Data Dictionary Trabalhando com funções Trabalhando com module pool

Slash O

images/thumbnail.jpg - Thumbnail
Throughout all my &ldquo;SAP life&rdquo; I’ve used the command /olalala to initiate the lalala transaction in a new GUI window. Until now I had never tried just writing /o. I did today. The result was interesting. Meaning, it’s the same as going to SM04 and then choosing our user. But much easier. Greetings from Abapinho

Gregarious constants

images/thumbnail.jpg - Thumbnail
If you are one of those who insert the values directly in code instead of using constants, then read no more and go and stand over there in the corner on punishment for 1 hour to learn not to be lazy. If you&rsquo;ve come back from punishment or you usually use constants, then please continue reading.

Your password has expired. Change it 5 times.

images/thumbnail.jpg - Thumbnail
It is not uncommon for us to be emotionally attached to our passwords. Therefore, it is always rather painful to receive those despicable threatening notices that say &ldquo;your password is going to expire”. Soon followed by the blow we receive to our heart on the appearance of the inevitable vile invective that &ldquo;your password has expired.&rdquo; At such times, the hurt is so great that all the muses leave us, we have imagination cramp and remain stuck there, staring and drained, emptied of any idea to help us choose our next password.

Insert variables in standard texts

images/thumbnail.jpg - Thumbnail
Everyone uses standard texts. But did you know that standard texts can have dynamic fields in the middle? SAP calls them &ldquo;text symbols&rdquo;. The way to do it is identical to that of the old forms of the harmful SE71, in other words wrapping them in the &amp; symbol. Thus: &amp;KNA1-NAME1;&amp;. It’s really handy. I’ll show you how it’s done.

Client or Customer?

images/thumbnail.jpg - Thumbnail
Wherever you use the data element KUNNR, its descriptions is “Client”. And what if we wanted to change this field description from &ldquo;Client&rdquo; to &ldquo;Customer&rdquo;? “Customer&quot; is so much nicer! Or let&rsquo;s suppose that the company you work for is trafficking in drugs and tells you that they want &ldquo;Dealer&rdquo; rather than “Supplier” to appear in the LIFNR field. Obviously we can label it as we wish on screens and Z reports but what about standard transactions?

Adding buttons to the selection screen

images/thumbnail.jpg - Thumbnail
Normally, when buttons must be generated for users to click, Screen Painter is used to create a screen which is then invoked by the report using CALL SCREEN. But, unless the screen being designed is already quite complex it is pointless creating a screen which will have no further use. Screens have always annoyed me. I will demonstrate an example of using buttons on a completely normal selection screen resorting to a button called PUSHBUTTON and a very clever trick called ONLI.

Fill up the selection screen with cartoons

images/thumbnail.jpg - Thumbnail
Was SAP born miserable or are SAP-users simply unable to cheer it up? The truth is that SAP GUI is no rainbow and neither does looking at it bring happiness. Even so, it puts at our disposal a bunch of cartoons that we may use to make it just a little more uplifting. And take a look at just how easy it is.

Oh time turn back

images/thumbnail.jpg - Thumbnail
“Oh time turn back Give me everything I have lost Take pity and give me the life The life I have already lived Oh time turn backward Kill off my futile hopes Look how even the sun itself Returns every morning” – António Mourão Hey Tony, right away. I will show you how you can turn back time.

Search object attributes in an internal table

images/thumbnail.jpg - Thumbnail
There are increasingly more objects in ABAP, gradually less fear of them and, lo and behold, more and more people are writing and using them. It is normal and desirable, if objects begin to appear everywhere, to start to stuff them into internal tables. I also stored a load of objects in tables a while back, unfortunately I did not know at that time what I am going to teach you here. It could have come in handy. So, what exactly am I going to teach you here?

Implementing private methods in BADIs

images/thumbnail.jpg - Thumbnail
A little while ago I had an idea as eccentric as it was amazing that today I have decided to share here, namely, how to create private methods in BADI classes. Let me explain.

How to sabotage tables

images/thumbnail.jpg - Thumbnail
Another article to help those who are into sneaky subversion Spies, take note on how to edit a table that cannot be (and probably shouldn’t be) edited. I’ll show you three techniques. The first stopped being useful a few years ago, the second is about to become obsolete and the third, well, we’ll just have to see for how long it will work. 1. SE16 /H OK_CODE EDIT The first technique dates back to the twentieth century and uses the old transaction SE16.

F1 + F9 = Technical Information

images/thumbnail.jpg - Thumbnail
In a functional screen I often feel the need to see technical information about a particular field. I place the cursor on the field I want, then I click on F1 and a dialog screen will appear with help for that field. Then I click on the button that says &ldquo;technical information&rdquo;.But there is a quick way to do the same thing using only the keyboard. There are two possible ways for F1 to display the help for one specific field: