ABAP Select data from SAP table CMDS_EI_CMD_CENTRAL into internal table

Get Example source ABAP code based on a different SAP table
  

Below is a number of ABAP code snippets to demonstrate how to select data from SAP CMDS_EI_CMD_CENTRAL table and store it within an internal table, including using the newer @DATA inline declaration methods. It also shows you various ways to process this data using ABAP work area, inline declaration or field symbols including executing all the relevant CONVERSION_EXIT routines specific to CMDS_EI_CMD_CENTRAL. See here for more generic Select statement tips.

Sometimes data within SAP is stored within the database table in a different format to what it is displayed to the user. These input/output conversation FM routines are what translates the data between the two formats.

There is also a full declaration of the CMDS_EI_CMD_CENTRAL table where each field has a char/string type for you to simply copy and paste. This allows you to use processing that is only available to these field types such as the CONCATENATE statement.

DATA: IT_CMDS_EI_CMD_CENTRAL TYPE STANDARD TABLE OF CMDS_EI_CMD_CENTRAL,
      WA_CMDS_EI_CMD_CENTRAL TYPE CMDS_EI_CMD_CENTRAL,
      GD_STR TYPE STRING.

DATA: lo_typedescr type REF TO cl_abap_typedescr.
DATA: lv_fieldname type fieldname.

FIELD-SYMBOLS: <FIELD> TYPE any.
FIELD-SYMBOLS: <CMDS_EI_CMD_CENTRAL> TYPE CMDS_EI_CMD_CENTRAL.

*Process all fields in table header/work area as string values
  PERFORM process_as_string_field_values CHANGING wa_CMDS_EI_CMD_CENTRAL.

SELECT *
*restrict ABAP select to first 10 rows
 UP TO 10 ROWS      
  FROM CMDS_EI_CMD_CENTRAL
  INTO TABLE IT_CMDS_EI_CMD_CENTRAL.

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM CMDS_EI_CMD_CENTRAL
*  INTO TABLE @DATA(IT_CMDS_EI_CMD_CENTRAL2).
*--Further methods of using ABAP code to  select data from SAP database tables

