...
types: begin of t_symbol,
symbol type char01,
name type string,
end of t_symbol.
data symbols type standard table of t_symbol.
symbols = value #(
( symbol = sym_space name = 'SYM_SPACE ' ) ...
You may saw before the article Create XLSX/MHTML file from internal table in background and you may have use it without any issues before, but it seems that in newer releases of SAP (definitelly >= 7.50) ...
... any issues, then when I tried to do it in ABAP, I always received the error VL473 - Copying is not poss.because an entry is missing in Table TVCPL.
I thought that this is some kind of nonsense as ...
... your grid editable, you can set whole grid editable in layout, some columns in field catalog and some cells in cells style table. This demo shows it all.
"! This is demo for FALV with edit settings ...
Many people still asks how to create field catalog for CL_GUI_ALV_GRID or REUSE_ALV_GRID_DISPLAY on a base of internal table. This is very easy since we have SALV classes, you could see it in my article Create ...
... To be sure you get last document you have to select data from ESRUO table directly, sort it by timestamp and get last object. Then update setting of default document for transaction, in my example for ...
ESRUO table and FM which takes care about reading/adding/deleting entries there was described in previous part ( ESDUS, ESRUO - MM settings table - Part 1/3 ), so now is the turn for ESDUS table and SETTINGS ...
... cases you'll want to look at tables: ESRUO (MM: Recently Used Objects) ESDUS (MM: Dynamic User Settings) and to function group MLSO which provides you few nice FM to handle entries in this tables: ...
I think that any of us had meet the situation when we needed to create an Excel output from internal table in background. There is a really nice project called ABAP2XLSX which gives you to possibility ...
... notice on the screen, or while debugging the code, after the method SET_TABLE_FOR_THE_FIRST_DISPLAY is called, the FCAT is changed and so are the COL_ID entries. Now it is equal to COL_POS, which was in ...
Group key is not widely used but it has nice feature. Once you group the field catalog fields and you pass the group name into parameter IT_SPECIAL_GROUPS of method SET_TABLE_FOR_FIRST_DISPLAY, then in ...
... using RRI. At the beginning I was wondering if configuration in table TRSTI and setting the parameter REPREP to ABAP_TRUE will be enough to call the interface. So I’ve started with filling TRSTI, where ...
This field allows us to set (or change) the header text of the column. It can consist up to 55 characters in lowercase mode. When you use data dictionary reference ( REF_FIELD, REF_TABLE ) it is populated ...
The changes of this parameter are only visible in edit mode and makes sense only for character or string fields. If it is set to ABAP_TRUE (‘X’), then the ALV grid stores in internal table the value in ...
... 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, ...
...
To download the XML file and to call transformation, you can use following dirty ABAP code. The structure of the XML will be transformed into internal table of ...
... 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 ...
As you can imagine, INTTYPE is just a presentation of DATATYPE in internal SAP format in most of cases. I wrote most of cases because it can also say if the field in internal table is a reference to other ...
... DD_OUTLEN on a base of the type of the output table field.
But if you decide to fill it, then on a base of DATATYPE you’ll notice different justification or output length. But still all checks of ...
... to get the 5 characters describing the name of the exit. It knows automatically that for output it needs to use CONVERSION_EXIT_NUMCV_OUPUT and for input (in case of editable fields) CONVERSION_EXIT_NUMCV_INPUT. ...
... 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 ...
... from field catalog, then it displays the rest. If I would not pass parameter I_STRUCTURE_NAME then only this fields which are in table FCAT would appear on the screen.
Figure 12 ZDEMO_AIN_CL05 ...
This field is one of the basic ones in field catalog. It contains the fieldname of internal table that will be used in our grid. Although LVC_T_FCAT is standard table, then this field should be treated ...
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 ...
... entries from TCURC table). You can leave this field of course empty and in many case you will, especially if you use CFIELDNAME instead.
In many situations changing the of currency here will not make ...
CFIELDNAME can be read as currency field name. When you have in your internal table a field that represents the currency for the amount stored in a field kept under FIELDNAME in field catalog, then you ...
... 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 in ...
Although the SAP name of this field says: “Field name of internal table field”, then I haven’t found any usage of this field. It’s also not filled by SAP when you use SALV for creating field-catalogs. ...
Round can be used for decimal fields that have no assigned QFIELDNAME or CFIELDNAME fields. Its purpose is to move decimal places left or right. If you want to move decimal places left, then you have to ...
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 ...