ABAP Select data from SAP table /SCMTMS/S_AD_SCH_ROOT 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_AD_SCH_ROOT 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_AD_SCH_ROOT. 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_AD_SCH_ROOT 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_AD_SCH_ROOT TYPE STANDARD TABLE OF /SCMTMS/S_AD_SCH_ROOT, WA_/SCMTMS/S_AD_SCH_ROOT TYPE /SCMTMS/S_AD_SCH_ROOT, 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_AD_SCH_ROOT> TYPE /SCMTMS/S_AD_SCH_ROOT. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_/SCMTMS/S_AD_SCH_ROOT. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM /SCMTMS/S_AD_SCH_ROOT INTO TABLE IT_/SCMTMS/S_AD_SCH_ROOT. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM /SCMTMS/S_AD_SCH_ROOT * INTO TABLE @DATA(IT_/SCMTMS/S_AD_SCH_ROOT2). *--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_AD_SCH_ROOT INDEX 1 INTO DATA(WA_/SCMTMS/S_AD_SCH_ROOT2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_/SCMTMS/S_AD_SCH_ROOT ASSIGNING </SCMTMS/S_AD_SCH_ROOT>.*To update a field value using a field symbol simply change the value via the field symbol pointer
</SCMTMS/S_AD_SCH_ROOT>-SCH_ID = 1.
</SCMTMS/S_AD_SCH_ROOT>-SCH_CAT = 1.
</SCMTMS/S_AD_SCH_ROOT>-SCH_TYPE = 1.
</SCMTMS/S_AD_SCH_ROOT>-TSP = 1.
</SCMTMS/S_AD_SCH_ROOT>-TSPID = 1.
ENDLOOP. LOOP AT IT_/SCMTMS/S_AD_SCH_ROOT INTO WA_/SCMTMS/S_AD_SCH_ROOT. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_/SCMTMS/S_AD_SCH_ROOT-OPERATING_CARRIER, sy-vline,
WA_/SCMTMS/S_AD_SCH_ROOT-TSP_SCAC, sy-vline,
WA_/SCMTMS/S_AD_SCH_ROOT-VOYAGE, sy-vline,
WA_/SCMTMS/S_AD_SCH_ROOT-FLIGHT_CODE, sy-vline,
WA_/SCMTMS/S_AD_SCH_ROOT-AIRCRAFT_TC, sy-vline,
WA_/SCMTMS/S_AD_SCH_ROOT-TSP_AIRLC, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SCMTMS/S_AD_SCH_ROOT 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_AD_SCH_ROOT 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_AD_SCH_ROOT INTO WA_/SCMTMS/S_AD_SCH_ROOT. *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 SCH_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCMTMS/S_AD_SCH_ROOT-SCH_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-SCH_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ID001, internal->external for field TSP CALL FUNCTION 'CONVERSION_EXIT_ID001_OUTPUT' EXPORTING input = WA_/SCMTMS/S_AD_SCH_ROOT-TSP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-TSP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field TSPID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCMTMS/S_AD_SCH_ROOT-TSPID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-TSPID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field EXT_ROUTE_REF_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCMTMS/S_AD_SCH_ROOT-EXT_ROUTE_REF_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-EXT_ROUTE_REF_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field WBN_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCMTMS/S_AD_SCH_ROOT-WBN_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-WBN_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRN, internal->external for field TRANSP_DUR CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_AD_SCH_ROOT-TRANSP_DUR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-TRANSP_DUR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field QUAN_COST_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCMTMS/S_AD_SCH_ROOT-QUAN_COST_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-QUAN_COST_UOM.
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_AD_SCH_ROOT-GRO_WEI_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-GRO_WEI_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-GRO_VOL_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-GRO_VOL_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-NET_WEI_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-NET_WEI_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-QUA_PCS_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-QUA_PCS_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-QUA_PCS2_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-QUA_PCS2_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-BASE_UOM_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-BASE_UOM_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-PKGUN_WEI_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-PKGUN_WEI_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-CONT_CNT_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-CONT_CNT_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-DG_ADR_PTS_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-DG_ADR_PTS_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-DG_ADR_PTS_UNI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit QTYRN, internal->external for field NORMLOADCONSVAL CALL FUNCTION 'CONVERSION_EXIT_QTYRN_OUTPUT' EXPORTING input = WA_/SCMTMS/S_AD_SCH_ROOT-NORMLOADCONSVAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-NORMLOADCONSVAL.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field NORMLOADCONSUNI CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCMTMS/S_AD_SCH_ROOT-NORMLOADCONSUNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-NORMLOADCONSUNI.
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_AD_SCH_ROOT-CREATED_ON IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-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_AD_SCH_ROOT-CHANGED_ON IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_AD_SCH_ROOT-CHANGED_ON.
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_AD_SCH_ROOT_STR,
SCH_ID TYPE STRING,
SCH_CAT TYPE STRING,
SCH_TYPE TYPE STRING,
TSP TYPE STRING,
TSPID TYPE STRING,
OPERATING_CARRIER TYPE STRING,
TSP_SCAC TYPE STRING,
VOYAGE TYPE STRING,
FLIGHT_CODE TYPE STRING,
AIRCRAFT_TC TYPE STRING,
TSP_AIRLC TYPE STRING,
FLIGHT_NO TYPE STRING,
GEN_SECURITY_STATUS TYPE STRING,
MTR TYPE STRING,
SRC_TDR_KEY TYPE STRING,
DEST_TDR_KEY TYPE STRING,
SCH_REF TYPE STRING,
REF_DATA_STATUS TYPE STRING,
LOOP_ID TYPE STRING,
EXT_ROUTE_REF_ID TYPE STRING,
PRD_TRANSP_GRP TYPE STRING,
DGO_INDICATOR TYPE STRING,
SHIPPING_TYPE TYPE STRING,
WBN_ID TYPE STRING,
VAL_FROM_DATE TYPE STRING,
VAL_TO_DATE TYPE STRING,
TRANSP_DUR TYPE STRING,
QUAN_COST TYPE STRING,
QUAN_COST_UOM TYPE STRING,
FIX_COST 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,
NORMLOADCONSVAL TYPE STRING,
NORMLOADCONSUNI TYPE STRING,
REFERENCE TYPE STRING,
CONSOLIDATION TYPE STRING,
CONS_DIRECT TYPE STRING,
SKIP_SRC_GW TYPE STRING,
SKIP_DEST_GW TYPE STRING,
MOT TYPE STRING,
NR_RANGE TYPE STRING,
ORDER_IND TYPE STRING,
CUTOFF_REF_TYPE TYPE STRING,
DEL_FLAG TYPE STRING,
CREATED_BY TYPE STRING,
CREATED_ON TYPE STRING,
CHANGED_BY TYPE STRING,
CHANGED_ON TYPE STRING,
EEW_SCH_ROOT TYPE STRING,
AGEABLE TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SCMTMS/S_AD_SCH_ROOT_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_AD_SCH_ROOT_STR-SCH_ID sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-SCH_CAT sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-SCH_TYPE sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-TSP sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-TSPID sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-OPERATING_CARRIER sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-TSP_SCAC sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-VOYAGE sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-FLIGHT_CODE sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-AIRCRAFT_TC sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-TSP_AIRLC sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-FLIGHT_NO sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-GEN_SECURITY_STATUS sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-MTR sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-SRC_TDR_KEY sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-DEST_TDR_KEY sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-SCH_REF sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-REF_DATA_STATUS sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-LOOP_ID sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-EXT_ROUTE_REF_ID sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-PRD_TRANSP_GRP sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-DGO_INDICATOR sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-SHIPPING_TYPE sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-WBN_ID sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-VAL_FROM_DATE sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-VAL_TO_DATE sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-TRANSP_DUR sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-QUAN_COST sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-QUAN_COST_UOM sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-FIX_COST sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-GRO_WEI_VAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-GRO_WEI_UNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-GRO_VOL_VAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-GRO_VOL_UNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-NET_WEI_VAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-NET_WEI_UNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-QUA_PCS_VAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-QUA_PCS_UNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-QUA_PCS2_VAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-QUA_PCS2_UNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-BASE_UOM_VAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-BASE_UOM_UNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-PKGUN_WEI_VAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-PKGUN_WEI_UNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-CONT_CNT_VAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-CONT_CNT_UNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-DG_ADR_PTS_VAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-DG_ADR_PTS_UNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-NORMLOADCONSVAL sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-NORMLOADCONSUNI sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-REFERENCE sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-CONSOLIDATION sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-CONS_DIRECT sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-SKIP_SRC_GW sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-SKIP_DEST_GW sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-MOT sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-NR_RANGE sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-ORDER_IND sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-CUTOFF_REF_TYPE sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-DEL_FLAG sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-CREATED_BY sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-CREATED_ON sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-CHANGED_BY sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-CHANGED_ON sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-EEW_SCH_ROOT sy-vline
WA_/SCMTMS/S_AD_SCH_ROOT_STR-AGEABLE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.