ABAP Select data from SAP table /SCWM/S_TO_CREATE_INT_WHR 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_TO_CREATE_INT_WHR 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_TO_CREATE_INT_WHR. 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_TO_CREATE_INT_WHR 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_TO_CREATE_INT_WHR TYPE STANDARD TABLE OF /SCWM/S_TO_CREATE_INT_WHR,
      WA_/SCWM/S_TO_CREATE_INT_WHR TYPE /SCWM/S_TO_CREATE_INT_WHR,
      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_TO_CREATE_INT_WHR> TYPE /SCWM/S_TO_CREATE_INT_WHR.

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

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

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


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/SCWM/S_TO_CREATE_INT_WHR ASSIGNING </SCWM/S_TO_CREATE_INT_WHR>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</SCWM/S_TO_CREATE_INT_WHR>-PROCTY = 1.
</SCWM/S_TO_CREATE_INT_WHR>-REASON = 1.
</SCWM/S_TO_CREATE_INT_WHR>-PRSRC = 1.
</SCWM/S_TO_CREATE_INT_WHR>-MATID = 1.
</SCWM/S_TO_CREATE_INT_WHR>-BATCHID = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/SCWM/S_TO_CREATE_INT_WHR-CAT, sy-vline,
WA_/SCWM/S_TO_CREATE_INT_WHR-STOCK_DOCCAT, sy-vline,
WA_/SCWM/S_TO_CREATE_INT_WHR-STOCK_DOCNO, sy-vline,
WA_/SCWM/S_TO_CREATE_INT_WHR-STOCK_ITMNO, sy-vline,
WA_/SCWM/S_TO_CREATE_INT_WHR-DOCCAT, sy-vline,
WA_/SCWM/S_TO_CREATE_INT_WHR-STOCK_USAGE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SCWM/S_TO_CREATE_INT_WHR 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_TO_CREATE_INT_WHR 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_TO_CREATE_INT_WHR INTO WA_/SCWM/S_TO_CREATE_INT_WHR. *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 MDLPD, internal->external for field MATID CALL FUNCTION 'CONVERSION_EXIT_MDLPD_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-MATID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-MATID.
WRITE:/ 'New Value:', ld_input.

*Conversion exit BPMAP, internal->external for field OWNER CALL FUNCTION 'CONVERSION_EXIT_BPMAP_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-OWNER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-OWNER.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit TSTWH, internal->external for field WDATU CALL FUNCTION 'CONVERSION_EXIT_TSTWH_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-WDATU IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-WDATU.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit TSPWM, internal->external for field STSP CALL FUNCTION 'CONVERSION_EXIT_TSPWM_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-STSP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-STSP.
WRITE:/ 'New Value:', ld_input.

*Conversion exit HUID, internal->external for field VLENR CALL FUNCTION 'CONVERSION_EXIT_HUID_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-VLENR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-VLENR.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit TSPWM, internal->external for field DTSP CALL FUNCTION 'CONVERSION_EXIT_TSPWM_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-DTSP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-DTSP.
WRITE:/ 'New Value:', ld_input.

*Conversion exit HUID, internal->external for field NLENR CALL FUNCTION 'CONVERSION_EXIT_HUID_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-NLENR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-NLENR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPH0, internal->external for field WHO CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-WHO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-WHO.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPH0, internal->external for field WAVE CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-WAVE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-WAVE.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPH0, internal->external for field WAVE_ITM CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-WAVE_ITM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-WAVE_ITM.
WRITE:/ 'New Value:', ld_input.

