In previous article I've shown how to move characteristics from reference data to screen values table, this method is doing opposite way from screen values table to reference data structure. Importing: ...
... I_ATNAMTYPE API_VALI-ATNAM ->Characteristic Name
I_DATATYPE REF TO DATA-> our reference data Changing: CT_VALUES TYPE TT_API_VALI-> Structure for characteristic screen Exceptions: NO_DATA_TO_CHANGE Implementation: ...
... update some characteristic values from ALV grid, this would be not a problem at all if the characteristics would be defined from the begriming, but they weren't. In that case I couldn't just add ...
... selection-screen (ZDEMO_AIN_CL41R)
After the first test I saw it is not that simple. I had to use also the method ACTIVATE_REPREP_INTERFACE with proper values, to tell the ALV grid, which interface ...
... in ZDEMO_AIN_CL40
As you can see, grid looks much better with the column headers, also proper naming of the columns will help the users to better understand the values of the column.
...
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 ...
... XML from bank site into internal table, which can be then used inside your code to populate values of BAPI_EXCHANGERATE_CREATE FM.
There are few ways to download the XML to your ABAP code, I prefer ...
... 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 ...
... you need to set its value to ‘X’.
Figure 70 ZDEMO_AIN_CL30 Setting of Field as Technical
Such setting is very helpful when you have to store some additional values in the ...
... It will not only not show the sum, but also it will forbid to set it the GUI.
Figure 66 ZDEMO_AIN_CL28 DO_SUM for DISTANCE field
Once user will try to summarize the values ...
... each unit or currency separately. In other case the values will be summarized without taking in consideration differences in the units.
Figure 64 ZDEMO_AIN_CL27 DO_SUM set for DISTANCE ...
EMPHASIZE allows you to change the colour of the whole column if there is such need.
This field can be filled with following values:
Space - this means you use the standard behaviour of ALV ...
... layouts, so then the grid looks always the same for them. Personally I leave this almost always empty, but if needed just simply use INTEGER values to setup correct sorting. The demo program that can be ...
The name of this field suggest to put here an internal table name, but it seems that it has no function at all. When SAP fills field catalog automatically, then value of this field is set to ‘1’. You can ...
... SE16
Now to see the differences, please run program ZDEMO_AIN_CL10 using following units: PMR, DEG, M & empty.
Figure 22 displays the values with three decimal places as PMR is setup to be displayed ...
... 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 values. This time ...
With this field, you can setup alignment of the column. You can use one of the following values:
R - Right,
L - Left,
C - Centre,
space – default setting for field type
...
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 ...
... this values during the runtime of the program and I saw that selection-screen is reacting on the changes... this means I have a way to manipulate function keys dynamically!
Here is a sample class that ...
... that I have used and their values and how you can add them to your installation.
Firstly we need to locate our eclipse.ini file, which can be found in the Eclipse installation folder.
Then ...
... any contact related values to the main structure. This was really strange behaviour for me. So as always in such kind of situations I've started to search for solution in SCN, then in OSS notes, but I failed. ...
...
Now the values are always the same and although I can only imagine that the problem comes from decimal type of field, funny stuff was that inside this form there are other fields which ...
...
Optional - For internal use in case of popup and full screen FALV
IV_START_ROW
Optional - for popup FALV, if not pass for popup FALV default values are used
IV_START_COLUMN ...
If you imported NUGG file from previous article you could be surprised that there is one additional FM available called Z_AB_POPUP_GRID_MULTI_SEL. This FM can be used to call a popup with ALV grid which ...
... and its values, this table will be exported to the FM which will be called from ALV. In case of pressing "Cancel" button it will return parameters without values as then they are cleared after ...
... there is no possibility to create new allocation. 5) Allocation is deleted, so we can now recreate it with new values. Firstly we need to reload again operation data to memory with CP_CC_S_OPR_PROVIDE_BY_MTK ...
... a range of the possible values to be able to fulfill the task. Here is how to do it quite fast by doing FM: function z_ab_prep_val_for_case_search.
*"-------------------------------------------------------------------- ...
... values in given characteristic and then throws an update screen. After exiting from the screen it's saving data to database. program zab_classifications_popup.
*--------------------------------------------------------------------* ...
Now it's time to save the values entered into database. I will use here previously created method to move data from reference structure to BAPI tables, then I will read values from database to see ...