ABAP Select data from SAP table /ACCGO/CCAK_S_KOMWBHIEX_API 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 /ACCGO/CCAK_S_KOMWBHIEX_API 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 /ACCGO/CCAK_S_KOMWBHIEX_API. 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 /ACCGO/CCAK_S_KOMWBHIEX_API 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_/ACCGO/CCAK_S_KOMWBHIEX_API TYPE STANDARD TABLE OF /ACCGO/CCAK_S_KOMWBHIEX_API,
      WA_/ACCGO/CCAK_S_KOMWBHIEX_API TYPE /ACCGO/CCAK_S_KOMWBHIEX_API,
      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: </ACCGO/CCAK_S_KOMWBHIEX_API> TYPE /ACCGO/CCAK_S_KOMWBHIEX_API.

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

SELECT *
*restrict ABAP select to first 10 rows
 UP TO 10 ROWS      
  FROM /ACCGO/CCAK_S_KOMWBHIEX_API
  INTO TABLE IT_/ACCGO/CCAK_S_KOMWBHIEX_API.

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM /ACCGO/CCAK_S_KOMWBHIEX_API
*  INTO TABLE @DATA(IT_/ACCGO/CCAK_S_KOMWBHIEX_API2).
*--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_/ACCGO/CCAK_S_KOMWBHIEX_API INDEX 1 INTO DATA(WA_/ACCGO/CCAK_S_KOMWBHIEX_API2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/ACCGO/CCAK_S_KOMWBHIEX_API ASSIGNING </ACCGO/CCAK_S_KOMWBHIEX_API>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</ACCGO/CCAK_S_KOMWBHIEX_API>-TKONN = 1.
</ACCGO/CCAK_S_KOMWBHIEX_API>-TPOSN = 1.
</ACCGO/CCAK_S_KOMWBHIEX_API>-TPOSN_SUB = 1.
</ACCGO/CCAK_S_KOMWBHIEX_API>-OLDPO = 1.
</ACCGO/CCAK_S_KOMWBHIEX_API>-MATNR = 1.
ENDLOOP.

LOOP AT IT_/ACCGO/CCAK_S_KOMWBHIEX_API INTO WA_/ACCGO/CCAK_S_KOMWBHIEX_API.
*Write horizonal line to screen report.
  WRITE:/ sy-uline.

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/ACCGO/CCAK_S_KOMWBHIEX_API-WERKS, sy-vline,
WA_/ACCGO/CCAK_S_KOMWBHIEX_API-LGORT, sy-vline,
WA_/ACCGO/CCAK_S_KOMWBHIEX_API-KWMENG, sy-vline,
WA_/ACCGO/CCAK_S_KOMWBHIEX_API-VRKME, sy-vline,
WA_/ACCGO/CCAK_S_KOMWBHIEX_API-ARKTX, sy-vline,
WA_/ACCGO/CCAK_S_KOMWBHIEX_API-NETPR_MM, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/ACCGO/CCAK_S_KOMWBHIEX_API 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_/ACCGO/CCAK_S_KOMWBHIEX_API 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_/ACCGO/CCAK_S_KOMWBHIEX_API INTO WA_/ACCGO/CCAK_S_KOMWBHIEX_API. *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 TKONN CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/ACCGO/CCAK_S_KOMWBHIEX_API-TKONN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/ACCGO/CCAK_S_KOMWBHIEX_API-TKONN.
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_/ACCGO/CCAK_S_KOMWBHIEX_API_STR,
TKONN TYPE STRING,
TPOSN TYPE STRING,
TPOSN_SUB TYPE STRING,
OLDPO TYPE STRING,
MATNR TYPE STRING,
WERKS TYPE STRING,
LGORT TYPE STRING,
KWMENG TYPE STRING,
VRKME TYPE STRING,
ARKTX TYPE STRING,
NETPR_MM TYPE STRING,
PEINH_MM TYPE STRING,
MEINS TYPE STRING,
WAERS_MM TYPE STRING,
MATKL TYPE STRING,
EAN11 TYPE STRING,
NETPR_SD TYPE STRING,
KPEIN_SD TYPE STRING,
KMEIN_SD TYPE STRING,
SDWRS TYPE STRING,
MENGE TYPE STRING,
COMPLETE TYPE STRING,
IDNLF TYPE STRING,
KDMAT TYPE STRING,
LOEKZ TYPE STRING,
UPDKZ TYPE STRING,
CHARG TYPE STRING,
HKPSTP TYPE STRING,
BWTAR TYPE STRING,
TAXM1 TYPE STRING,
TAXM2 TYPE STRING,
TAXM3 TYPE STRING,
TAXM4 TYPE STRING,
TAXM5 TYPE STRING,
TAXM6 TYPE STRING,
TAXM7 TYPE STRING,
TAXM8 TYPE STRING,
TAXM9 TYPE STRING,
BPRME_MM TYPE STRING,
KSCHL_MM TYPE STRING,
KBETR_MM TYPE STRING,
KOEIN_MM TYPE STRING,
KSTBS_MM TYPE STRING,
KSCHL_SD TYPE STRING,
KBETR_SD TYPE STRING,
KOEIN_SD TYPE STRING,
KSTBS_SD TYPE STRING,
PRED_NUMBER TYPE STRING,
PRED_ITEM_NUMBER TYPE STRING,
PRED_DOC_TYPE TYPE STRING,
TKONN_FROM TYPE STRING,
TPOSN_FROM TYPE STRING,
TPOSN_SUB_FROM TYPE STRING,
BRGEW TYPE STRING,
NTGEW TYPE STRING,
GEWEI TYPE STRING,
VOLUM TYPE STRING,
VOLEH TYPE STRING,
NTGEW_MM TYPE STRING,
BRGEW_MM TYPE STRING,
VOLUM_MM TYPE STRING,
SKTOF_SD TYPE STRING,
SKTOF_MM TYPE STRING,
POSEX TYPE STRING,
FAKSP_SD TYPE STRING,
UEBTK_SD TYPE STRING,
UEBTO_SD TYPE STRING,
UNTTO_SD TYPE STRING,
UEBTK_MM TYPE STRING,
UNTTO_MM TYPE STRING,
UEBTO_MM TYPE STRING,
ANTLF_SD TYPE STRING,
KZTLF_SD TYPE STRING,
UMVKZ TYPE STRING,
UMVKN TYPE STRING,
ERNAM TYPE STRING,
ABGRU TYPE STRING,
PRODH TYPE STRING,
SPART TYPE STRING,
GSBER TYPE STRING,
PRCTR TYPE STRING,
MVGR1 TYPE STRING,
MVGR2 TYPE STRING,
MVGR3 TYPE STRING,
MVGR4 TYPE STRING,
MVGR5 TYPE STRING,
MATWA TYPE STRING,
PMATN TYPE STRING,
VKAUS TYPE STRING,
PS_PSP_PNR TYPE STRING,
FMENG TYPE STRING,
KMPMG_SD TYPE STRING,
UEPOS TYPE STRING,
BASIS_MEINS TYPE STRING,
KSTEU TYPE STRING,
KSTEU_SD TYPE STRING,
BPUMN_MM TYPE STRING,
BPUMZ_MM TYPE STRING,
BWTTY_MM TYPE STRING,
KNTTP_MM TYPE STRING,
KOSTL TYPE STRING,
LEWED_MM TYPE STRING,
MWSKZ_MM TYPE STRING,
PSTYP_MM TYPE STRING,
UMREN_MM TYPE STRING,
UMREZ_MM TYPE STRING,
COND_CON_ALG TYPE STRING,
CONSOLIDATED TYPE STRING,
TCTYP_FROM TYPE STRING,
MM_PROC_STATUS_CODE TYPE STRING,
SD_PROC_STATUS_CODE TYPE STRING,
ITEM_CLOSURE_CODE TYPE STRING,
SD_BLOCK_CODE TYPE STRING,
MM_BLOCK_CODE TYPE STRING,
SETT_MODE TYPE STRING,
RESLO TYPE STRING,
BLOCK_CODE TYPE STRING,
ROUTE_MM TYPE STRING,
VSTEL_MM TYPE STRING,
VSBED_MM TYPE STRING,
ITEM_RELEVANCY TYPE STRING,
TXJCD_MM TYPE STRING,
ROUTE_SD TYPE STRING,
VSTEL_SD TYPE STRING,
AUFNR TYPE STRING,
SUB_ACCOUNT_ID TYPE STRING,
SUB_ACCOUNT_ID_MIRROR TYPE STRING,
INTENDED_PRICE_TYPE TYPE STRING,
PYMNT_TYPE TYPE STRING,
PYMNT_TERMS TYPE STRING,
PYMNT_DATE TYPE STRING,
THRESHOLD_GUID TYPE STRING,
THRESHOLD_PERCENTAGE TYPE STRING,END OF T_EKKO_STR. DATA: WA_/ACCGO/CCAK_S_KOMWBHIEX_API_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_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TKONN sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TPOSN sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TPOSN_SUB sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-OLDPO sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MATNR sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-WERKS sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-LGORT sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KWMENG sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-VRKME sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-ARKTX sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-NETPR_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PEINH_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MEINS sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-WAERS_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MATKL sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-EAN11 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-NETPR_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KPEIN_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KMEIN_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-SDWRS sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MENGE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-COMPLETE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-IDNLF sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KDMAT sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-LOEKZ sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UPDKZ sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-CHARG sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-HKPSTP sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-BWTAR sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TAXM1 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TAXM2 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TAXM3 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TAXM4 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TAXM5 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TAXM6 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TAXM7 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TAXM8 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TAXM9 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-BPRME_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KSCHL_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KBETR_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KOEIN_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KSTBS_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KSCHL_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KBETR_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KOEIN_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KSTBS_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PRED_NUMBER sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PRED_ITEM_NUMBER sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PRED_DOC_TYPE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TKONN_FROM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TPOSN_FROM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TPOSN_SUB_FROM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-BRGEW sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-NTGEW sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-GEWEI sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-VOLUM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-VOLEH sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-NTGEW_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-BRGEW_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-VOLUM_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-SKTOF_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-SKTOF_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-POSEX sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-FAKSP_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UEBTK_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UEBTO_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UNTTO_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UEBTK_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UNTTO_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UEBTO_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-ANTLF_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KZTLF_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UMVKZ sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UMVKN sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-ERNAM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-ABGRU sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PRODH sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-SPART sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-GSBER sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PRCTR sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MVGR1 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MVGR2 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MVGR3 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MVGR4 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MVGR5 sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MATWA sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PMATN sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-VKAUS sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PS_PSP_PNR sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-FMENG sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KMPMG_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UEPOS sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-BASIS_MEINS sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KSTEU sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KSTEU_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-BPUMN_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-BPUMZ_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-BWTTY_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KNTTP_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-KOSTL sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-LEWED_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MWSKZ_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PSTYP_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UMREN_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-UMREZ_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-COND_CON_ALG sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-CONSOLIDATED sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TCTYP_FROM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MM_PROC_STATUS_CODE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-SD_PROC_STATUS_CODE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-ITEM_CLOSURE_CODE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-SD_BLOCK_CODE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-MM_BLOCK_CODE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-SETT_MODE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-RESLO sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-BLOCK_CODE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-ROUTE_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-VSTEL_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-VSBED_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-ITEM_RELEVANCY sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-TXJCD_MM sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-ROUTE_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-VSTEL_SD sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-AUFNR sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-SUB_ACCOUNT_ID sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-SUB_ACCOUNT_ID_MIRROR sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-INTENDED_PRICE_TYPE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PYMNT_TYPE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PYMNT_TERMS sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-PYMNT_DATE sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-THRESHOLD_GUID sy-vline
WA_/ACCGO/CCAK_S_KOMWBHIEX_API_STR-THRESHOLD_PERCENTAGE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.