ABAP Select data from SAP table MIG_CMDS_EI_CENTRAL_DATA 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 MIG_CMDS_EI_CENTRAL_DATA 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 MIG_CMDS_EI_CENTRAL_DATA. 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 MIG_CMDS_EI_CENTRAL_DATA 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_MIG_CMDS_EI_CENTRAL_DATA TYPE STANDARD TABLE OF MIG_CMDS_EI_CENTRAL_DATA,
      WA_MIG_CMDS_EI_CENTRAL_DATA TYPE MIG_CMDS_EI_CENTRAL_DATA,
      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: <MIG_CMDS_EI_CENTRAL_DATA> TYPE MIG_CMDS_EI_CENTRAL_DATA.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM MIG_CMDS_EI_CENTRAL_DATA
*  INTO TABLE @DATA(IT_MIG_CMDS_EI_CENTRAL_DATA2).
*--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_MIG_CMDS_EI_CENTRAL_DATA INDEX 1 INTO DATA(WA_MIG_CMDS_EI_CENTRAL_DATA2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_MIG_CMDS_EI_CENTRAL_DATA ASSIGNING <MIG_CMDS_EI_CENTRAL_DATA>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<MIG_CMDS_EI_CENTRAL_DATA>-AUFSDDAT = 1.
<MIG_CMDS_EI_CENTRAL_DATA>-BAHNEDAT = 1.
<MIG_CMDS_EI_CENTRAL_DATA>-BAHNSDAT = 1.
<MIG_CMDS_EI_CENTRAL_DATA>-BBBNRDAT = 1.
<MIG_CMDS_EI_CENTRAL_DATA>-BBSNRDAT = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_MIG_CMDS_EI_CENTRAL_DATA-BEGRUDAT, sy-vline,
WA_MIG_CMDS_EI_CENTRAL_DATA-BRSCHDAT, sy-vline,
WA_MIG_CMDS_EI_CENTRAL_DATA-BUBKZDAT, sy-vline,
WA_MIG_CMDS_EI_CENTRAL_DATA-FAKSDDAT, sy-vline,
WA_MIG_CMDS_EI_CENTRAL_DATA-FISKNDAT, sy-vline,
WA_MIG_CMDS_EI_CENTRAL_DATA-KNRZADAT, sy-vline.
ENDLOOP. *Add any further fields from structure WA_MIG_CMDS_EI_CENTRAL_DATA 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_MIG_CMDS_EI_CENTRAL_DATA 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_MIG_CMDS_EI_CENTRAL_DATA INTO WA_MIG_CMDS_EI_CENTRAL_DATA. *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 FISKNDAT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_MIG_CMDS_EI_CENTRAL_DATA-FISKNDAT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_MIG_CMDS_EI_CENTRAL_DATA-FISKNDAT.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

*Conversion exit ALPHA, internal->external for field ADRNRDAT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_MIG_CMDS_EI_CENTRAL_DATA-ADRNRDAT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_MIG_CMDS_EI_CENTRAL_DATA-ADRNRDAT.
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_MIG_CMDS_EI_CENTRAL_DATA_STR,
AUFSDDAT TYPE STRING,
BAHNEDAT TYPE STRING,
BAHNSDAT TYPE STRING,
BBBNRDAT TYPE STRING,
BBSNRDAT TYPE STRING,
BEGRUDAT TYPE STRING,
BRSCHDAT TYPE STRING,
BUBKZDAT TYPE STRING,
FAKSDDAT TYPE STRING,
FISKNDAT TYPE STRING,
KNRZADAT TYPE STRING,
KONZSDAT TYPE STRING,
KTOKDDAT TYPE STRING,
KUKLADAT TYPE STRING,
LIFNRDAT TYPE STRING,
LIFSDDAT TYPE STRING,
LOCCODAT TYPE STRING,
LOEVMDAT TYPE STRING,
NIELSDAT TYPE STRING,
COUNCDAT TYPE STRING,
CITYCDAT TYPE STRING,
RPMKRDAT TYPE STRING,
SPERRDAT TYPE STRING,
STCD1DAT TYPE STRING,
STCD2DAT TYPE STRING,
STKZADAT TYPE STRING,
STKZUDAT TYPE STRING,
XZEMPDAT TYPE STRING,
VBUNDDAT TYPE STRING,
STCEGDAT TYPE STRING,
GFORMDAT TYPE STRING,
BRAN1DAT TYPE STRING,
BRAN2DAT TYPE STRING,
BRAN3DAT TYPE STRING,
BRAN4DAT TYPE STRING,
BRAN5DAT TYPE STRING,
UMJAHDAT TYPE STRING,
UWAERDAT TYPE STRING,
JMZAHDAT TYPE STRING,
JMJAHDAT TYPE STRING,
KATR1DAT TYPE STRING,
KATR2DAT TYPE STRING,
KATR3DAT TYPE STRING,
KATR4DAT TYPE STRING,
KATR5DAT TYPE STRING,
KATR6DAT TYPE STRING,
KATR7DAT TYPE STRING,
KATR8DAT TYPE STRING,
KATR9DAT TYPE STRING,
KATR10DAT TYPE STRING,
STKZNDAT TYPE STRING,
UMSA1DAT TYPE STRING,
PERIVDAT TYPE STRING,
KTOCDDAT TYPE STRING,
DTAMSDAT TYPE STRING,
DTAWSDAT TYPE STRING,
HZUORDAT TYPE STRING,
CIVVEDAT TYPE STRING,
MILVEDAT TYPE STRING,
FITYPDAT TYPE STRING,
STCDTDAT TYPE STRING,
STCD3DAT TYPE STRING,
STCD4DAT TYPE STRING,
XICMSDAT TYPE STRING,
XXIPIDAT TYPE STRING,
XSUBTDAT TYPE STRING,
CFOPCDAT TYPE STRING,
TXLW1DAT TYPE STRING,
TXLW2DAT TYPE STRING,
CCC01DAT TYPE STRING,
CCC02DAT TYPE STRING,
CCC03DAT TYPE STRING,
CCC04DAT TYPE STRING,
CASSDDAT TYPE STRING,
KDKG1DAT TYPE STRING,
KDKG2DAT TYPE STRING,
KDKG3DAT TYPE STRING,
KDKG4DAT TYPE STRING,
KDKG5DAT TYPE STRING,
NODELDAT TYPE STRING,
XSUB2DAT TYPE STRING,
J_1KFREPREDAT TYPE STRING,
J_1KFTBUSDAT TYPE STRING,
J_1KFTINDDAT TYPE STRING,
STCD5DAT TYPE STRING,
CVP_XBLCKDAT TYPE STRING,
SUFRAMADAT TYPE STRING,
RGDAT TYPE STRING,
EXPDAT TYPE STRING,
UFDAT TYPE STRING,
RGDATEDAT TYPE STRING,
RICDAT TYPE STRING,
RNEDAT TYPE STRING,
RNEDATEDAT TYPE STRING,
CNAEDAT TYPE STRING,
LEGALNATDAT TYPE STRING,
CRTNDAT TYPE STRING,
ICMSTAXPAYDAT TYPE STRING,
INDTYPDAT TYPE STRING,
TDTDAT TYPE STRING,
COMSIZEDAT TYPE STRING,
DECREGPCDAT TYPE STRING,
ORT02DAT TYPE STRING,
DEAR6DAT TYPE STRING,
LZONEDAT TYPE STRING,
XKNZADAT TYPE STRING,
DEAR1DAT TYPE STRING,
DEAR2DAT TYPE STRING,
DEAR3DAT TYPE STRING,
DEAR5DAT TYPE STRING,
WERKSDAT TYPE STRING,
ADRNRDAT TYPE STRING,
J_1IEXCDDAT TYPE STRING,
J_1IEXRNDAT TYPE STRING,
J_1IEXRGDAT TYPE STRING,
J_1IEXDIDAT TYPE STRING,
J_1IEXCODAT TYPE STRING,
J_1ICSTNODAT TYPE STRING,
J_1ILSTNODAT TYPE STRING,
J_1IPANNODAT TYPE STRING,
J_1IEXCICUDAT TYPE STRING,
J_1ISERNDAT TYPE STRING,
J_1IPANREFDAT TYPE STRING,
PH_BIZ_STYLEDAT TYPE STRING,
BONDED_AREA_CONFIRMDAT TYPE STRING,
DONATE_MARKDAT TYPE STRING,
CONSOLIDATE_INVOICEDAT TYPE STRING,
ALLOWANCE_TYPEDAT TYPE STRING,
EINVOICE_MODEDAT TYPE STRING,
CENTRAL_ADDR TYPE STRING,
TEXTS TYPE STRING,
VAT_NUMBERS TYPE STRING,
TAX TYPE STRING,
TAX_IND TYPE STRING,
EXPORT TYPE STRING,
LOADING TYPE STRING,
RECEIVING TYPE STRING,
DEPARTMENT TYPE STRING,
ALT_PAYEE TYPE STRING,
LICENSES TYPE STRING,
CONTACT TYPE STRING,
LOADING_ADDRESS TYPE STRING,
RECEIVING_ADDRESS TYPE STRING,
DEPARTMENT_ADDRESS TYPE STRING,
TAX_IND_ADDR TYPE STRING,END OF T_EKKO_STR. DATA: WA_MIG_CMDS_EI_CENTRAL_DATA_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_MIG_CMDS_EI_CENTRAL_DATA_STR-AUFSDDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BAHNEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BAHNSDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BBBNRDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BBSNRDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BEGRUDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BRSCHDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BUBKZDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-FAKSDDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-FISKNDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KNRZADAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KONZSDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KTOKDDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KUKLADAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-LIFNRDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-LIFSDDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-LOCCODAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-LOEVMDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-NIELSDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-COUNCDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CITYCDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-RPMKRDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-SPERRDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STCD1DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STCD2DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STKZADAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STKZUDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-XZEMPDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-VBUNDDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STCEGDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-GFORMDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BRAN1DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BRAN2DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BRAN3DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BRAN4DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BRAN5DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-UMJAHDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-UWAERDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-JMZAHDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-JMJAHDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR1DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR2DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR3DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR4DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR5DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR6DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR7DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR8DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR9DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KATR10DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STKZNDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-UMSA1DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-PERIVDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KTOCDDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DTAMSDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DTAWSDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-HZUORDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CIVVEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-MILVEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-FITYPDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STCDTDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STCD3DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STCD4DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-XICMSDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-XXIPIDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-XSUBTDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CFOPCDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-TXLW1DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-TXLW2DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CCC01DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CCC02DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CCC03DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CCC04DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CASSDDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KDKG1DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KDKG2DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KDKG3DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KDKG4DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-KDKG5DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-NODELDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-XSUB2DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1KFREPREDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1KFTBUSDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1KFTINDDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-STCD5DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CVP_XBLCKDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-SUFRAMADAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-RGDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-EXPDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-UFDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-RGDATEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-RICDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-RNEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-RNEDATEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CNAEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-LEGALNATDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CRTNDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-ICMSTAXPAYDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-INDTYPDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-TDTDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-COMSIZEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DECREGPCDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-ORT02DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DEAR6DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-LZONEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-XKNZADAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DEAR1DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DEAR2DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DEAR3DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DEAR5DAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-WERKSDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-ADRNRDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1IEXCDDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1IEXRNDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1IEXRGDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1IEXDIDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1IEXCODAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1ICSTNODAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1ILSTNODAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1IPANNODAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1IEXCICUDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1ISERNDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-J_1IPANREFDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-PH_BIZ_STYLEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-BONDED_AREA_CONFIRMDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DONATE_MARKDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CONSOLIDATE_INVOICEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-ALLOWANCE_TYPEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-EINVOICE_MODEDAT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CENTRAL_ADDR sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-TEXTS sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-VAT_NUMBERS sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-TAX sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-TAX_IND sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-EXPORT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-LOADING sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-RECEIVING sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DEPARTMENT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-ALT_PAYEE sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-LICENSES sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-CONTACT sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-LOADING_ADDRESS sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-RECEIVING_ADDRESS sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-DEPARTMENT_ADDRESS sy-vline
WA_MIG_CMDS_EI_CENTRAL_DATA_STR-TAX_IND_ADDR sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.