*You can also declare the header/work area using the in-line DATA declaration method
READ TABLE IT_CMDS_EI_CMD_CENTRAL INDEX 1 INTO DATA(WA_CMDS_EI_CMD_CENTRAL2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_CMDS_EI_CMD_CENTRAL ASSIGNING <CMDS_EI_CMD_CENTRAL>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<CMDS_EI_CMD_CENTRAL>-DATA = 1.
<CMDS_EI_CMD_CENTRAL>-AUFSD = 1.
<CMDS_EI_CMD_CENTRAL>-BAHNE = 1.
<CMDS_EI_CMD_CENTRAL>-BAHNS = 1.
<CMDS_EI_CMD_CENTRAL>-BBBNR = 1.
ENDLOOP.

LOOP AT IT_CMDS_EI_CMD_CENTRAL INTO WA_CMDS_EI_CMD_CENTRAL.
*Write horizonal line to screen report.
  WRITE:/ sy-uline.

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_CMDS_EI_CMD_CENTRAL-BBSNR, sy-vline,
WA_CMDS_EI_CMD_CENTRAL-BEGRU, sy-vline,
WA_CMDS_EI_CMD_CENTRAL-BRSCH, sy-vline,
WA_CMDS_EI_CMD_CENTRAL-BUBKZ, sy-vline,
WA_CMDS_EI_CMD_CENTRAL-FAKSD, sy-vline,
WA_CMDS_EI_CMD_CENTRAL-FISKN, sy-vline.
ENDLOOP. *Add any further fields from structure WA_CMDS_EI_CMD_CENTRAL you want to display... WRITE:/ sy-uline. * Aternatively use generic code to Write field values (and NAME) to screen report DO. ASSIGN COMPONENT sy-index OF STRUCTURE wa_CMDS_EI_CMD_CENTRAL TO <field>. IF sy-subrc <> 0. EXIT. ENDIF. WRITE:/ 'Field Value', <field>, sy-vline. gd_str = <field> . lo_typedescr ?= CL_ABAP_DATADESCR=>DESCRIBE_BY_DATA( <field> ). lv_fieldname = lo_typedescr->GET_RELATIVE_NAME( ). WRITE:/ 'Field Name', lv_fieldname. ENDDO. *Redo loop but convert all fields from internal to out value LOOP AT IT_CMDS_EI_CMD_CENTRAL INTO WA_CMDS_EI_CMD_CENTRAL. *Write horizonal line to screen report. WRITE:/ sy-uline. *Convert all fields to display/output versions using conversion routines PERFORM convert_all_field_values CHANGING wa_EKKO. ENDLOOP. *&---------------------------------------------------------------------* *& Form convert_all_field_values *&---------------------------------------------------------------------* FORM convert_all_field_values CHANGING p_EKKO LIKE wa_EKKO. DATA: ld_input(1000) TYPE c, ld_output(1000) TYPE C.

*Conversion exit ALPHA, internal->external for field FISKN CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_CMDS_EI_CMD_CENTRAL-FISKN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CMDS_EI_CMD_CENTRAL-FISKN.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field KNRZA CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_CMDS_EI_CMD_CENTRAL-KNRZA IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CMDS_EI_CMD_CENTRAL-KNRZA.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field LIFNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_CMDS_EI_CMD_CENTRAL-LIFNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CMDS_EI_CMD_CENTRAL-LIFNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field VBUND CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_CMDS_EI_CMD_CENTRAL-VBUND IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CMDS_EI_CMD_CENTRAL-VBUND.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field CFOPC CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_CMDS_EI_CMD_CENTRAL-CFOPC IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CMDS_EI_CMD_CENTRAL-CFOPC.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field TXLW1 CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_CMDS_EI_CMD_CENTRAL-TXLW1 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CMDS_EI_CMD_CENTRAL-TXLW1.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field TXLW2 CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_CMDS_EI_CMD_CENTRAL-TXLW2 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CMDS_EI_CMD_CENTRAL-TXLW2.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field ADRNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_CMDS_EI_CMD_CENTRAL-ADRNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CMDS_EI_CMD_CENTRAL-ADRNR.
WRITE:/ 'New Value:', ld_input.
ENDFORM. *&---------------------------------------------------------------------* *& Form process_as_string_field_values *&---------------------------------------------------------------------* FORM process_as_string_field_values CHANGING p_EKKO LIKE wa_EKKO. TYPES: BEGIN OF T_CMDS_EI_CMD_CENTRAL_STR,
DATA TYPE STRING,
AUFSD TYPE STRING,
BAHNE TYPE STRING,
BAHNS TYPE STRING,
BBBNR TYPE STRING,
BBSNR TYPE STRING,
BEGRU TYPE STRING,
BRSCH TYPE STRING,
BUBKZ TYPE STRING,
FAKSD TYPE STRING,
FISKN TYPE STRING,
KNRZA TYPE STRING,
KONZS TYPE STRING,
KTOKD TYPE STRING,
KUKLA TYPE STRING,
LIFNR TYPE STRING,
LIFSD TYPE STRING,
LOCCO TYPE STRING,
LOEVM TYPE STRING,
NIELS TYPE STRING,
COUNC TYPE STRING,
CITYC TYPE STRING,
RPMKR TYPE STRING,
SPERR TYPE STRING,
STCD1 TYPE STRING,
STCD2 TYPE STRING,
STKZA TYPE STRING,
STKZU TYPE STRING,
XZEMP TYPE STRING,
VBUND TYPE STRING,
STCEG TYPE STRING,
GFORM TYPE STRING,
BRAN1 TYPE STRING,
BRAN2 TYPE STRING,
BRAN3 TYPE STRING,
BRAN4 TYPE STRING,
BRAN5 TYPE STRING,
UMJAH TYPE STRING,
UWAER TYPE STRING,
JMZAH TYPE STRING,
JMJAH TYPE STRING,
KATR1 TYPE STRING,
KATR2 TYPE STRING,
KATR3 TYPE STRING,
KATR4 TYPE STRING,
KATR5 TYPE STRING,
KATR6 TYPE STRING,
KATR7 TYPE STRING,
KATR8 TYPE STRING,
KATR9 TYPE STRING,
KATR10 TYPE STRING,
STKZN TYPE STRING,
UMSA1 TYPE STRING,
PERIV TYPE STRING,
KTOCD TYPE STRING,
DTAMS TYPE STRING,
DTAWS TYPE STRING,
HZUOR TYPE STRING,
CIVVE TYPE STRING,
MILVE TYPE STRING,
FITYP TYPE STRING,
STCDT TYPE STRING,
STCD3 TYPE STRING,
STCD4 TYPE STRING,
XICMS TYPE STRING,
XXIPI TYPE STRING,
XSUBT TYPE STRING,
CFOPC TYPE STRING,
TXLW1 TYPE STRING,
TXLW2 TYPE STRING,
CCC01 TYPE STRING,
CCC02 TYPE STRING,
CCC03 TYPE STRING,
CCC04 TYPE STRING,
CASSD TYPE STRING,
KDKG1 TYPE STRING,
KDKG2 TYPE STRING,
KDKG3 TYPE STRING,
KDKG4 TYPE STRING,
KDKG5 TYPE STRING,
NODEL TYPE STRING,
XSUB2 TYPE STRING,
J_1KFREPRE TYPE STRING,
J_1KFTBUS TYPE STRING,
J_1KFTIND TYPE STRING,
STCD5 TYPE STRING,
STCD6 TYPE STRING,
CVP_XBLCK TYPE STRING,
SUFRAMA TYPE STRING,
RG TYPE STRING,
EXP TYPE STRING,
UF TYPE STRING,
RGDATE TYPE STRING,
RIC TYPE STRING,
RNE TYPE STRING,
RNEDATE TYPE STRING,
CNAE TYPE STRING,
LEGALNAT TYPE STRING,
CRTN TYPE STRING,
ICMSTAXPAY TYPE STRING,
INDTYP TYPE STRING,
TDT TYPE STRING,
COMSIZE TYPE STRING,
DECREGPC TYPE STRING,
ORT02 TYPE STRING,
DEAR6 TYPE STRING,
LZONE TYPE STRING,
XKNZA TYPE STRING,
DEAR1 TYPE STRING,
DEAR2 TYPE STRING,
DEAR3 TYPE STRING,
DEAR5 TYPE STRING,
WERKS TYPE STRING,
ADRNR TYPE STRING,
DELIVERY_DATE_RULE TYPE STRING,
PAYTRSN TYPE STRING,
KNA1_EEW_CUST TYPE STRING,
RULE_EXCLUSION TYPE STRING,
KNA1_ADDR_EEW_CUST TYPE STRING,
ALC TYPE STRING,
PMT_OFFICE TYPE STRING,
FEE_SCHEDULE TYPE STRING,
DUNS TYPE STRING,
DUNS4 TYPE STRING,
J_1IEXCD TYPE STRING,
J_1IEXRN TYPE STRING,
J_1IEXRG TYPE STRING,
J_1IEXDI TYPE STRING,
J_1IEXCO TYPE STRING,
J_1ICSTNO TYPE STRING,
J_1ILSTNO TYPE STRING,
J_1IPANNO TYPE STRING,
J_1IEXCICU TYPE STRING,
J_1ISERN TYPE STRING,
J_1IPANREF TYPE STRING,
PH_BIZ_STYLE TYPE STRING,
BONDED_AREA_CONFIRM TYPE STRING,
DONATE_MARK TYPE STRING,
CONSOLIDATE_INVOICE TYPE STRING,
ALLOWANCE_TYPE TYPE STRING,
EINVOICE_MODE TYPE STRING,
DATAX TYPE STRING,
AUFSD TYPE STRING,
BAHNE TYPE STRING,
BAHNS TYPE STRING,
BBBNR TYPE STRING,
BBSNR TYPE STRING,
BEGRU TYPE STRING,
BRSCH TYPE STRING,
BUBKZ TYPE STRING,
FAKSD TYPE STRING,
FISKN TYPE STRING,
KNRZA TYPE STRING,
KONZS TYPE STRING,
KTOKD TYPE STRING,
KUKLA TYPE STRING,
LIFNR TYPE STRING,
LIFSD TYPE STRING,
LOCCO TYPE STRING,
LOEVM TYPE STRING,
NIELS TYPE STRING,
COUNC TYPE STRING,
CITYC TYPE STRING,
RPMKR TYPE STRING,
SPERR TYPE STRING,
STCD1 TYPE STRING,
STCD2 TYPE STRING,
STKZA TYPE STRING,
STKZU TYPE STRING,
XZEMP TYPE STRING,
VBUND TYPE STRING,
STCEG TYPE STRING,
GFORM TYPE STRING,
BRAN1 TYPE STRING,
BRAN2 TYPE STRING,
BRAN3 TYPE STRING,
BRAN4 TYPE STRING,
BRAN5 TYPE STRING,
UMJAH TYPE STRING,
UWAER TYPE STRING,
JMZAH TYPE STRING,
JMJAH TYPE STRING,
KATR1 TYPE STRING,
KATR2 TYPE STRING,
KATR3 TYPE STRING,
KATR4 TYPE STRING,
KATR5 TYPE STRING,
KATR6 TYPE STRING,
KATR7 TYPE STRING,
KATR8 TYPE STRING,
KATR9 TYPE STRING,
KATR10 TYPE STRING,
STKZN TYPE STRING,
UMSA1 TYPE STRING,
PERIV TYPE STRING,
KTOCD TYPE STRING,
DTAMS TYPE STRING,
DTAWS TYPE STRING,
HZUOR TYPE STRING,
CIVVE TYPE STRING,
MILVE TYPE STRING,
FITYP TYPE STRING,
STCDT TYPE STRING,
STCD3 TYPE STRING,
STCD4 TYPE STRING,
XICMS TYPE STRING,
XXIPI TYPE STRING,
XSUBT TYPE STRING,
CFOPC TYPE STRING,
TXLW1 TYPE STRING,
TXLW2 TYPE STRING,
CCC01 TYPE STRING,
CCC02 TYPE STRING,
CCC03 TYPE STRING,
CCC04 TYPE STRING,
CASSD TYPE STRING,
KDKG1 TYPE STRING,
KDKG2 TYPE STRING,
KDKG3 TYPE STRING,
KDKG4 TYPE STRING,
KDKG5 TYPE STRING,
NODEL TYPE STRING,
XSUB2 TYPE STRING,
J_1KFREPRE TYPE STRING,
J_1KFTBUS TYPE STRING,
J_1KFTIND TYPE STRING,
STCD5 TYPE STRING,
STCD6 TYPE STRING,
CVP_XBLCK TYPE STRING,
SUFRAMA TYPE STRING,
RG TYPE STRING,
EXP TYPE STRING,
UF TYPE STRING,
RGDATE TYPE STRING,
RIC TYPE STRING,
RNE TYPE STRING,
RNEDATE TYPE STRING,
CNAE TYPE STRING,
LEGALNAT TYPE STRING,
CRTN TYPE STRING,
ICMSTAXPAY TYPE STRING,
INDTYP TYPE STRING,
TDT TYPE STRING,
COMSIZE TYPE STRING,
DECREGPC TYPE STRING,
ORT02 TYPE STRING,
DEAR6 TYPE STRING,
LZONE TYPE STRING,
XKNZA TYPE STRING,
DEAR1 TYPE STRING,
DEAR2 TYPE STRING,
DEAR3 TYPE STRING,
DEAR5 TYPE STRING,
WERKS TYPE STRING,
ADRNR TYPE STRING,
DELIVERY_DATE_RULE TYPE STRING,
PAYTRSN TYPE STRING,
KNA1_EEW_CUST TYPE STRING,
RULE_EXCLUSION TYPE STRING,
KNA1_ADDR_EEW_CUST TYPE STRING,
ALC TYPE STRING,
PMT_OFFICE TYPE STRING,
FEE_SCHEDULE TYPE STRING,
DUNS TYPE STRING,
DUNS4 TYPE STRING,
J_1IEXCD TYPE STRING,
J_1IEXRN TYPE STRING,
J_1IEXRG TYPE STRING,
J_1IEXDI TYPE STRING,
J_1IEXCO TYPE STRING,
J_1ICSTNO TYPE STRING,
J_1ILSTNO TYPE STRING,
J_1IPANNO TYPE STRING,
J_1IEXCICU TYPE STRING,
J_1ISERN TYPE STRING,
J_1IPANREF TYPE STRING,
CENTRAL_ADDRESS TYPE STRING,
CURRENT_STATE TYPE STRING,
CENTRAL_ADDR TYPE STRING,END OF T_EKKO_STR. DATA: WA_CMDS_EI_CMD_CENTRAL_STR type T_EKKO_STR. DATA: ld_text TYPE string. LOOP AT IT_EKKO INTO WA_EKKO. MOVE-CORRESPONDING wa_EKKO TO WA_EKKO_STR. CONCATENATE: sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DATA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-AUFSD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BAHNE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BAHNS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BBBNR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BBSNR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BEGRU sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRSCH sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BUBKZ sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-FAKSD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-FISKN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KNRZA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KONZS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KTOKD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KUKLA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LIFNR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LIFSD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LOCCO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LOEVM sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-NIELS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-COUNC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CITYC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RPMKR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-SPERR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STKZA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STKZU sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XZEMP sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-VBUND sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCEG sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-GFORM sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-UMJAH sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-UWAER sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-JMZAH sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-JMJAH sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR6 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR7 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR8 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR9 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR10 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STKZN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-UMSA1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-PERIV sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KTOCD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DTAMS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DTAWS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-HZUOR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CIVVE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-MILVE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-FITYP sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCDT sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XICMS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XXIPI sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XSUBT sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CFOPC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-TXLW1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-TXLW2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CCC01 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CCC02 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CCC03 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CCC04 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CASSD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-NODEL sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XSUB2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1KFREPRE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1KFTBUS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1KFTIND sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD6 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CVP_XBLCK sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-SUFRAMA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RG sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-EXP sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-UF sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RGDATE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RIC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RNE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RNEDATE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CNAE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LEGALNAT sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CRTN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-ICMSTAXPAY sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-INDTYP sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-TDT sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-COMSIZE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DECREGPC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-ORT02 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR6 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LZONE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XKNZA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-WERKS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-ADRNR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DELIVERY_DATE_RULE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-PAYTRSN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KNA1_EEW_CUST sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RULE_EXCLUSION sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KNA1_ADDR_EEW_CUST sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-ALC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-PMT_OFFICE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-FEE_SCHEDULE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DUNS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DUNS4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXCD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXRN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXRG sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXDI sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXCO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1ICSTNO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1ILSTNO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IPANNO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXCICU sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1ISERN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IPANREF sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-PH_BIZ_STYLE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BONDED_AREA_CONFIRM sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DONATE_MARK sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CONSOLIDATE_INVOICE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-ALLOWANCE_TYPE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-EINVOICE_MODE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DATAX sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-AUFSD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BAHNE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BAHNS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BBBNR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BBSNR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BEGRU sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRSCH sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BUBKZ sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-FAKSD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-FISKN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KNRZA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KONZS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KTOKD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KUKLA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LIFNR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LIFSD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LOCCO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LOEVM sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-NIELS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-COUNC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CITYC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RPMKR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-SPERR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STKZA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STKZU sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XZEMP sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-VBUND sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCEG sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-GFORM sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-BRAN5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-UMJAH sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-UWAER sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-JMZAH sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-JMJAH sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR6 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR7 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR8 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR9 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KATR10 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STKZN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-UMSA1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-PERIV sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KTOCD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DTAMS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DTAWS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-HZUOR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CIVVE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-MILVE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-FITYP sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCDT sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XICMS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XXIPI sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XSUBT sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CFOPC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-TXLW1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-TXLW2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CCC01 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CCC02 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CCC03 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CCC04 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CASSD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KDKG5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-NODEL sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XSUB2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1KFREPRE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1KFTBUS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1KFTIND sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-STCD6 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CVP_XBLCK sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-SUFRAMA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RG sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-EXP sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-UF sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RGDATE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RIC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RNE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RNEDATE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CNAE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LEGALNAT sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CRTN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-ICMSTAXPAY sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-INDTYP sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-TDT sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-COMSIZE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DECREGPC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-ORT02 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR6 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-LZONE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-XKNZA sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR1 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR2 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR3 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DEAR5 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-WERKS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-ADRNR sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DELIVERY_DATE_RULE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-PAYTRSN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KNA1_EEW_CUST sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-RULE_EXCLUSION sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-KNA1_ADDR_EEW_CUST sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-ALC sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-PMT_OFFICE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-FEE_SCHEDULE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DUNS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-DUNS4 sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXCD sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXRN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXRG sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXDI sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXCO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1ICSTNO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1ILSTNO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IPANNO sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IEXCICU sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1ISERN sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-J_1IPANREF sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CENTRAL_ADDRESS sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CURRENT_STATE sy-vline
WA_CMDS_EI_CMD_CENTRAL_STR-CENTRAL_ADDR sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.