ABAP Select data from SAP table /SCWM/S_ASP_TU_OPEN_HU 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 /SCWM/S_ASP_TU_OPEN_HU 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 /SCWM/S_ASP_TU_OPEN_HU. 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 /SCWM/S_ASP_TU_OPEN_HU 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_/SCWM/S_ASP_TU_OPEN_HU TYPE STANDARD TABLE OF /SCWM/S_ASP_TU_OPEN_HU, WA_/SCWM/S_ASP_TU_OPEN_HU TYPE /SCWM/S_ASP_TU_OPEN_HU, 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: </SCWM/S_ASP_TU_OPEN_HU> TYPE /SCWM/S_ASP_TU_OPEN_HU. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_/SCWM/S_ASP_TU_OPEN_HU. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM /SCWM/S_ASP_TU_OPEN_HU INTO TABLE IT_/SCWM/S_ASP_TU_OPEN_HU. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM /SCWM/S_ASP_TU_OPEN_HU * INTO TABLE @DATA(IT_/SCWM/S_ASP_TU_OPEN_HU2). *--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_/SCWM/S_ASP_TU_OPEN_HU INDEX 1 INTO DATA(WA_/SCWM/S_ASP_TU_OPEN_HU2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_/SCWM/S_ASP_TU_OPEN_HU ASSIGNING </SCWM/S_ASP_TU_OPEN_HU>.*To update a field value using a field symbol simply change the value via the field symbol pointer
</SCWM/S_ASP_TU_OPEN_HU>-HUIDENT = 1.
</SCWM/S_ASP_TU_OPEN_HU>-GUID_HU = 1.
</SCWM/S_ASP_TU_OPEN_HU>-LGNUM = 1.
</SCWM/S_ASP_TU_OPEN_HU>-HU_DYNSTAT = 1.
</SCWM/S_ASP_TU_OPEN_HU>-STATUS_LOAD = 1.
ENDLOOP. LOOP AT IT_/SCWM/S_ASP_TU_OPEN_HU INTO WA_/SCWM/S_ASP_TU_OPEN_HU. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_/SCWM/S_ASP_TU_OPEN_HU-PHYSTAT, sy-vline,
WA_/SCWM/S_ASP_TU_OPEN_HU-STATUS_GM, sy-vline,
WA_/SCWM/S_ASP_TU_OPEN_HU-SYSTEM_STATUS, sy-vline,
WA_/SCWM/S_ASP_TU_OPEN_HU-USER_STATUS, sy-vline,
WA_/SCWM/S_ASP_TU_OPEN_HU-CROSS_HU, sy-vline,
WA_/SCWM/S_ASP_TU_OPEN_HU-ICON_TO_STATUS, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SCWM/S_ASP_TU_OPEN_HU 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_/SCWM/S_ASP_TU_OPEN_HU 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_/SCWM/S_ASP_TU_OPEN_HU INTO WA_/SCWM/S_ASP_TU_OPEN_HU. *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 HUID, internal->external for field HUIDENT CALL FUNCTION 'CONVERSION_EXIT_HUID_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-HUIDENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-HUIDENT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSPWM, internal->external for field STU_TSP CALL FUNCTION 'CONVERSION_EXIT_TSPWM_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-STU_TSP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-STU_TSP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPH0, internal->external for field TANUM CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-TANUM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-TANUM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSPWM, internal->external for field DTU_TSP CALL FUNCTION 'CONVERSION_EXIT_TSPWM_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-DTU_TSP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-DTU_TSP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPH0, internal->external for field WHO CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-WHO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-WHO.
WRITE:/ 'New Value:', ld_input.
*Conversion exit PROCR, internal->external for field PROCESSOR CALL FUNCTION 'CONVERSION_EXIT_PROCR_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-PROCESSOR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-PROCESSOR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTWH, internal->external for field STARTED_AT CALL FUNCTION 'CONVERSION_EXIT_TSTWH_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-STARTED_AT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-STARTED_AT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNIT_GW CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_GW IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_GW.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNIT_NW CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_NW IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_NW.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNIT_GV CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_GV IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_GV.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNIT_NV CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_NV IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_NV.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNIT_L CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_L IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_L.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNIT_W CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_W IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_W.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNIT_H CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_H IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_H.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNIT_LWH CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_LWH IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-UNIT_LWH.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field REFDOCNO_PRD CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-REFDOCNO_PRD IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-REFDOCNO_PRD.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field REFITEMNO_PRD CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-REFITEMNO_PRD IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-REFITEMNO_PRD.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPH0, internal->external for field PLAN_TU_SR_ACT_NUM CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_ASP_TU_OPEN_HU-PLAN_TU_SR_ACT_NUM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_ASP_TU_OPEN_HU-PLAN_TU_SR_ACT_NUM.
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_/SCWM/S_ASP_TU_OPEN_HU_STR,
HUIDENT TYPE STRING,
GUID_HU TYPE STRING,
LGNUM TYPE STRING,
HU_DYNSTAT TYPE STRING,
STATUS_LOAD TYPE STRING,
PHYSTAT TYPE STRING,
STATUS_GM TYPE STRING,
SYSTEM_STATUS TYPE STRING,
USER_STATUS TYPE STRING,
CROSS_HU TYPE STRING,
ICON_TO_STATUS TYPE STRING,
TO_STATUS TYPE STRING,
LGTYP TYPE STRING,
LGBER TYPE STRING,
LGPLA TYPE STRING,
DOOR TYPE STRING,
STU_NUM_EXT TYPE STRING,
STU_TSP TYPE STRING,
STU_TSP_TXT TYPE STRING,
TANUM TYPE STRING,
NLTYP TYPE STRING,
NLBER TYPE STRING,
NLPLA TYPE STRING,
DTU_NUM_EXT TYPE STRING,
DTU_TSP TYPE STRING,
DTU_TSP_TXT TYPE STRING,
DST_DOOR TYPE STRING,
PROCTY TYPE STRING,
PRCES TYPE STRING,
PROCS TYPE STRING,
IPROC TYPE STRING,
LM_ACTIVE TYPE STRING,
WHO TYPE STRING,
PROCESSOR TYPE STRING,
STARTED_AT TYPE STRING,
START_DATE TYPE STRING,
START_TIME TYPE STRING,
AREAWHO TYPE STRING,
QUEUE TYPE STRING,
G_WEIGHT TYPE STRING,
UNIT_GW TYPE STRING,
N_WEIGHT TYPE STRING,
UNIT_NW TYPE STRING,
G_VOLUME TYPE STRING,
UNIT_GV TYPE STRING,
N_VOLUME TYPE STRING,
UNIT_NV TYPE STRING,
LENGTH TYPE STRING,
UNIT_L TYPE STRING,
WIDTH TYPE STRING,
UNIT_W TYPE STRING,
HEIGHT TYPE STRING,
UNIT_H TYPE STRING,
UNIT_LWH TYPE STRING,
CREATED_BY TYPE STRING,
CREATED_AT TYPE STRING,
CREATED_DATE TYPE STRING,
CREATED_TIME TYPE STRING,
CHANGED_BY TYPE STRING,
CHANGED_AT TYPE STRING,
CHANGED_DATE TYPE STRING,
CHANGED_TIME TYPE STRING,
VHI TYPE STRING,
HUTYPGRP TYPE STRING,
REFDOCNO_PRD TYPE STRING,
REFDOCID_PRD TYPE STRING,
REFITEMNO_PRD TYPE STRING,
REFITEMID_PRD TYPE STRING,
/SCWM/STOP_SEQ TYPE STRING,
STATUS_TU TYPE STRING,
ICON_STATUS_TU TYPE STRING,
PLAN_TU_NUM_EXT TYPE STRING,
PLAN_SCAC_CURR TYPE STRING,
PLAN_TU_SR_ACT_NUM TYPE STRING,
HUHDR_DUMMY TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SCWM/S_ASP_TU_OPEN_HU_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_/SCWM/S_ASP_TU_OPEN_HU_STR-HUIDENT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-GUID_HU sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-LGNUM sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-HU_DYNSTAT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-STATUS_LOAD sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-PHYSTAT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-STATUS_GM sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-SYSTEM_STATUS sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-USER_STATUS sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-CROSS_HU sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-ICON_TO_STATUS sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-TO_STATUS sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-LGTYP sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-LGBER sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-LGPLA sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-DOOR sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-STU_NUM_EXT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-STU_TSP sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-STU_TSP_TXT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-TANUM sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-NLTYP sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-NLBER sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-NLPLA sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-DTU_NUM_EXT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-DTU_TSP sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-DTU_TSP_TXT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-DST_DOOR sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-PROCTY sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-PRCES sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-PROCS sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-IPROC sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-LM_ACTIVE sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-WHO sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-PROCESSOR sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-STARTED_AT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-START_DATE sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-START_TIME sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-AREAWHO sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-QUEUE sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-G_WEIGHT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-UNIT_GW sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-N_WEIGHT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-UNIT_NW sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-G_VOLUME sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-UNIT_GV sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-N_VOLUME sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-UNIT_NV sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-LENGTH sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-UNIT_L sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-WIDTH sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-UNIT_W sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-HEIGHT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-UNIT_H sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-UNIT_LWH sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-CREATED_BY sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-CREATED_AT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-CREATED_DATE sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-CREATED_TIME sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-CHANGED_BY sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-CHANGED_AT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-CHANGED_DATE sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-CHANGED_TIME sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-VHI sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-HUTYPGRP sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-REFDOCNO_PRD sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-REFDOCID_PRD sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-REFITEMNO_PRD sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-REFITEMID_PRD sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-/SCWM/STOP_SEQ sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-STATUS_TU sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-ICON_STATUS_TU sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-PLAN_TU_NUM_EXT sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-PLAN_SCAC_CURR sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-PLAN_TU_SR_ACT_NUM sy-vline
WA_/SCWM/S_ASP_TU_OPEN_HU_STR-HUHDR_DUMMY sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.