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

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

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

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


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/SCWM/S_TO_HU_DET_MON_OUT ASSIGNING </SCWM/S_TO_HU_DET_MON_OUT>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</SCWM/S_TO_HU_DET_MON_OUT>-HUKNG = 1.
</SCWM/S_TO_HU_DET_MON_OUT>-MANDT = 1.
</SCWM/S_TO_HU_DET_MON_OUT>-LGNUM = 1.
</SCWM/S_TO_HU_DET_MON_OUT>-TANUM = 1.
</SCWM/S_TO_HU_DET_MON_OUT>-TAPOS = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/SCWM/S_TO_HU_DET_MON_OUT-FLGHUTO, sy-vline,
WA_/SCWM/S_TO_HU_DET_MON_OUT-PROCTY, sy-vline,
WA_/SCWM/S_TO_HU_DET_MON_OUT-TRART, sy-vline,
WA_/SCWM/S_TO_HU_DET_MON_OUT-TRART_TXT, sy-vline,
WA_/SCWM/S_TO_HU_DET_MON_OUT-ACT_TYPE, sy-vline,
WA_/SCWM/S_TO_HU_DET_MON_OUT-PRCES, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SCWM/S_TO_HU_DET_MON_OUT 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_HU_DET_MON_OUT 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_HU_DET_MON_OUT INTO WA_/SCWM/S_TO_HU_DET_MON_OUT. *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 ALPH0, internal->external for field TANUM CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_HU_DET_MON_OUT-TANUM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-TANUM.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit MATN1, internal->external for field MATNR CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_HU_DET_MON_OUT-MATNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-MATNR.
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_HU_DET_MON_OUT-OWNER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-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_HU_DET_MON_OUT-ENTITLED IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-ENTITLED.
WRITE:/ 'New Value:', ld_input.

