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

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

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

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


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/SCMTMS/S_EM_BO_TOR_EXECINFO ASSIGNING </SCMTMS/S_EM_BO_TOR_EXECINFO>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</SCMTMS/S_EM_BO_TOR_EXECINFO>-NODE_ID = 1.
</SCMTMS/S_EM_BO_TOR_EXECINFO>-PARENT_NODE_ID = 1.
</SCMTMS/S_EM_BO_TOR_EXECINFO>-EXECUTION_ID = 1.
</SCMTMS/S_EM_BO_TOR_EXECINFO>-TORSTOPUUID = 1.
</SCMTMS/S_EM_BO_TOR_EXECINFO>-TORITMUUID = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-NODE_HAS_ERROR, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-NET_DURATION, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-ACTUAL_DATE, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-ACTUAL_TZONE, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-EXP_END_DATE, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-ESTIMATED_DATE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SCMTMS/S_EM_BO_TOR_EXECINFO 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_/SCMTMS/S_EM_BO_TOR_EXECINFO 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_/SCMTMS/S_EM_BO_TOR_EXECINFO INTO WA_/SCMTMS/S_EM_BO_TOR_EXECINFO. *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 EXECUTION_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-EXECUTION_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-EXECUTION_ID.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRN, internal->external for field NET_DURATION CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-NET_DURATION IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-NET_DURATION.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit PARVW, internal->external for field EXEC_ROLE_CAT CALL FUNCTION 'CONVERSION_EXIT_PARVW_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-EXEC_ROLE_CAT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-EXEC_ROLE_CAT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit QTYRN, internal->external for field GRO_WEI_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-GRO_WEI_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-GRO_WEI_VAL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field GRO_VOL_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-GRO_VOL_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-GRO_VOL_VAL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field NET_WEI_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-NET_WEI_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-NET_WEI_VAL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field QUA_PCS_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-QUA_PCS_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-QUA_PCS_VAL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field QUA_PCS2_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-QUA_PCS2_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-QUA_PCS2_VAL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field BASE_UOM_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-BASE_UOM_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-BASE_UOM_VAL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field PKGUN_WEI_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-PKGUN_WEI_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-PKGUN_WEI_VAL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field CONT_CNT_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-CONT_CNT_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-CONT_CNT_VAL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field DG_ADR_PTS_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-DG_ADR_PTS_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-DG_ADR_PTS_VAL.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit TSTLC, internal->external for field CREATED_ON CALL FUNCTION 'CONVERSION_EXIT_TSTLC_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-CREATED_ON IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-CREATED_ON.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTLC, internal->external for field CHANGED_ON CALL FUNCTION 'CONVERSION_EXIT_TSTLC_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-CHANGED_ON IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-CHANGED_ON.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field PKGUN_VOL_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-PKGUN_VOL_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-PKGUN_VOL_VAL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit QTYRN, internal->external for field OUT_VOL_VAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-OUT_VOL_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-OUT_VOL_VAL.
WRITE:/ 'New Value:', ld_input.

