ABAP Select data from SAP table EDOC_LIKP 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 EDOC_LIKP 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 EDOC_LIKP. 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 EDOC_LIKP 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_EDOC_LIKP TYPE STANDARD TABLE OF EDOC_LIKP,
      WA_EDOC_LIKP TYPE EDOC_LIKP,
      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: <EDOC_LIKP> TYPE EDOC_LIKP.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM EDOC_LIKP
*  INTO TABLE @DATA(IT_EDOC_LIKP2).
*--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_EDOC_LIKP INDEX 1 INTO DATA(WA_EDOC_LIKP2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_EDOC_LIKP ASSIGNING <EDOC_LIKP>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<EDOC_LIKP>-MANDT = 1.
<EDOC_LIKP>-VBELN = 1.
<EDOC_LIKP>-ERNAM = 1.
<EDOC_LIKP>-ERZET = 1.
<EDOC_LIKP>-ERDAT = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_EDOC_LIKP-BZIRK, sy-vline,
WA_EDOC_LIKP-VSTEL, sy-vline,
WA_EDOC_LIKP-VKORG, sy-vline,
WA_EDOC_LIKP-LFART, sy-vline,
WA_EDOC_LIKP-AUTLF, sy-vline,
WA_EDOC_LIKP-KZAZU, sy-vline.
ENDLOOP. *Add any further fields from structure WA_EDOC_LIKP 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_EDOC_LIKP 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_EDOC_LIKP INTO WA_EDOC_LIKP. *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 VBELN CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_EDOC_LIKP-VBELN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-VBELN.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit CUNIT, internal->external for field GEWEI CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_EDOC_LIKP-GEWEI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-GEWEI.
WRITE:/ 'New Value:', ld_input.

*Conversion exit CUNIT, internal->external for field VOLEH CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_EDOC_LIKP-VOLEH IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-VOLEH.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit EXCRT, internal->external for field STCUR CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT' EXPORTING input = WA_EDOC_LIKP-STCUR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-STCUR.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

*Conversion exit EXCRT, internal->external for field AKKUR CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT' EXPORTING input = WA_EDOC_LIKP-AKKUR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-AKKUR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TMPLA, internal->external for field TSEGTP CALL FUNCTION 'CONVERSION_EXIT_TMPLA_OUTPUT' EXPORTING input = WA_EDOC_LIKP-TSEGTP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-TSEGTP.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit MATN1, internal->external for field TRMTYP CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_EDOC_LIKP-TRMTYP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-TRMTYP.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit ID004, internal->external for field INCO2_KEY CALL FUNCTION 'CONVERSION_EXIT_ID004_OUTPUT' EXPORTING input = WA_EDOC_LIKP-INCO2_KEY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-INCO2_KEY.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ID004, internal->external for field INCO3_KEY CALL FUNCTION 'CONVERSION_EXIT_ID004_OUTPUT' EXPORTING input = WA_EDOC_LIKP-INCO3_KEY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-INCO3_KEY.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ID004, internal->external for field INCO4_KEY CALL FUNCTION 'CONVERSION_EXIT_ID004_OUTPUT' EXPORTING input = WA_EDOC_LIKP-INCO4_KEY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-INCO4_KEY.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit ALPHA, internal->external for field SPE_CD_PROCESS CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_EDOC_LIKP-SPE_CD_PROCESS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EDOC_LIKP-SPE_CD_PROCESS.
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_EDOC_LIKP_STR,
MANDT TYPE STRING,
VBELN TYPE STRING,
ERNAM TYPE STRING,
ERZET TYPE STRING,
ERDAT TYPE STRING,
BZIRK TYPE STRING,
VSTEL TYPE STRING,
VKORG TYPE STRING,
LFART TYPE STRING,
AUTLF TYPE STRING,
KZAZU TYPE STRING,
WADAT TYPE STRING,
LDDAT TYPE STRING,
TDDAT TYPE STRING,
LFDAT TYPE STRING,
KODAT TYPE STRING,
ABLAD TYPE STRING,
INCO1 TYPE STRING,
INCO2 TYPE STRING,
EXPKZ TYPE STRING,
ROUTE TYPE STRING,
FAKSK TYPE STRING,
LIFSK TYPE STRING,
VBTYP TYPE STRING,
KNFAK TYPE STRING,
TPQUA TYPE STRING,
TPGRP TYPE STRING,
LPRIO TYPE STRING,
VSBED TYPE STRING,
KUNNR TYPE STRING,
KUNAG TYPE STRING,
KDGRP TYPE STRING,
STZKL TYPE STRING,
STZZU TYPE STRING,
BTGEW TYPE STRING,
NTGEW TYPE STRING,
GEWEI TYPE STRING,
VOLUM TYPE STRING,
VOLEH TYPE STRING,
ANZPK TYPE STRING,
BEROT TYPE STRING,
LFUHR TYPE STRING,
GRULG TYPE STRING,
LSTEL TYPE STRING,
TRAGR TYPE STRING,
FKARV TYPE STRING,
FKDAT TYPE STRING,
PERFK TYPE STRING,
ROUTA TYPE STRING,
STAFO TYPE STRING,
KALSM TYPE STRING,
KNUMV TYPE STRING,
WAERK TYPE STRING,
VKBUR TYPE STRING,
VBEAK TYPE STRING,
ZUKRL TYPE STRING,
VERUR TYPE STRING,
COMMN TYPE STRING,
STWAE TYPE STRING,
STCUR TYPE STRING,
EXNUM TYPE STRING,
AENAM TYPE STRING,
AEDAT TYPE STRING,
LGNUM TYPE STRING,
LISPL TYPE STRING,
VKOIV TYPE STRING,
VTWIV TYPE STRING,
SPAIV TYPE STRING,
FKAIV TYPE STRING,
PIOIV TYPE STRING,
FKDIV TYPE STRING,
KUNIV TYPE STRING,
KKBER TYPE STRING,
KNKLI TYPE STRING,
GRUPP TYPE STRING,
SBGRP TYPE STRING,
CTLPC TYPE STRING,
CMWAE TYPE STRING,
AMTBL TYPE STRING,
BOLNR TYPE STRING,
LIFNR TYPE STRING,
TRATY TYPE STRING,
TRAID TYPE STRING,
CMFRE TYPE STRING,
CMNGV TYPE STRING,
XABLN TYPE STRING,
BLDAT TYPE STRING,
WADAT_IST TYPE STRING,
TRSPG TYPE STRING,
TPSID TYPE STRING,
LIFEX TYPE STRING,
TERNR TYPE STRING,
KALSM_CH TYPE STRING,
KLIEF TYPE STRING,
KALSP TYPE STRING,
KNUMP TYPE STRING,
NETWR TYPE STRING,
AULWE TYPE STRING,
WERKS TYPE STRING,
LCNUM TYPE STRING,
ABSSC TYPE STRING,
KOUHR TYPE STRING,
TDUHR TYPE STRING,
LDUHR TYPE STRING,
WAUHR TYPE STRING,
LGTOR TYPE STRING,
LGBZO TYPE STRING,
AKWAE TYPE STRING,
AKKUR TYPE STRING,
AKPRZ TYPE STRING,
PROLI TYPE STRING,
XBLNR TYPE STRING,
HANDLE TYPE STRING,
TSEGFL TYPE STRING,
TSEGTP TYPE STRING,
TZONIS TYPE STRING,
TZONRC TYPE STRING,
CONT_DG TYPE STRING,
VERURSYS TYPE STRING,
KZWAB TYPE STRING,
TCODE TYPE STRING,
VSART TYPE STRING,
TRMTYP TYPE STRING,
SDABW TYPE STRING,
VBUND TYPE STRING,
XWOFF TYPE STRING,
DIRTA TYPE STRING,
PRVBE TYPE STRING,
FOLAR TYPE STRING,
PODAT TYPE STRING,
POTIM TYPE STRING,
VGANZ TYPE STRING,
IMWRK TYPE STRING,
SPE_LOEKZ TYPE STRING,
SPE_LOC_SEQ TYPE STRING,
SPE_ACC_APP_STS TYPE STRING,
SPE_SHP_INF_STS TYPE STRING,
SPE_RET_CANC TYPE STRING,
SPE_WAUHR_IST TYPE STRING,
SPE_WAZONE_IST TYPE STRING,
SPE_REV_VLSTK TYPE STRING,
SPE_LE_SCENARIO TYPE STRING,
SPE_ORIG_SYS TYPE STRING,
SPE_CHNG_SYS TYPE STRING,
SPE_GEOROUTE TYPE STRING,
SPE_GEOROUTEIND TYPE STRING,
SPE_CARRIER_IND TYPE STRING,
SPE_GTS_REL TYPE STRING,
SPE_GTS_RT_CDE TYPE STRING,
SPE_REL_TMSTMP TYPE STRING,
SPE_UNIT_SYSTEM TYPE STRING,
SPE_INV_BFR_GI TYPE STRING,
SPE_QI_STATUS TYPE STRING,
SPE_RED_IND TYPE STRING,
SAKES TYPE STRING,
SPE_LIFEX_TYPE TYPE STRING,
SPE_TTYPE TYPE STRING,
SPE_PRO_NUMBER TYPE STRING,
LOC_GUID TYPE STRING,
SPE_BILLING_IND TYPE STRING,
PRINTER_PROFILE TYPE STRING,
MSR_ACTIVE TYPE STRING,
PRTNR TYPE STRING,
STGE_LOC_CHANGE TYPE STRING,
TM_CTRL_KEY TYPE STRING,
DLV_SPLIT_INITIA TYPE STRING,
DLV_VERSION TYPE STRING,
_DATAAGING TYPE STRING,
GTS_VORPA TYPE STRING,
GTS_VORNU TYPE STRING,
GTS_EXPVZ TYPE STRING,
GTS_PORTI TYPE STRING,
ITM_EXPVZ TYPE STRING,
ITM_STGBE TYPE STRING,
ITM_KZGBE TYPE STRING,
ITM_VYGID TYPE STRING,
ITM_IEVER TYPE STRING,
ITM_STABE TYPE STRING,
ITM_KZABE TYPE STRING,
HANDOVERLOC TYPE STRING,
HANDOVERDATE TYPE STRING,
HANDOVERTIME TYPE STRING,
HANDOVERTZONE TYPE STRING,
BESTK TYPE STRING,
CMPSC TYPE STRING,
CMPSD TYPE STRING,
CMPSI TYPE STRING,
CMPSJ TYPE STRING,
CMPSK TYPE STRING,
CMPS_CM TYPE STRING,
CMPS_TE TYPE STRING,
CMGST TYPE STRING,
FKIVK TYPE STRING,
FKSTK TYPE STRING,
GBSTK TYPE STRING,
HDALL TYPE STRING,
HDALS TYPE STRING,
KOQUK TYPE STRING,
KOSTK TYPE STRING,
LVSTK TYPE STRING,
PDSTK TYPE STRING,
PKSTK TYPE STRING,
SPE_TMPID TYPE STRING,
SPSTG TYPE STRING,
TRSTA TYPE STRING,
UVALL TYPE STRING,
UVALS TYPE STRING,
UVFAK TYPE STRING,
UVFAS TYPE STRING,
UVPAK TYPE STRING,
UVPAS TYPE STRING,
UVPIK TYPE STRING,
UVPIS TYPE STRING,
UVVLK TYPE STRING,
UVVLS TYPE STRING,
UVWAK TYPE STRING,
UVWAS TYPE STRING,
VESTK TYPE STRING,
VLSTK TYPE STRING,
WBSTK TYPE STRING,
UVK01 TYPE STRING,
UVK02 TYPE STRING,
UVK03 TYPE STRING,
UVK04 TYPE STRING,
UVK05 TYPE STRING,
UVS01 TYPE STRING,
UVS02 TYPE STRING,
UVS03 TYPE STRING,
UVS04 TYPE STRING,
UVS05 TYPE STRING,
TOTAL_PCSTA TYPE STRING,
TOTAL_DGSTA TYPE STRING,
TOTAL_SDSSTA TYPE STRING,
TOTAL_ARC_STATUS TYPE STRING,
ICO_FKIVK TYPE STRING,
TOTAL_EMCST TYPE STRING,
TOTAL_SLCST TYPE STRING,
TOTAL_LCCST TYPE STRING,
/SAPMP/LBASK TYPE STRING,
INCOV TYPE STRING,
INCO2_L TYPE STRING,
INCO3_L TYPE STRING,
INCO2_KEY TYPE STRING,
INCO3_KEY TYPE STRING,
INCO4_KEY TYPE STRING,
OID_EXTBOL TYPE STRING,
OID_MISCDL TYPE STRING,
EXT_BUS_SYST_ID TYPE STRING,
SITKZ_DB TYPE STRING,
TM_ADV_SHIP_RECV TYPE STRING,
TM_WHSE_EXEC TYPE STRING,
LGLC_LIC_IND TYPE STRING,
DUMMY_DELIVERY_INCL_EEW_PS TYPE STRING,
/BEV1/LULEINH TYPE STRING,
/BEV1/RPFAESS TYPE STRING,
/BEV1/RPKIST TYPE STRING,
/BEV1/RPCONT TYPE STRING,
/BEV1/RPSONST TYPE STRING,
/BEV1/RPFLGNR TYPE STRING,
IDT_CUR_EVTLOC TYPE STRING,
IDT_CUR_EVTQUA TYPE STRING,
IDT_CUR_EVTTST TYPE STRING,
IDT_CUR_ESTLOC TYPE STRING,
IDT_CUR_ESTQUA TYPE STRING,
IDT_CUR_ESTTST TYPE STRING,
IDT_CUR_WRKQUA TYPE STRING,
IDT_PRE_EVTLOC TYPE STRING,
IDT_PRE_EVTQUA TYPE STRING,
IDT_PRE_EVTTST TYPE STRING,
IDT_PRE_ESTLOC TYPE STRING,
IDT_PRE_ESTQUA TYPE STRING,
IDT_PRE_ESTTST TYPE STRING,
IDT_PRE_WRKQUA TYPE STRING,
IDT_REF_ESTLOC TYPE STRING,
IDT_REF_ESTQUA TYPE STRING,
IDT_REF_ESTTST TYPE STRING,
IDT_FIRM_LFDAT TYPE STRING,
IDT_DOCNUM TYPE STRING,
BORGR_GRP TYPE STRING,
KBNKZ TYPE STRING,
FSH_TRANSACTION TYPE STRING,
FSH_VAS_LAST_ITEM TYPE STRING,
FSH_VAS_CG TYPE STRING,
RFM_PSST_GROUP TYPE STRING,
EXT_ACT_DATE_TOCD TYPE STRING,
EXT_PLAN_DATE_TOCD TYPE STRING,
EXT_TZONE_TOCD TYPE STRING,
INT_ACT_DATE_TOCD TYPE STRING,
INT_PLAN_DATE_TOCD TYPE STRING,
INT_TZONE_TOCD TYPE STRING,
JIT_RLVNT TYPE STRING,
UPDKZ TYPE STRING,
VOGGT TYPE STRING,
VSTRM TYPE STRING,
TRTRM TYPE STRING,
COMB_CRIT TYPE STRING,
ADDEL TYPE STRING,
KZEBU TYPE STRING,
SPE_DIRECT_BILLING TYPE STRING,
SPE_BILLING_WAIT TYPE STRING,
SPE_PRINTER_PROF TYPE STRING,
SPE_INITIATOR_PROCESS TYPE STRING,
SPE_SPDNR TYPE STRING,
SPE_CD_PROCESS TYPE STRING,
MDIFF_BUCH TYPE STRING,
MDIFF_STORNO TYPE STRING,
SITKZ TYPE STRING,
CROSS_SYSTEM_SPLIT TYPE STRING,
RELOC_SPLIT TYPE STRING,END OF T_EKKO_STR. DATA: WA_EDOC_LIKP_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_EDOC_LIKP_STR-MANDT sy-vline
WA_EDOC_LIKP_STR-VBELN sy-vline
WA_EDOC_LIKP_STR-ERNAM sy-vline
WA_EDOC_LIKP_STR-ERZET sy-vline
WA_EDOC_LIKP_STR-ERDAT sy-vline
WA_EDOC_LIKP_STR-BZIRK sy-vline
WA_EDOC_LIKP_STR-VSTEL sy-vline
WA_EDOC_LIKP_STR-VKORG sy-vline
WA_EDOC_LIKP_STR-LFART sy-vline
WA_EDOC_LIKP_STR-AUTLF sy-vline
WA_EDOC_LIKP_STR-KZAZU sy-vline
WA_EDOC_LIKP_STR-WADAT sy-vline
WA_EDOC_LIKP_STR-LDDAT sy-vline
WA_EDOC_LIKP_STR-TDDAT sy-vline
WA_EDOC_LIKP_STR-LFDAT sy-vline
WA_EDOC_LIKP_STR-KODAT sy-vline
WA_EDOC_LIKP_STR-ABLAD sy-vline
WA_EDOC_LIKP_STR-INCO1 sy-vline
WA_EDOC_LIKP_STR-INCO2 sy-vline
WA_EDOC_LIKP_STR-EXPKZ sy-vline
WA_EDOC_LIKP_STR-ROUTE sy-vline
WA_EDOC_LIKP_STR-FAKSK sy-vline
WA_EDOC_LIKP_STR-LIFSK sy-vline
WA_EDOC_LIKP_STR-VBTYP sy-vline
WA_EDOC_LIKP_STR-KNFAK sy-vline
WA_EDOC_LIKP_STR-TPQUA sy-vline
WA_EDOC_LIKP_STR-TPGRP sy-vline
WA_EDOC_LIKP_STR-LPRIO sy-vline
WA_EDOC_LIKP_STR-VSBED sy-vline
WA_EDOC_LIKP_STR-KUNNR sy-vline
WA_EDOC_LIKP_STR-KUNAG sy-vline
WA_EDOC_LIKP_STR-KDGRP sy-vline
WA_EDOC_LIKP_STR-STZKL sy-vline
WA_EDOC_LIKP_STR-STZZU sy-vline
WA_EDOC_LIKP_STR-BTGEW sy-vline
WA_EDOC_LIKP_STR-NTGEW sy-vline
WA_EDOC_LIKP_STR-GEWEI sy-vline
WA_EDOC_LIKP_STR-VOLUM sy-vline
WA_EDOC_LIKP_STR-VOLEH sy-vline
WA_EDOC_LIKP_STR-ANZPK sy-vline
WA_EDOC_LIKP_STR-BEROT sy-vline
WA_EDOC_LIKP_STR-LFUHR sy-vline
WA_EDOC_LIKP_STR-GRULG sy-vline
WA_EDOC_LIKP_STR-LSTEL sy-vline
WA_EDOC_LIKP_STR-TRAGR sy-vline
WA_EDOC_LIKP_STR-FKARV sy-vline
WA_EDOC_LIKP_STR-FKDAT sy-vline
WA_EDOC_LIKP_STR-PERFK sy-vline
WA_EDOC_LIKP_STR-ROUTA sy-vline
WA_EDOC_LIKP_STR-STAFO sy-vline
WA_EDOC_LIKP_STR-KALSM sy-vline
WA_EDOC_LIKP_STR-KNUMV sy-vline
WA_EDOC_LIKP_STR-WAERK sy-vline
WA_EDOC_LIKP_STR-VKBUR sy-vline
WA_EDOC_LIKP_STR-VBEAK sy-vline
WA_EDOC_LIKP_STR-ZUKRL sy-vline
WA_EDOC_LIKP_STR-VERUR sy-vline
WA_EDOC_LIKP_STR-COMMN sy-vline
WA_EDOC_LIKP_STR-STWAE sy-vline
WA_EDOC_LIKP_STR-STCUR sy-vline
WA_EDOC_LIKP_STR-EXNUM sy-vline
WA_EDOC_LIKP_STR-AENAM sy-vline
WA_EDOC_LIKP_STR-AEDAT sy-vline
WA_EDOC_LIKP_STR-LGNUM sy-vline
WA_EDOC_LIKP_STR-LISPL sy-vline
WA_EDOC_LIKP_STR-VKOIV sy-vline
WA_EDOC_LIKP_STR-VTWIV sy-vline
WA_EDOC_LIKP_STR-SPAIV sy-vline
WA_EDOC_LIKP_STR-FKAIV sy-vline
WA_EDOC_LIKP_STR-PIOIV sy-vline
WA_EDOC_LIKP_STR-FKDIV sy-vline
WA_EDOC_LIKP_STR-KUNIV sy-vline
WA_EDOC_LIKP_STR-KKBER sy-vline
WA_EDOC_LIKP_STR-KNKLI sy-vline
WA_EDOC_LIKP_STR-GRUPP sy-vline
WA_EDOC_LIKP_STR-SBGRP sy-vline
WA_EDOC_LIKP_STR-CTLPC sy-vline
WA_EDOC_LIKP_STR-CMWAE sy-vline
WA_EDOC_LIKP_STR-AMTBL sy-vline
WA_EDOC_LIKP_STR-BOLNR sy-vline
WA_EDOC_LIKP_STR-LIFNR sy-vline
WA_EDOC_LIKP_STR-TRATY sy-vline
WA_EDOC_LIKP_STR-TRAID sy-vline
WA_EDOC_LIKP_STR-CMFRE sy-vline
WA_EDOC_LIKP_STR-CMNGV sy-vline
WA_EDOC_LIKP_STR-XABLN sy-vline
WA_EDOC_LIKP_STR-BLDAT sy-vline
WA_EDOC_LIKP_STR-WADAT_IST sy-vline
WA_EDOC_LIKP_STR-TRSPG sy-vline
WA_EDOC_LIKP_STR-TPSID sy-vline
WA_EDOC_LIKP_STR-LIFEX sy-vline
WA_EDOC_LIKP_STR-TERNR sy-vline
WA_EDOC_LIKP_STR-KALSM_CH sy-vline
WA_EDOC_LIKP_STR-KLIEF sy-vline
WA_EDOC_LIKP_STR-KALSP sy-vline
WA_EDOC_LIKP_STR-KNUMP sy-vline
WA_EDOC_LIKP_STR-NETWR sy-vline
WA_EDOC_LIKP_STR-AULWE sy-vline
WA_EDOC_LIKP_STR-WERKS sy-vline
WA_EDOC_LIKP_STR-LCNUM sy-vline
WA_EDOC_LIKP_STR-ABSSC sy-vline
WA_EDOC_LIKP_STR-KOUHR sy-vline
WA_EDOC_LIKP_STR-TDUHR sy-vline
WA_EDOC_LIKP_STR-LDUHR sy-vline
WA_EDOC_LIKP_STR-WAUHR sy-vline
WA_EDOC_LIKP_STR-LGTOR sy-vline
WA_EDOC_LIKP_STR-LGBZO sy-vline
WA_EDOC_LIKP_STR-AKWAE sy-vline
WA_EDOC_LIKP_STR-AKKUR sy-vline
WA_EDOC_LIKP_STR-AKPRZ sy-vline
WA_EDOC_LIKP_STR-PROLI sy-vline
WA_EDOC_LIKP_STR-XBLNR sy-vline
WA_EDOC_LIKP_STR-HANDLE sy-vline
WA_EDOC_LIKP_STR-TSEGFL sy-vline
WA_EDOC_LIKP_STR-TSEGTP sy-vline
WA_EDOC_LIKP_STR-TZONIS sy-vline
WA_EDOC_LIKP_STR-TZONRC sy-vline
WA_EDOC_LIKP_STR-CONT_DG sy-vline
WA_EDOC_LIKP_STR-VERURSYS sy-vline
WA_EDOC_LIKP_STR-KZWAB sy-vline
WA_EDOC_LIKP_STR-TCODE sy-vline
WA_EDOC_LIKP_STR-VSART sy-vline
WA_EDOC_LIKP_STR-TRMTYP sy-vline
WA_EDOC_LIKP_STR-SDABW sy-vline
WA_EDOC_LIKP_STR-VBUND sy-vline
WA_EDOC_LIKP_STR-XWOFF sy-vline
WA_EDOC_LIKP_STR-DIRTA sy-vline
WA_EDOC_LIKP_STR-PRVBE sy-vline
WA_EDOC_LIKP_STR-FOLAR sy-vline
WA_EDOC_LIKP_STR-PODAT sy-vline
WA_EDOC_LIKP_STR-POTIM sy-vline
WA_EDOC_LIKP_STR-VGANZ sy-vline
WA_EDOC_LIKP_STR-IMWRK sy-vline
WA_EDOC_LIKP_STR-SPE_LOEKZ sy-vline
WA_EDOC_LIKP_STR-SPE_LOC_SEQ sy-vline
WA_EDOC_LIKP_STR-SPE_ACC_APP_STS sy-vline
WA_EDOC_LIKP_STR-SPE_SHP_INF_STS sy-vline
WA_EDOC_LIKP_STR-SPE_RET_CANC sy-vline
WA_EDOC_LIKP_STR-SPE_WAUHR_IST sy-vline
WA_EDOC_LIKP_STR-SPE_WAZONE_IST sy-vline
WA_EDOC_LIKP_STR-SPE_REV_VLSTK sy-vline
WA_EDOC_LIKP_STR-SPE_LE_SCENARIO sy-vline
WA_EDOC_LIKP_STR-SPE_ORIG_SYS sy-vline
WA_EDOC_LIKP_STR-SPE_CHNG_SYS sy-vline
WA_EDOC_LIKP_STR-SPE_GEOROUTE sy-vline
WA_EDOC_LIKP_STR-SPE_GEOROUTEIND sy-vline
WA_EDOC_LIKP_STR-SPE_CARRIER_IND sy-vline
WA_EDOC_LIKP_STR-SPE_GTS_REL sy-vline
WA_EDOC_LIKP_STR-SPE_GTS_RT_CDE sy-vline
WA_EDOC_LIKP_STR-SPE_REL_TMSTMP sy-vline
WA_EDOC_LIKP_STR-SPE_UNIT_SYSTEM sy-vline
WA_EDOC_LIKP_STR-SPE_INV_BFR_GI sy-vline
WA_EDOC_LIKP_STR-SPE_QI_STATUS sy-vline
WA_EDOC_LIKP_STR-SPE_RED_IND sy-vline
WA_EDOC_LIKP_STR-SAKES sy-vline
WA_EDOC_LIKP_STR-SPE_LIFEX_TYPE sy-vline
WA_EDOC_LIKP_STR-SPE_TTYPE sy-vline
WA_EDOC_LIKP_STR-SPE_PRO_NUMBER sy-vline
WA_EDOC_LIKP_STR-LOC_GUID sy-vline
WA_EDOC_LIKP_STR-SPE_BILLING_IND sy-vline
WA_EDOC_LIKP_STR-PRINTER_PROFILE sy-vline
WA_EDOC_LIKP_STR-MSR_ACTIVE sy-vline
WA_EDOC_LIKP_STR-PRTNR sy-vline
WA_EDOC_LIKP_STR-STGE_LOC_CHANGE sy-vline
WA_EDOC_LIKP_STR-TM_CTRL_KEY sy-vline
WA_EDOC_LIKP_STR-DLV_SPLIT_INITIA sy-vline
WA_EDOC_LIKP_STR-DLV_VERSION sy-vline
WA_EDOC_LIKP_STR-_DATAAGING sy-vline
WA_EDOC_LIKP_STR-GTS_VORPA sy-vline
WA_EDOC_LIKP_STR-GTS_VORNU sy-vline
WA_EDOC_LIKP_STR-GTS_EXPVZ sy-vline
WA_EDOC_LIKP_STR-GTS_PORTI sy-vline
WA_EDOC_LIKP_STR-ITM_EXPVZ sy-vline
WA_EDOC_LIKP_STR-ITM_STGBE sy-vline
WA_EDOC_LIKP_STR-ITM_KZGBE sy-vline
WA_EDOC_LIKP_STR-ITM_VYGID sy-vline
WA_EDOC_LIKP_STR-ITM_IEVER sy-vline
WA_EDOC_LIKP_STR-ITM_STABE sy-vline
WA_EDOC_LIKP_STR-ITM_KZABE sy-vline
WA_EDOC_LIKP_STR-HANDOVERLOC sy-vline
WA_EDOC_LIKP_STR-HANDOVERDATE sy-vline
WA_EDOC_LIKP_STR-HANDOVERTIME sy-vline
WA_EDOC_LIKP_STR-HANDOVERTZONE sy-vline
WA_EDOC_LIKP_STR-BESTK sy-vline
WA_EDOC_LIKP_STR-CMPSC sy-vline
WA_EDOC_LIKP_STR-CMPSD sy-vline
WA_EDOC_LIKP_STR-CMPSI sy-vline
WA_EDOC_LIKP_STR-CMPSJ sy-vline
WA_EDOC_LIKP_STR-CMPSK sy-vline
WA_EDOC_LIKP_STR-CMPS_CM sy-vline
WA_EDOC_LIKP_STR-CMPS_TE sy-vline
WA_EDOC_LIKP_STR-CMGST sy-vline
WA_EDOC_LIKP_STR-FKIVK sy-vline
WA_EDOC_LIKP_STR-FKSTK sy-vline
WA_EDOC_LIKP_STR-GBSTK sy-vline
WA_EDOC_LIKP_STR-HDALL sy-vline
WA_EDOC_LIKP_STR-HDALS sy-vline
WA_EDOC_LIKP_STR-KOQUK sy-vline
WA_EDOC_LIKP_STR-KOSTK sy-vline
WA_EDOC_LIKP_STR-LVSTK sy-vline
WA_EDOC_LIKP_STR-PDSTK sy-vline
WA_EDOC_LIKP_STR-PKSTK sy-vline
WA_EDOC_LIKP_STR-SPE_TMPID sy-vline
WA_EDOC_LIKP_STR-SPSTG sy-vline
WA_EDOC_LIKP_STR-TRSTA sy-vline
WA_EDOC_LIKP_STR-UVALL sy-vline
WA_EDOC_LIKP_STR-UVALS sy-vline
WA_EDOC_LIKP_STR-UVFAK sy-vline
WA_EDOC_LIKP_STR-UVFAS sy-vline
WA_EDOC_LIKP_STR-UVPAK sy-vline
WA_EDOC_LIKP_STR-UVPAS sy-vline
WA_EDOC_LIKP_STR-UVPIK sy-vline
WA_EDOC_LIKP_STR-UVPIS sy-vline
WA_EDOC_LIKP_STR-UVVLK sy-vline
WA_EDOC_LIKP_STR-UVVLS sy-vline
WA_EDOC_LIKP_STR-UVWAK sy-vline
WA_EDOC_LIKP_STR-UVWAS sy-vline
WA_EDOC_LIKP_STR-VESTK sy-vline
WA_EDOC_LIKP_STR-VLSTK sy-vline
WA_EDOC_LIKP_STR-WBSTK sy-vline
WA_EDOC_LIKP_STR-UVK01 sy-vline
WA_EDOC_LIKP_STR-UVK02 sy-vline
WA_EDOC_LIKP_STR-UVK03 sy-vline
WA_EDOC_LIKP_STR-UVK04 sy-vline
WA_EDOC_LIKP_STR-UVK05 sy-vline
WA_EDOC_LIKP_STR-UVS01 sy-vline
WA_EDOC_LIKP_STR-UVS02 sy-vline
WA_EDOC_LIKP_STR-UVS03 sy-vline
WA_EDOC_LIKP_STR-UVS04 sy-vline
WA_EDOC_LIKP_STR-UVS05 sy-vline
WA_EDOC_LIKP_STR-TOTAL_PCSTA sy-vline
WA_EDOC_LIKP_STR-TOTAL_DGSTA sy-vline
WA_EDOC_LIKP_STR-TOTAL_SDSSTA sy-vline
WA_EDOC_LIKP_STR-TOTAL_ARC_STATUS sy-vline
WA_EDOC_LIKP_STR-ICO_FKIVK sy-vline
WA_EDOC_LIKP_STR-TOTAL_EMCST sy-vline
WA_EDOC_LIKP_STR-TOTAL_SLCST sy-vline
WA_EDOC_LIKP_STR-TOTAL_LCCST sy-vline
WA_EDOC_LIKP_STR-/SAPMP/LBASK sy-vline
WA_EDOC_LIKP_STR-INCOV sy-vline
WA_EDOC_LIKP_STR-INCO2_L sy-vline
WA_EDOC_LIKP_STR-INCO3_L sy-vline
WA_EDOC_LIKP_STR-INCO2_KEY sy-vline
WA_EDOC_LIKP_STR-INCO3_KEY sy-vline
WA_EDOC_LIKP_STR-INCO4_KEY sy-vline
WA_EDOC_LIKP_STR-OID_EXTBOL sy-vline
WA_EDOC_LIKP_STR-OID_MISCDL sy-vline
WA_EDOC_LIKP_STR-EXT_BUS_SYST_ID sy-vline
WA_EDOC_LIKP_STR-SITKZ_DB sy-vline
WA_EDOC_LIKP_STR-TM_ADV_SHIP_RECV sy-vline
WA_EDOC_LIKP_STR-TM_WHSE_EXEC sy-vline
WA_EDOC_LIKP_STR-LGLC_LIC_IND sy-vline
WA_EDOC_LIKP_STR-DUMMY_DELIVERY_INCL_EEW_PS sy-vline
WA_EDOC_LIKP_STR-/BEV1/LULEINH sy-vline
WA_EDOC_LIKP_STR-/BEV1/RPFAESS sy-vline
WA_EDOC_LIKP_STR-/BEV1/RPKIST sy-vline
WA_EDOC_LIKP_STR-/BEV1/RPCONT sy-vline
WA_EDOC_LIKP_STR-/BEV1/RPSONST sy-vline
WA_EDOC_LIKP_STR-/BEV1/RPFLGNR sy-vline
WA_EDOC_LIKP_STR-IDT_CUR_EVTLOC sy-vline
WA_EDOC_LIKP_STR-IDT_CUR_EVTQUA sy-vline
WA_EDOC_LIKP_STR-IDT_CUR_EVTTST sy-vline
WA_EDOC_LIKP_STR-IDT_CUR_ESTLOC sy-vline
WA_EDOC_LIKP_STR-IDT_CUR_ESTQUA sy-vline
WA_EDOC_LIKP_STR-IDT_CUR_ESTTST sy-vline
WA_EDOC_LIKP_STR-IDT_CUR_WRKQUA sy-vline
WA_EDOC_LIKP_STR-IDT_PRE_EVTLOC sy-vline
WA_EDOC_LIKP_STR-IDT_PRE_EVTQUA sy-vline
WA_EDOC_LIKP_STR-IDT_PRE_EVTTST sy-vline
WA_EDOC_LIKP_STR-IDT_PRE_ESTLOC sy-vline
WA_EDOC_LIKP_STR-IDT_PRE_ESTQUA sy-vline
WA_EDOC_LIKP_STR-IDT_PRE_ESTTST sy-vline
WA_EDOC_LIKP_STR-IDT_PRE_WRKQUA sy-vline
WA_EDOC_LIKP_STR-IDT_REF_ESTLOC sy-vline
WA_EDOC_LIKP_STR-IDT_REF_ESTQUA sy-vline
WA_EDOC_LIKP_STR-IDT_REF_ESTTST sy-vline
WA_EDOC_LIKP_STR-IDT_FIRM_LFDAT sy-vline
WA_EDOC_LIKP_STR-IDT_DOCNUM sy-vline
WA_EDOC_LIKP_STR-BORGR_GRP sy-vline
WA_EDOC_LIKP_STR-KBNKZ sy-vline
WA_EDOC_LIKP_STR-FSH_TRANSACTION sy-vline
WA_EDOC_LIKP_STR-FSH_VAS_LAST_ITEM sy-vline
WA_EDOC_LIKP_STR-FSH_VAS_CG sy-vline
WA_EDOC_LIKP_STR-RFM_PSST_GROUP sy-vline
WA_EDOC_LIKP_STR-EXT_ACT_DATE_TOCD sy-vline
WA_EDOC_LIKP_STR-EXT_PLAN_DATE_TOCD sy-vline
WA_EDOC_LIKP_STR-EXT_TZONE_TOCD sy-vline
WA_EDOC_LIKP_STR-INT_ACT_DATE_TOCD sy-vline
WA_EDOC_LIKP_STR-INT_PLAN_DATE_TOCD sy-vline
WA_EDOC_LIKP_STR-INT_TZONE_TOCD sy-vline
WA_EDOC_LIKP_STR-JIT_RLVNT sy-vline
WA_EDOC_LIKP_STR-UPDKZ sy-vline
WA_EDOC_LIKP_STR-VOGGT sy-vline
WA_EDOC_LIKP_STR-VSTRM sy-vline
WA_EDOC_LIKP_STR-TRTRM sy-vline
WA_EDOC_LIKP_STR-COMB_CRIT sy-vline
WA_EDOC_LIKP_STR-ADDEL sy-vline
WA_EDOC_LIKP_STR-KZEBU sy-vline
WA_EDOC_LIKP_STR-SPE_DIRECT_BILLING sy-vline
WA_EDOC_LIKP_STR-SPE_BILLING_WAIT sy-vline
WA_EDOC_LIKP_STR-SPE_PRINTER_PROF sy-vline
WA_EDOC_LIKP_STR-SPE_INITIATOR_PROCESS sy-vline
WA_EDOC_LIKP_STR-SPE_SPDNR sy-vline
WA_EDOC_LIKP_STR-SPE_CD_PROCESS sy-vline
WA_EDOC_LIKP_STR-MDIFF_BUCH sy-vline
WA_EDOC_LIKP_STR-MDIFF_STORNO sy-vline
WA_EDOC_LIKP_STR-SITKZ sy-vline
WA_EDOC_LIKP_STR-CROSS_SYSTEM_SPLIT sy-vline
WA_EDOC_LIKP_STR-RELOC_SPLIT sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.