*Conversion exit SPDEV, internal->external for field LDEST CALL FUNCTION 'CONVERSION_EXIT_SPDEV_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-LDEST IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-LDEST.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit KNBCV, internal->external for field KANBAN CALL FUNCTION 'CONVERSION_EXIT_KNBCV_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-KANBAN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-KANBAN.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit ALPH0, internal->external for field RDOCNO CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-RDOCNO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-RDOCNO.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit ALPH0, internal->external for field REF_WT_RSRC CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_CREATE_INT_WHR-REF_WT_RSRC IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_CREATE_INT_WHR-REF_WT_RSRC.
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_TO_CREATE_INT_WHR_STR,
PROCTY TYPE STRING,
REASON TYPE STRING,
PRSRC TYPE STRING,
MATID TYPE STRING,
BATCHID TYPE STRING,
CAT TYPE STRING,
STOCK_DOCCAT TYPE STRING,
STOCK_DOCNO TYPE STRING,
STOCK_ITMNO TYPE STRING,
DOCCAT TYPE STRING,
STOCK_USAGE TYPE STRING,
OWNER TYPE STRING,
OWNER_ROLE TYPE STRING,
ENTITLED TYPE STRING,
ENTITLED_ROLE TYPE STRING,
STOCK_CNT TYPE STRING,
GUID_STOCK TYPE STRING,
LETYP TYPE STRING,
ANFME TYPE STRING,
ALTME TYPE STRING,
OPUNIT TYPE STRING,
KQUAN TYPE STRING,
PICK_ALL TYPE STRING,
KOMPL TYPE STRING,
NO_STOCK_DET TYPE STRING,
COO TYPE STRING,
INSPID TYPE STRING,
INSPTYP TYPE STRING,
WDATU TYPE STRING,
VFDAT TYPE STRING,
SQUIT TYPE STRING,
INACTIV TYPE STRING,
NOROU TYPE STRING,
SQUANT_SET TYPE STRING,
VLTYP TYPE STRING,
VLTYPG TYPE STRING,
VLBER TYPE STRING,
VLPLA TYPE STRING,
SRSRC TYPE STRING,
STU_NUM TYPE STRING,
STU_NUM_EXT TYPE STRING,
STSP TYPE STRING,
VLENR TYPE STRING,
SGUID_HU TYPE STRING,
NLTYP TYPE STRING,
NLTYPG TYPE STRING,
NLBER TYPE STRING,
NLPLA TYPE STRING,
NPTYP TYPE STRING,
DRSRC TYPE STRING,
DTU_NUM TYPE STRING,
DTU_NUM_EXT TYPE STRING,
DTSP TYPE STRING,
NLENR TYPE STRING,
DGUID_HU TYPE STRING,
GUID_TO TYPE STRING,
SEQNO TYPE STRING,
WHO TYPE STRING,
WHOSEQ TYPE STRING,
WAVE TYPE STRING,
WAVE_ITM TYPE STRING,
WAVECAT TYPE STRING,
L2SKA TYPE STRING,
SATIND TYPE STRING,
PRCES TYPE STRING,
PROCS TYPE STRING,
DSTGRP TYPE STRING,
IDPLATE TYPE STRING,
NOLOCK TYPE STRING,
NEGAT TYPE STRING,
LDEST TYPE STRING,
PICK_COMP_DT TYPE STRING,
STR_REPL TYPE STRING,
DLVQTY TYPE STRING,
REQQTY TYPE STRING,
REDQTY TYPE STRING,
QDOCCAT TYPE STRING,
QDOCID TYPE STRING,
QITMID TYPE STRING,
QIDPLATE TYPE STRING,
PSA TYPE STRING,
PROD_ORDER TYPE STRING,
KANBAN TYPE STRING,
RUOM TYPE STRING,
RDOCCAT TYPE STRING,
RDOCID TYPE STRING,
RITMID TYPE STRING,
RTEXT TYPE STRING,
WHCOUNT TYPE STRING,
SINGLE_TO TYPE STRING,
ROUTE TYPE STRING,
GI_TST TYPE STRING,
GR_OPEN TYPE STRING,
SCRAPPIND TYPE STRING,
VAS TYPE STRING,
JIT_RELEVANCE TYPE STRING,
KIT_CREA TYPE STRING,
QTY_CNTRL TYPE STRING,
BATCH_NOCHG TYPE STRING,
RDOCNO TYPE STRING,
RITMNO TYPE STRING,
DBIND TYPE STRING,
TST_ODLV_DATE TYPE STRING,
TZONE_ODLV_DATE TYPE STRING,
MES_IND TYPE STRING,
T_SERID TYPE STRING,
BSELCRIT TYPE STRING,
CLASSTYPE TYPE STRING,
CLASS TYPE STRING,
STATUS TYPE STRING,
T_SELCRIT_NUM TYPE STRING,
T_SELCRIT_CHAR TYPE STRING,
T_SELCRIT_CURR TYPE STRING,
WT_CREA_DUMMY TYPE STRING,
ZEUGN TYPE STRING,
CWQUAN TYPE STRING,
CWUNIT TYPE STRING,
ZEILE TYPE STRING,
LINE_ID TYPE STRING,
GUID_PAS TYPE STRING,
REF_WT_RSRC TYPE STRING,
NO_TO_DELAY TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SCWM/S_TO_CREATE_INT_WHR_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_TO_CREATE_INT_WHR_STR-PROCTY sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-REASON sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-PRSRC sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-MATID sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-BATCHID sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-CAT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STOCK_DOCCAT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STOCK_DOCNO sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STOCK_ITMNO sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-DOCCAT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STOCK_USAGE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-OWNER sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-OWNER_ROLE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-ENTITLED sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-ENTITLED_ROLE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STOCK_CNT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-GUID_STOCK sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-LETYP sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-ANFME sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-ALTME sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-OPUNIT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-KQUAN sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-PICK_ALL sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-KOMPL sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NO_STOCK_DET sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-COO sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-INSPID sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-INSPTYP sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-WDATU sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-VFDAT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-SQUIT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-INACTIV sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NOROU sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-SQUANT_SET sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-VLTYP sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-VLTYPG sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-VLBER sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-VLPLA sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-SRSRC sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STU_NUM sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STU_NUM_EXT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STSP sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-VLENR sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-SGUID_HU sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NLTYP sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NLTYPG sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NLBER sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NLPLA sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NPTYP sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-DRSRC sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-DTU_NUM sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-DTU_NUM_EXT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-DTSP sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NLENR sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-DGUID_HU sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-GUID_TO sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-SEQNO sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-WHO sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-WHOSEQ sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-WAVE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-WAVE_ITM sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-WAVECAT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-L2SKA sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-SATIND sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-PRCES sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-PROCS sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-DSTGRP sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-IDPLATE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NOLOCK sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NEGAT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-LDEST sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-PICK_COMP_DT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STR_REPL sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-DLVQTY sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-REQQTY sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-REDQTY sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-QDOCCAT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-QDOCID sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-QITMID sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-QIDPLATE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-PSA sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-PROD_ORDER sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-KANBAN sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-RUOM sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-RDOCCAT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-RDOCID sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-RITMID sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-RTEXT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-WHCOUNT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-SINGLE_TO sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-ROUTE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-GI_TST sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-GR_OPEN sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-SCRAPPIND sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-VAS sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-JIT_RELEVANCE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-KIT_CREA sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-QTY_CNTRL sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-BATCH_NOCHG sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-RDOCNO sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-RITMNO sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-DBIND sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-TST_ODLV_DATE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-TZONE_ODLV_DATE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-MES_IND sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-T_SERID sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-BSELCRIT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-CLASSTYPE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-CLASS sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-STATUS sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-T_SELCRIT_NUM sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-T_SELCRIT_CHAR sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-T_SELCRIT_CURR sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-WT_CREA_DUMMY sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-ZEUGN sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-CWQUAN sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-CWUNIT sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-ZEILE sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-LINE_ID sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-GUID_PAS sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-REF_WT_RSRC sy-vline
WA_/SCWM/S_TO_CREATE_INT_WHR_STR-NO_TO_DELAY sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.