*Conversion exit CUNIT, internal->external for field OUT_VOL_UNI CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-OUT_VOL_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_EXECINFO-OUT_VOL_UNI.
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_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR,
NODE_ID TYPE STRING,
PARENT_NODE_ID TYPE STRING,
EXECUTION_ID TYPE STRING,
TORSTOPUUID TYPE STRING,
TORITMUUID TYPE STRING,
NODE_HAS_ERROR TYPE STRING,
NET_DURATION TYPE STRING,
ACTUAL_DATE TYPE STRING,
ACTUAL_TZONE TYPE STRING,
EXP_END_DATE TYPE STRING,
ESTIMATED_DATE TYPE STRING,
EXT_LOC_ID TYPE STRING,
EXT_LOC_UUID TYPE STRING,
EVENT_CODE TYPE STRING,
EVENT_REASON TYPE STRING,
EVENT_STATUS TYPE STRING,
TRANS_ACTIVITY TYPE STRING,
EXECINFO_SOURCE TYPE STRING,
REF_EVENT_CODE TYPE STRING,
EM_WIT TYPE STRING,
EXEC_ROLE_CAT TYPE STRING,
RECORDING_PERSON TYPE STRING,
RECORDING_METHOD TYPE STRING,
EVENT_REVOKED TYPE STRING,
ORIG_NODE_KEY TYPE STRING,
ORIG_EXEC_KEY TYPE STRING,
GRO_WEI_VAL TYPE STRING,
GRO_WEI_UNI TYPE STRING,
GRO_VOL_VAL TYPE STRING,
GRO_VOL_UNI TYPE STRING,
NET_WEI_VAL TYPE STRING,
NET_WEI_UNI TYPE STRING,
QUA_PCS_VAL TYPE STRING,
QUA_PCS_UNI TYPE STRING,
QUA_PCS2_VAL TYPE STRING,
QUA_PCS2_UNI TYPE STRING,
BASE_UOM_VAL TYPE STRING,
BASE_UOM_UNI TYPE STRING,
PKGUN_WEI_VAL TYPE STRING,
PKGUN_WEI_UNI TYPE STRING,
CONT_CNT_VAL TYPE STRING,
CONT_CNT_UNI TYPE STRING,
DG_ADR_PTS_VAL TYPE STRING,
DG_ADR_PTS_UNI TYPE STRING,
SLAC_VAL TYPE STRING,
QTY_DISCREPANCY TYPE STRING,
LENGTH TYPE STRING,
WIDTH TYPE STRING,
HEIGHT TYPE STRING,
MEASUOM TYPE STRING,
DISCREPANCY TYPE STRING,
DISCR_TYPE TYPE STRING,
DISCR_NO_BLOCK TYPE STRING,
DISCR_INSIDE_TLR TYPE STRING,
DSC_SUBCAT TYPE STRING,
DISCR_SET_BY_SERVICE TYPE STRING,
GEOLAT TYPE STRING,
GEOLON TYPE STRING,
GEOALT TYPE STRING,
DATACS TYPE STRING,
DATAID TYPE STRING,
EVENT_REASON_CODE TYPE STRING,
SNDCOD TYPE STRING,
SNDID TYPE STRING,
CREATED_BY TYPE STRING,
CREATED_ON TYPE STRING,
CHANGED_BY TYPE STRING,
CHANGED_ON TYPE STRING,
EEW_TOR_EXEC TYPE STRING,
EXT_LOC_ID2 TYPE STRING,
EXT_LOC_TYPE TYPE STRING,
PKGUN_VOL_VAL TYPE STRING,
PKGUN_VOL_UNI TYPE STRING,
OUT_VOL_VAL TYPE STRING,
OUT_VOL_UNI TYPE STRING,
EVENT_CONTEXT TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_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_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-NODE_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-PARENT_NODE_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EXECUTION_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-TORSTOPUUID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-TORITMUUID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-NODE_HAS_ERROR sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-NET_DURATION sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-ACTUAL_DATE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-ACTUAL_TZONE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EXP_END_DATE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-ESTIMATED_DATE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EXT_LOC_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EXT_LOC_UUID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EVENT_CODE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EVENT_REASON sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EVENT_STATUS sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-TRANS_ACTIVITY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EXECINFO_SOURCE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-REF_EVENT_CODE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EM_WIT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EXEC_ROLE_CAT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-RECORDING_PERSON sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-RECORDING_METHOD sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EVENT_REVOKED sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-ORIG_NODE_KEY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-ORIG_EXEC_KEY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-GRO_WEI_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-GRO_WEI_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-GRO_VOL_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-GRO_VOL_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-NET_WEI_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-NET_WEI_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-QUA_PCS_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-QUA_PCS_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-QUA_PCS2_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-QUA_PCS2_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-BASE_UOM_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-BASE_UOM_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-PKGUN_WEI_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-PKGUN_WEI_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-CONT_CNT_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-CONT_CNT_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DG_ADR_PTS_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DG_ADR_PTS_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-SLAC_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-QTY_DISCREPANCY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-LENGTH sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-WIDTH sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-HEIGHT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-MEASUOM sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DISCREPANCY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DISCR_TYPE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DISCR_NO_BLOCK sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DISCR_INSIDE_TLR sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DSC_SUBCAT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DISCR_SET_BY_SERVICE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-GEOLAT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-GEOLON sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-GEOALT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DATACS sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-DATAID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EVENT_REASON_CODE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-SNDCOD sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-SNDID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-CREATED_BY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-CREATED_ON sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-CHANGED_BY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-CHANGED_ON sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EEW_TOR_EXEC sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EXT_LOC_ID2 sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EXT_LOC_TYPE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-PKGUN_VOL_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-PKGUN_VOL_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-OUT_VOL_VAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-OUT_VOL_UNI sy-vline
WA_/SCMTMS/S_EM_BO_TOR_EXECINFO_STR-EVENT_CONTEXT sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.