*Conversion exit CUNIT, internal->external for field MEINS CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_HU_DET_MON_OUT-MEINS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-MEINS.
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_HU_DET_MON_OUT-ALTME IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-ALTME.
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_HU_DET_MON_OUT-CWUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-CWUNIT.
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_TO_HU_DET_MON_OUT-UNIT_W IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-UNIT_W.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit ALPHA, internal->external for field INSPDOCNO CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_HU_DET_MON_OUT-INSPDOCNO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-INSPDOCNO.
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_HU_DET_MON_OUT-STU_NUM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-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_HU_DET_MON_OUT-STSP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-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_HU_DET_MON_OUT-VLENR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-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_HU_DET_MON_OUT-DTU_NUM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-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_HU_DET_MON_OUT-DTSP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-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_HU_DET_MON_OUT-NLENR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-NLENR.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit ALPHA, internal->external for field ITEMNO CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_HU_DET_MON_OUT-ITEMNO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-ITEMNO.
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_HU_DET_MON_OUT-WAVE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-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_HU_DET_MON_OUT-WAVE_ITM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-WAVE_ITM.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit ALPH0, internal->external for field ORIG_TO CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_HU_DET_MON_OUT-ORIG_TO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-ORIG_TO.
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_HU_DET_MON_OUT-WHO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-WHO.
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_HU_DET_MON_OUT-PSA IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-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_HU_DET_MON_OUT-PROD_ORDER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-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_HU_DET_MON_OUT-KANBAN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-KANBAN.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit GJAHR, internal->external for field MMIM_MJAHR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_/SCWM/S_TO_HU_DET_MON_OUT-MMIM_MJAHR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCWM/S_TO_HU_DET_MON_OUT-MMIM_MJAHR.
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_HU_DET_MON_OUT_STR,
HUKNG TYPE STRING,
MANDT TYPE STRING,
LGNUM TYPE STRING,
TANUM TYPE STRING,
TAPOS TYPE STRING,
FLGHUTO TYPE STRING,
PROCTY TYPE STRING,
TRART TYPE STRING,
TRART_TXT TYPE STRING,
ACT_TYPE TYPE STRING,
PRCES TYPE STRING,
PROCS TYPE STRING,
TOSTAT TYPE STRING,
CREATED_BY TYPE STRING,
CREATED_DATE TYPE STRING,
CREATED_TIME TYPE STRING,
CONFIRMED_BY TYPE STRING,
CONFIRMED_DATE TYPE STRING,
CONFIRMED_TIME TYPE STRING,
PRSRC TYPE STRING,
REASON TYPE STRING,
EXCCODE TYPE STRING,
STARTED_DATE TYPE STRING,
STARTED_TIME TYPE STRING,
MATNR TYPE STRING,
MAKTX TYPE STRING,
CHARG TYPE STRING,
CAT TYPE STRING,
CAT_TXT 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,
VSOLM TYPE STRING,
NISTM TYPE STRING,
DMENG TYPE STRING,
MEINS TYPE STRING,
VSOLA TYPE STRING,
NISTA TYPE STRING,
DMENA TYPE STRING,
ALTME TYPE STRING,
CWQUAN TYPE STRING,
CWUNIT TYPE STRING,
CWEXACT TYPE STRING,
CWQUAN_DIFF TYPE STRING,
CWQEXACT_DIFF TYPE STRING,
COMBINATION_GRP TYPE STRING,
LETYP TYPE STRING,
STOKEY1 TYPE STRING,
STOKEY2 TYPE STRING,
WEIGHT TYPE STRING,
UNIT_W TYPE STRING,
VOLUM TYPE STRING,
UNIT_V TYPE STRING,
CAPA TYPE STRING,
SOLPO TYPE STRING,
ZEIEI TYPE STRING,
PLACE_INV_P TYPE STRING,
PLACE_INV TYPE STRING,
LOWCHK_INV_P TYPE STRING,
LOWCHK_INV TYPE STRING,
VFDAT TYPE STRING,
GRDATE TYPE STRING,
GRTIME TYPE STRING,
COO TYPE STRING,
HAZMAT TYPE STRING,
INSPTYP TYPE STRING,
INSPDOCNO TYPE STRING,
IDPLATE TYPE STRING,
VLTYP TYPE STRING,
VLBER TYPE STRING,
VLPLA TYPE STRING,
SLOGPOS TYPE STRING,
SRSRC TYPE STRING,
STU_NUM TYPE STRING,
STU_NUM_EXT TYPE STRING,
STSP TYPE STRING,
SLOC_TYPE TYPE STRING,
VLENR TYPE STRING,
KQUAN TYPE STRING,
NLTYP TYPE STRING,
NLBER TYPE STRING,
NLPLA TYPE STRING,
DLOGPOS TYPE STRING,
DLOGPOS_EXT_WT TYPE STRING,
DRSRC TYPE STRING,
DTU_NUM TYPE STRING,
DTU_NUM_EXT TYPE STRING,
DTSP TYPE STRING,
DLOC_TYPE TYPE STRING,
NLENR TYPE STRING,
ORIG_NLPLA TYPE STRING,
HOMVE TYPE STRING,
KZSUB TYPE STRING,
PICK_ALL TYPE STRING,
RDOCCAT TYPE STRING,
DOCNO TYPE STRING,
ITEMNO TYPE STRING,
WHCOUNT TYPE STRING,
WAVE TYPE STRING,
WAVE_ITM TYPE STRING,
L2SKA TYPE STRING,
L2SKR TYPE STRING,
QDOCCAT TYPE STRING,
QDOCNO TYPE STRING,
QITEMNO TYPE STRING,
QIDPLATE TYPE STRING,
PICK_COMP_DATE TYPE STRING,
PICK_COMP_TIME TYPE STRING,
ORIG_TO TYPE STRING,
AAREA TYPE STRING,
AREAWHO TYPE STRING,
WCR TYPE STRING,
PATHSEQ TYPE STRING,
QUEUE TYPE STRING,
HUTYPGRP TYPE STRING,
WAVECAT TYPE STRING,
ROUTE TYPE STRING,
DSTGRP TYPE STRING,
WHO TYPE STRING,
WHOSEQ TYPE STRING,
TOLOGNO TYPE STRING,
PSA TYPE STRING,
PROD_ORDER TYPE STRING,
KANBAN TYPE STRING,
JIT_RELEVANCE TYPE STRING,
ORDIM_DUMMY TYPE STRING,
ZEUGN TYPE STRING,
PRIORITY TYPE STRING,
MMIM_MBLNR TYPE STRING,
MMIM_MJAHR TYPE STRING,
MMIM_ZEILE TYPE STRING,
MMIM_BUDAT_MIGRATION TYPE STRING,
ACC_CAT TYPE STRING,
ACC_OBJ_EXT TYPE STRING,
ACC_OBJ_SUB_EXT TYPE STRING,
PAS_IND TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SCWM/S_TO_HU_DET_MON_OUT_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_HU_DET_MON_OUT_STR-HUKNG sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-MANDT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-LGNUM sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-TANUM sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-TAPOS sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-FLGHUTO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PROCTY sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-TRART sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-TRART_TXT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ACT_TYPE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PRCES sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PROCS sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-TOSTAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CREATED_BY sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CREATED_DATE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CREATED_TIME sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CONFIRMED_BY sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CONFIRMED_DATE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CONFIRMED_TIME sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PRSRC sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-REASON sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-EXCCODE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STARTED_DATE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STARTED_TIME sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-MATNR sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-MAKTX sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CHARG sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CAT_TXT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STOCK_DOCCAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STOCK_DOCNO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STOCK_ITMNO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DOCCAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STOCK_USAGE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-OWNER sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-OWNER_ROLE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ENTITLED sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ENTITLED_ROLE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-VSOLM sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-NISTM sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DMENG sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-MEINS sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-VSOLA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-NISTA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DMENA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ALTME sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CWQUAN sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CWUNIT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CWEXACT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CWQUAN_DIFF sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CWQEXACT_DIFF sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-COMBINATION_GRP sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-LETYP sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STOKEY1 sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STOKEY2 sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-WEIGHT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-UNIT_W sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-VOLUM sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-UNIT_V sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-CAPA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-SOLPO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ZEIEI sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PLACE_INV_P sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PLACE_INV sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-LOWCHK_INV_P sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-LOWCHK_INV sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-VFDAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-GRDATE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-GRTIME sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-COO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-HAZMAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-INSPTYP sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-INSPDOCNO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-IDPLATE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-VLTYP sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-VLBER sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-VLPLA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-SLOGPOS sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-SRSRC sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STU_NUM sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STU_NUM_EXT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-STSP sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-SLOC_TYPE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-VLENR sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-KQUAN sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-NLTYP sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-NLBER sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-NLPLA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DLOGPOS sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DLOGPOS_EXT_WT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DRSRC sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DTU_NUM sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DTU_NUM_EXT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DTSP sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DLOC_TYPE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-NLENR sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ORIG_NLPLA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-HOMVE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-KZSUB sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PICK_ALL sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-RDOCCAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DOCNO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ITEMNO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-WHCOUNT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-WAVE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-WAVE_ITM sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-L2SKA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-L2SKR sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-QDOCCAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-QDOCNO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-QITEMNO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-QIDPLATE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PICK_COMP_DATE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PICK_COMP_TIME sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ORIG_TO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-AAREA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-AREAWHO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-WCR sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PATHSEQ sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-QUEUE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-HUTYPGRP sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-WAVECAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ROUTE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-DSTGRP sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-WHO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-WHOSEQ sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-TOLOGNO sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PSA sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PROD_ORDER sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-KANBAN sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-JIT_RELEVANCE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ORDIM_DUMMY sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ZEUGN sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PRIORITY sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-MMIM_MBLNR sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-MMIM_MJAHR sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-MMIM_ZEILE sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-MMIM_BUDAT_MIGRATION sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ACC_CAT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ACC_OBJ_EXT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-ACC_OBJ_SUB_EXT sy-vline
WA_/SCWM/S_TO_HU_DET_MON_OUT_STR-PAS_IND sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.