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

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

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

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


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

LOOP AT IT_/SCMTMS/S_EM_BO_TOR_STOP_SUCC INTO WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC.
*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_STOP_SUCC-STAGE_TYPE, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-STAGE_CAT, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-NODE_HAS_ERROR, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-DISTANCE_KM, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-DURATION_NET, sy-vline,
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-MTR_TCO, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC 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_STOP_SUCC 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_STOP_SUCC INTO WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC. *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 SUCCESSOR_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-SUCCESSOR_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-SUCCESSOR_ID.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit ID001, internal->external for field TSP_KEY CALL FUNCTION 'CONVERSION_EXIT_ID001_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-TSP_KEY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-TSP_KEY.
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_EM_BO_TOR_STOP_SUCC-TSP_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-TSP_ID.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit PLNST, internal->external for field PLAN_STATUS CALL FUNCTION 'CONVERSION_EXIT_PLNST_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-PLAN_STATUS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-PLAN_STATUS.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ID001, internal->external for field TSP_PYMT_KEY CALL FUNCTION 'CONVERSION_EXIT_ID001_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-TSP_PYMT_KEY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-TSP_PYMT_KEY.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit ID001, internal->external for field BILL_TO_PARTY_KEY CALL FUNCTION 'CONVERSION_EXIT_ID001_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-BILL_TO_PARTY_KEY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-BILL_TO_PARTY_KEY.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit ALPHA, internal->external for field EXTERNAL_FA_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-EXTERNAL_FA_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC-EXTERNAL_FA_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_EM_BO_TOR_STOP_SUCC_STR,
NODE_ID TYPE STRING,
PARENT_NODE_ID TYPE STRING,
ROOT_NODE_ID TYPE STRING,
SUCC_STOP_KEY TYPE STRING,
SUCCESSOR_ID TYPE STRING,
STAGE_TYPE TYPE STRING,
STAGE_CAT TYPE STRING,
NODE_HAS_ERROR TYPE STRING,
DISTANCE_KM TYPE STRING,
DURATION_NET TYPE STRING,
MTR_TCO TYPE STRING,
MOT TYPE STRING,
MOT_CAT TYPE STRING,
STATISTICAL TYPE STRING,
DG_ADR_REL TYPE STRING,
DG_ADR_NO_EXEMPTION TYPE STRING,
BLK_PLAN TYPE STRING,
BLK_EXEC TYPE STRING,
PREDEC_BLK_PLAN TYPE STRING,
PREDEC_BLK_EXEC TYPE STRING,
MTR_PROP TYPE STRING,
TSP_KEY TYPE STRING,
TSP_ID TYPE STRING,
TSP_SCAC TYPE STRING,
TSP_AIRLC TYPE STRING,
TSP_AIRLCAWB TYPE STRING,
MOT_PROP TYPE STRING,
MOT_CAT_PROP TYPE STRING,
EXEC_ORG_ID TYPE STRING,
EXEC_GRP_ID TYPE STRING,
AGREEMENT_PARTY TYPE STRING,
OTHER_AG_PARTY_RC TYPE STRING,
VOYAGE_ID TYPE STRING,
FLIGHT_CODE TYPE STRING,
VESSEL_ID TYPE STRING,
IMO_ID TYPE STRING,
FLAG_COUNTRY TYPE STRING,
SCHED_REF TYPE STRING,
AIRCRAFT_CODE TYPE STRING,
FLIGHT_NUMBER TYPE STRING,
SAC_ACT TYPE STRING,
SAC_ADV TYPE STRING,
SAC_ADV_SET_BY_SRVC TYPE STRING,
ALLOTMENT TYPE STRING,
STOP_SUCC_CAT TYPE STRING,
ORDER_REL_TYPE TYPE STRING,
RESP_PERSON TYPE STRING,
PLAN_STATUS TYPE STRING,
ORG_INTERACTION TYPE STRING,
OI_REQ_BY TYPE STRING,
OI_REJ_REASON_CODE TYPE STRING,
GT_CUST_ACT_INB TYPE STRING,
TSP_PYMT_KEY TYPE STRING,
TSP_PYMT_ID TYPE STRING,
TSP_PYMT_SCAC TYPE STRING,
STG_PYMT_IND TYPE STRING,
FAG_ID TYPE STRING,
FAG_ITEM_NO TYPE STRING,
FAG_KEY TYPE STRING,
FAG_ITEM_KEY TYPE STRING,
BILL_TO_PARTY_KEY TYPE STRING,
BILL_TO_PARTY_ID TYPE STRING,
EXTERNAL_FA_ID TYPE STRING,
PAYER_COMPANY_CODE TYPE STRING,
PAYER_COMPANY_ORG_ID TYPE STRING,
MAX_UTIL TYPE STRING,
UTIL_MASS TYPE STRING,
UTIL_VOLUME TYPE STRING,
UTIL_LENGTH TYPE STRING,
UTIL_DIMLESS TYPE STRING,
DRV_ASSGN_STATUS TYPE STRING,
EEW_TOR_STOPSUCC TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_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_STOP_SUCC_STR-NODE_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-PARENT_NODE_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-ROOT_NODE_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-SUCC_STOP_KEY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-SUCCESSOR_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-STAGE_TYPE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-STAGE_CAT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-NODE_HAS_ERROR sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-DISTANCE_KM sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-DURATION_NET sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-MTR_TCO sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-MOT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-MOT_CAT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-STATISTICAL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-DG_ADR_REL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-DG_ADR_NO_EXEMPTION sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-BLK_PLAN sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-BLK_EXEC sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-PREDEC_BLK_PLAN sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-PREDEC_BLK_EXEC sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-MTR_PROP sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-TSP_KEY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-TSP_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-TSP_SCAC sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-TSP_AIRLC sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-TSP_AIRLCAWB sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-MOT_PROP sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-MOT_CAT_PROP sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-EXEC_ORG_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-EXEC_GRP_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-AGREEMENT_PARTY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-OTHER_AG_PARTY_RC sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-VOYAGE_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-FLIGHT_CODE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-VESSEL_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-IMO_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-FLAG_COUNTRY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-SCHED_REF sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-AIRCRAFT_CODE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-FLIGHT_NUMBER sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-SAC_ACT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-SAC_ADV sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-SAC_ADV_SET_BY_SRVC sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-ALLOTMENT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-STOP_SUCC_CAT sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-ORDER_REL_TYPE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-RESP_PERSON sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-PLAN_STATUS sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-ORG_INTERACTION sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-OI_REQ_BY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-OI_REJ_REASON_CODE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-GT_CUST_ACT_INB sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-TSP_PYMT_KEY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-TSP_PYMT_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-TSP_PYMT_SCAC sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-STG_PYMT_IND sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-FAG_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-FAG_ITEM_NO sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-FAG_KEY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-FAG_ITEM_KEY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-BILL_TO_PARTY_KEY sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-BILL_TO_PARTY_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-EXTERNAL_FA_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-PAYER_COMPANY_CODE sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-PAYER_COMPANY_ORG_ID sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-MAX_UTIL sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-UTIL_MASS sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-UTIL_VOLUME sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-UTIL_LENGTH sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-UTIL_DIMLESS sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-DRV_ASSGN_STATUS sy-vline
WA_/SCMTMS/S_EM_BO_TOR_STOP_SUCC_STR-EEW_TOR_STOPSUCC sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.