When you create the code sometimes you forget about optimizing of your code or you don't know how to properly use a statement. This is category for you.
...
If you follow me on social media, you probably already know that I have written a book about ABAP in Eclipse. The full title is: ABAP in Eclipse - Install, Configure, Use, and Enhance Your ADT ...
...
Once done, you should create handler for the event and notify ALV grid about it. To do so, you need to declare a method (named hotspot_click in my example) with the addition FOR EVENT HOTSPOT_CLICK ...
... selection of fields to display in layout change window, you’ll be able to choose to see all hidden fields or the hidden fields from the group you’ve created. If you don’t pass the group name into IT_SPECIAL_GROUPS, ...
... toolbar button “Call Up Report” once you select a line or cell in the grid.
Figure 105 Calling up RRI
Once used, the second program (ZDEMO_AIN_CL41R) is called without selection-screen ...
... not bother yourself about it. But if you do, then take into consideration following information:
Length is in Bytes, so remember that it doesn’t mean, that one character takes one Byte
In display ...
... table field. But if you’ll have unstoppable need of filling it, then the behaviour of the column will be exactly the same like you would use DATATYPE field, means JUST, OUTPUTLEN, INTTYPE, INTLEN and DD_OUTLEN ...
DATATYPE field has small influence on the way the column is displayed. You can omit this field and then ALV grid will automatically fill this field and additionally JUST, OUTPUTLEN, INTTYPE, INTLEN and ...
... ZDEMO_AIN_CL35 Change layout screen
Additionally to this, the main behaviour is also there. F1 shows the documentation from the data element.
Figure 88 ZDEMO_AIN_CL35 ...
TOOLTIP, as in any other places in on your PC, is responsible to show short info about the column when you hover your mouse over the column header. It’s very useful when you have a lots of fields in you ...
SELTEXT is one of the fields that are linked to the texts of the grid columns. This particular one is responsible for displaying the name of the column in the change/display of layout popup. ...
... _OUTPUT. _INPUT and _OUTPUT describes if the FM is responsible for converting external value into internal (INPUT) or form internal value into external (OUTPUT).
Figure 75 Search ...
OUTPUTLEN can be used to setup the width of the column (if you don’t use automatic column width optimization). When automatically created, usually it have the value of the maximum field width, but when ...
Technical field allows you to do similar thing as NO_OUT, you can hide the field on the output, the difference is that, users are not able to unhide this field. As NO_OUT, in order that TECH field work, ...
NO_OUT is useful when you want to hide the field on the output, but still allow users to unhide it on demand. As lots of fields from field catalog, it can be filled with ‘X’ or space (default).
If ...
DO_SUM is very helpful when you want to assure that some of the numeric fields are summarized directly after the output, without interaction from the user side. In order to do so, just put the ‘X’ or ABAP_TRUE ...
If you are familiar with the WRITE statement, then probably you know the EDIT_MASK addition which allows us to do formatting of the output in two different ways, you can apply the same to the EDIT_MASK ...
This field is responsible for setting up columns in proper order while displaying the grid without using of saved layout. It may be useful if you don’t allow your users to save their own or global grid ...
... of internal table. As I haven’t filled anything in there beside the name of the field, the output will be really poor. We will have data displayed in our grid, but without any descriptions in header, without ...
... not make difference to the output, but there are some exceptions, for example JPY (Japanese Yen) don’t have decimal places. Figure 17 displays value of 42 294 whereas the internal value of field is ...
... should place its name here. The output of the cell will be then based on a currency key kept in the same row of the internal table, in the corresponding field.
In the sample program ZDEMO_AIN_CL09 ...
... in output I’ve modified a bit the table entries, this time field DISTANCE from SPFLI table, where I’ve included decimal places for first row.
Figure 22 Changed entries of SPFLI table ...
... you can see 2,5723, so the comma sign was moved left by 3 positions.
Figure 30 ZDEMO_AIN_CL12 Results with 3 as P_ROUND value
Also changed output is visible when you use negative ...
QFIELDNAME has the same meaning for quantity fields, like CFIELDNAME for amount fields. This means that we can setup in which column of internal table the information about unit of measure is kept. On ...
... how the field is displayed in ALV grid.
For example, the picture below, shows the results of the ALV output when EXPONENT field was set to 2.
Figure 32 ZDEMON_AIN_CL13 Results ...
The name of this field says almost everything about it. If you put an ‘X’ in it, then the column will be displayed as checkbox. The type of the field which is used as checkbox should be set to ABAP_BOOL ...