We got all needed functions, so I'll give you an example how to call the methods correctly to get characteristics update window like this: Program bellow is reading firstly the info about stored ...
As I promised I will show how to use the methods we've prepared in previous parts of this tread. I will write simple program that calls the method get_objects_of_class and then loops through the results ...
...
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 ...
... with any desired characteristic, for example, in report to list materials with all master data from client, plant and sales organization level, you could use the origin of the columns as a group factor. ...
You may suspect that setting up a domain name in the field catalog will make some effect on the display, for example in data type, length, lowercase sign, but it seems that it has no effect in ALV grid. ...
... Transaction. Probably depending on the installed version of your system, or addons, the list of the interfaces may be longer.
Anyway I’ve focused here on a simple example of calling another ABAP report ...
... mode, you’ll not notice probably any change
When you’ll setup this incorrectly, you may have problems when you allow grid to be editable, for example:
When I’ve set the INTLEN to ‘2’ for column FLTIME, ...
Following the example of downloading exchange rates from Central Bank Of Turkey using transformations, please find bellow the same way for National Bank of Poland.
Again, lets create an RFC destination ...
One of the standard requests that comes with every SAP implementation is automatic download of exchange rates to your system. Today I will show you on an example of Central Bank Of Turkey, how to transform ...
... type, or for example a table.
Just like DATATYPE, you don’t need to fill this field manually, when you’ll leave it empty, ALV grid will automatically setup a proper type according to referenced internal ...
... that easily visible.
For example, if you use TIMS data type, you’ll noticed that the length of the columns CONNID, FLTIME and DEPTIME is set to 8, additionally justification is set to L (columns 2, 8,9) ...
... grid and you’re optimizing the width of the column by minimizing the description of the column itself. It is common behaviour for example for checkboxes or for icon columns. In this case the Tooltip is ...
... no more and no less than a function modules that helps to represent the internal values into understandable or more readable values. An basic example is field MATNR which is 18 characters long in ECC and ...
... value or to the width of column description.
Below some examples of the different settings of the OUTPUTLEN for the field CITYFROM.
Figure 73 ZDEMO_AIN_CL31 Output length set to ...
... internal table that supposed to be displayed, but you do not want to display them. Such field can be used for example during the event handling or displaying totals and subtotals.
It can also be used ...
FIX_COLUMN can be useful when you have a lots of fields in the field catalog and you want to make sure that some of the key fields are always visible, for example sales order number and position or posting ...
... of field catalog as well.
Using Conversion-Exit, for example ‘==ALPHA’, where ‘==’ sings represents the information that we’re using conversion-exit, and the next 5 characters are reserved for the ...
When you have a field that contains an amount, for example net value of an sales order, then in order to show it correctly in the grid you should fill or this field with an value of currency key (one of ...
QUANTITY field is very similar to CURRENCY. The difference here is that you don’t keep currency key here, but unit of measure, for example M for meters or KG for kilograms. Again to show you the difference ...
... put there positive numbers, if you want to move decimal places right, then use negative numbers.
Example when you use 0 as round, you’ll get the normal full numbers, the display of the field hasn’t ...
... 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 with ...
... table. The corresponding field should be an CHAR4 field. You can use of course the domain ICON_D as well. In my example I’ve filled all rows with the same icon (ICON_ABAP) during the selection of data ...
This field has similar functionality like ICON but instead of better looking icons, you can choose to display old-style ASCII symbols from type-pool SYM. Like in an example of ICON you have to setup the ...
This field allows manipulation of visibility of leading zeros. One of the most common example is the material number (MATNR), when there is no letter inside the name of material, it is stored in database ...
NO_SIGN can be used to hide the sign of the number. For example you have negative values but you want to display it as positive.
In order to show you the behaviour of this settings, I’ve manipulated ...
... are placed here. ALV Grid field catalog should have type LVC_T_FCAT. Of course as it’s not mandatory parameter you can also omit during the displaying on grid (like I did for example in program ZDEMO_AIN_CL01), ...
... you don’t have to do that. You can create it also before calling the screen, like in the simple example of using CL_GUI_CUSTOM_CONTAINER that you can find in Figure 1 and in demo program ZDEMO_AIN_CL01. ...
... available in SAP. In this tutorial I will try to show you what you can do with ALV Grid. If possible I will give you an example for each functionality, so you could really understand it easily. It will ...
... of fields into the ZCL_CMD_CUSTOMER class. It's even better to keep the clean core functionality away from the extension, as you may have for example different extensions to customer master data on your ...
...
Here you can find the first version of the code to understand what is happening here, as well as example usage. Of course it's better to use ABAPGit to install the program than to copy&paste it from ...