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

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

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

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


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/SCMTMS/S_TOR_Q_FB_MSTOP ASSIGNING </SCMTMS/S_TOR_Q_FB_MSTOP>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</SCMTMS/S_TOR_Q_FB_MSTOP>-TOR_ID = 1.
</SCMTMS/S_TOR_Q_FB_MSTOP>-TOR_CAT = 1.
</SCMTMS/S_TOR_Q_FB_MSTOP>-TOR_TYPE = 1.
</SCMTMS/S_TOR_Q_FB_MSTOP>-DGO_INDICATOR = 1.
</SCMTMS/S_TOR_Q_FB_MSTOP>-DGO_CHECK_ERROR = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/SCMTMS/S_TOR_Q_FB_MSTOP-DG_ADR_PTS_VAL, sy-vline,
WA_/SCMTMS/S_TOR_Q_FB_MSTOP-DG_ADR_PTS_UNI, sy-vline,
WA_/SCMTMS/S_TOR_Q_FB_MSTOP-DG_ADR_NO_EXEMPTION, sy-vline,
WA_/SCMTMS/S_TOR_Q_FB_MSTOP-RESP_PERSON, sy-vline,
WA_/SCMTMS/S_TOR_Q_FB_MSTOP-LABELTXT, sy-vline,
WA_/SCMTMS/S_TOR_Q_FB_MSTOP-PLN_SCT_REL, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SCMTMS/S_TOR_Q_FB_MSTOP 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_TOR_Q_FB_MSTOP 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_TOR_Q_FB_MSTOP INTO WA_/SCMTMS/S_TOR_Q_FB_MSTOP. *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 TOR_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCMTMS/S_TOR_Q_FB_MSTOP-TOR_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_TOR_Q_FB_MSTOP-TOR_ID.
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_TOR_Q_FB_MSTOP-DG_ADR_PTS_VAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_TOR_Q_FB_MSTOP-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_TOR_Q_FB_MSTOP-DG_ADR_PTS_UNI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_TOR_Q_FB_MSTOP-DG_ADR_PTS_UNI.
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_TOR_Q_FB_MSTOP-CREATED_ON IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_TOR_Q_FB_MSTOP-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_TOR_Q_FB_MSTOP-CHANGED_ON IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_TOR_Q_FB_MSTOP-CHANGED_ON.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit ALPHA, internal->external for field BUYORIG_BTD_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCMTMS/S_TOR_Q_FB_MSTOP-BUYORIG_BTD_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_TOR_Q_FB_MSTOP-BUYORIG_BTD_ID.
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_TOR_Q_FB_MSTOP_STR,
TOR_ID TYPE STRING,
TOR_CAT TYPE STRING,
TOR_TYPE TYPE STRING,
DGO_INDICATOR TYPE STRING,
DGO_CHECK_ERROR TYPE STRING,
DG_ADR_PTS_VAL TYPE STRING,
DG_ADR_PTS_UNI TYPE STRING,
DG_ADR_NO_EXEMPTION TYPE STRING,
RESP_PERSON TYPE STRING,
LABELTXT TYPE STRING,
PLN_SCT_REL TYPE STRING,
ARCHIVING TYPE STRING,
LIFECYCLE TYPE STRING,
CREATED_BY TYPE STRING,
CREATED_ON TYPE STRING,
CHANGED_BY TYPE STRING,
CHANGED_ON TYPE STRING,
EXEC_ORG_ID TYPE STRING,
EXEC_GRP_ID TYPE STRING,
PURCH_ORG_ID TYPE STRING,
PURCH_GRP_ID TYPE STRING,
SHIPPERID TYPE STRING,
CONSIGNEEID TYPE STRING,
SUPPLIERID TYPE STRING,
GOODS_SUPPLIERID TYPE STRING,
LOCFR TYPE STRING,
LOCTO TYPE STRING,
ZONEFR TYPE STRING,
ZONETO TYPE STRING,
PU_FR TYPE STRING,
PU_TO TYPE STRING,
PICK_UP_DATETIME TYPE STRING,
DLV_FR TYPE STRING,
DLV_TO TYPE STRING,
DELIVERY_DATETIME TYPE STRING,
UNLOCFR TYPE STRING,
UNLOCTO TYPE STRING,
IATALOCFR TYPE STRING,
IATALOCTO TYPE STRING,
FIRST_STOP_HE_STATUS TYPE STRING,
LAST_STOP_HE_STATUS TYPE STRING,
SRC_DST_LOC_ONLY TYPE STRING,
DOC_CHECK_STATUS TYPE STRING,
CROSS_DOC_CHECK_STATUS TYPE STRING,
TRAFFIC_DIRECT TYPE STRING,
INCL_INIT_TIMES TYPE STRING,
TRMODCOD TYPE STRING,
FIXATION TYPE STRING,
AUTO_PLAN TYPE STRING,
SELF_DELIVERY TYPE STRING,
ERP_DOC_ID TYPE STRING,
PURCH_EXT_ORG_ID TYPE STRING,
PURCH_EXT_GRP_ID TYPE STRING,
EXEC_ORG_EXT_ID TYPE STRING,
EXEC_GRP_EXT_ID TYPE STRING,
SHPM_UPD_REL TYPE STRING,
PARTY_ID TYPE STRING,
WAREHOUSE_NUMBER TYPE STRING,
LOADING_POINT_ID TYPE STRING,
WAREHOUSE_DOOR TYPE STRING,
WH_PROCESSING_STATUS TYPE STRING,
DLV_GOODS_MVMNT TYPE STRING,
LGORT TYPE STRING,
WH_DOOR_STATUS TYPE STRING,
DLV_GOODS_MVMNT_PROC_IND TYPE STRING,
BOK_MULTI_STOP TYPE STRING,
ARCHIVING_TIME TYPE STRING,
ERP_SHP_REL TYPE STRING,
TRACK_EXEC_REL TYPE STRING,
BW_RELEVANCE TYPE STRING,
ENABLE_SETTLEMENT TYPE STRING,
ENABLE_CHARGE_CALC TYPE STRING,
ENABLE_INT_SETTLEMENT TYPE STRING,
ORG_INTERACTION TYPE STRING,
SHPM_TRANSM TYPE STRING,
PLAN_STATUS_ROOT TYPE STRING,
EXECUTION TYPE STRING,
BLK_PLAN TYPE STRING,
BLK_EXEC TYPE STRING,
BRC_PLAN TYPE STRING,
BRC_EXEC TYPE STRING,
DATETIME_BLK_PLA TYPE STRING,
USER_ID_BLK_PLAN TYPE STRING,
DATETIME_BLK_EXE TYPE STRING,
USER_ID_BLK_EXEC TYPE STRING,
INV_BLOCK TYPE STRING,
INV_BLOCK_REASON TYPE STRING,
DATETIME_BLK_INV TYPE STRING,
USER_ID_BLK_INV TYPE STRING,
CONFIRMATION TYPE STRING,
SUBCONTRACTING TYPE STRING,
TSP_ID TYPE STRING,
MTR TYPE STRING,
DISCREPANCY TYPE STRING,
TRANSSRVLVL_CODE TYPE STRING,
HANDLING_EXEC TYPE STRING,
CARGO_RECEIPT TYPE STRING,
TRQ_CAT TYPE STRING,
DLV_CREATED_ON TYPE STRING,
DLV_PRIO TYPE STRING,
DLV_BLOCKED TYPE STRING,
DLV_CONF_RCVD_ON TYPE STRING,
PROC_RESULT_CODE TYPE STRING,
TCC_INV_STATUS TYPE STRING,
TCC_CALC_STATUS TYPE STRING,
TCC_USAGE_CODE TYPE STRING,
ERP_COMP_ORG_ID TYPE STRING,
PU_DLV_COMB TYPE STRING,
LOC_BOTH TYPE STRING,
USE_INDEX_TIME TYPE STRING,
TRQ_ID TYPE STRING,
TRQ_ORIG_LOGSYS TYPE STRING,
TRQ_BASE_BTD_ID TYPE STRING,
TRQ_BASE_BTD_TCO TYPE STRING,
SALES_ORG_ID TYPE STRING,
SALES_OFF_ID TYPE STRING,
SALES_GROUP_ID TYPE STRING,
ERP_SHPM_BTDID TYPE STRING,
ERP_SHPM_LOGSYS TYPE STRING,
ERP_SHPM_TYPE TYPE STRING,
CUSTOMS TYPE STRING,
COMPLIANCE TYPE STRING,
BUYORIG_BTD_ID TYPE STRING,
PARTNER_REF_ID TYPE STRING,
PARTNER_MBL_ID TYPE STRING,
MAX_UTIL_MASS TYPE STRING,
MAX_UTIL_VOLUME TYPE STRING,
MOT TYPE STRING,
HBL_NUMBER TYPE STRING,
TRACKING_NO TYPE STRING,
VOYAGE_ID TYPE STRING,
VESSEL_ID TYPE STRING,
IMO_ID TYPE STRING,
COUNTRY TYPE STRING,
TRMODCAT TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SCMTMS/S_TOR_Q_FB_MSTOP_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_TOR_Q_FB_MSTOP_STR-TOR_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TOR_CAT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TOR_TYPE sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DGO_INDICATOR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DGO_CHECK_ERROR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DG_ADR_PTS_VAL sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DG_ADR_PTS_UNI sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DG_ADR_NO_EXEMPTION sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-RESP_PERSON sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-LABELTXT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PLN_SCT_REL sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ARCHIVING sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-LIFECYCLE sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-CREATED_BY sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-CREATED_ON sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-CHANGED_BY sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-CHANGED_ON sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-EXEC_ORG_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-EXEC_GRP_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PURCH_ORG_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PURCH_GRP_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SHIPPERID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-CONSIGNEEID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SUPPLIERID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-GOODS_SUPPLIERID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-LOCFR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-LOCTO sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ZONEFR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ZONETO sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PU_FR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PU_TO sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PICK_UP_DATETIME sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DLV_FR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DLV_TO sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DELIVERY_DATETIME sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-UNLOCFR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-UNLOCTO sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-IATALOCFR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-IATALOCTO sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-FIRST_STOP_HE_STATUS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-LAST_STOP_HE_STATUS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SRC_DST_LOC_ONLY sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DOC_CHECK_STATUS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-CROSS_DOC_CHECK_STATUS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRAFFIC_DIRECT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-INCL_INIT_TIMES sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRMODCOD sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-FIXATION sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-AUTO_PLAN sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SELF_DELIVERY sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ERP_DOC_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PURCH_EXT_ORG_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PURCH_EXT_GRP_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-EXEC_ORG_EXT_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-EXEC_GRP_EXT_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SHPM_UPD_REL sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PARTY_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-WAREHOUSE_NUMBER sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-LOADING_POINT_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-WAREHOUSE_DOOR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-WH_PROCESSING_STATUS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DLV_GOODS_MVMNT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-LGORT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-WH_DOOR_STATUS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DLV_GOODS_MVMNT_PROC_IND sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-BOK_MULTI_STOP sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ARCHIVING_TIME sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ERP_SHP_REL sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRACK_EXEC_REL sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-BW_RELEVANCE sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ENABLE_SETTLEMENT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ENABLE_CHARGE_CALC sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ENABLE_INT_SETTLEMENT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ORG_INTERACTION sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SHPM_TRANSM sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PLAN_STATUS_ROOT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-EXECUTION sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-BLK_PLAN sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-BLK_EXEC sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-BRC_PLAN sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-BRC_EXEC sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DATETIME_BLK_PLA sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-USER_ID_BLK_PLAN sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DATETIME_BLK_EXE sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-USER_ID_BLK_EXEC sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-INV_BLOCK sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-INV_BLOCK_REASON sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DATETIME_BLK_INV sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-USER_ID_BLK_INV sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-CONFIRMATION sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SUBCONTRACTING sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TSP_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-MTR sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DISCREPANCY sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRANSSRVLVL_CODE sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-HANDLING_EXEC sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-CARGO_RECEIPT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRQ_CAT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DLV_CREATED_ON sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DLV_PRIO sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DLV_BLOCKED sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-DLV_CONF_RCVD_ON sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PROC_RESULT_CODE sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TCC_INV_STATUS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TCC_CALC_STATUS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TCC_USAGE_CODE sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ERP_COMP_ORG_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PU_DLV_COMB sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-LOC_BOTH sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-USE_INDEX_TIME sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRQ_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRQ_ORIG_LOGSYS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRQ_BASE_BTD_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRQ_BASE_BTD_TCO sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SALES_ORG_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SALES_OFF_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-SALES_GROUP_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ERP_SHPM_BTDID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ERP_SHPM_LOGSYS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-ERP_SHPM_TYPE sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-CUSTOMS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-COMPLIANCE sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-BUYORIG_BTD_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PARTNER_REF_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-PARTNER_MBL_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-MAX_UTIL_MASS sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-MAX_UTIL_VOLUME sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-MOT sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-HBL_NUMBER sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRACKING_NO sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-VOYAGE_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-VESSEL_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-IMO_ID sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-COUNTRY sy-vline
WA_/SCMTMS/S_TOR_Q_FB_MSTOP_STR-TRMODCAT sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.