ABAP Select data from SAP table ETO_PROBJ_S_BOM_HEADER 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 ETO_PROBJ_S_BOM_HEADER 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 ETO_PROBJ_S_BOM_HEADER. 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 ETO_PROBJ_S_BOM_HEADER 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_ETO_PROBJ_S_BOM_HEADER TYPE STANDARD TABLE OF ETO_PROBJ_S_BOM_HEADER,
      WA_ETO_PROBJ_S_BOM_HEADER TYPE ETO_PROBJ_S_BOM_HEADER,
      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: <ETO_PROBJ_S_BOM_HEADER> TYPE ETO_PROBJ_S_BOM_HEADER.

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

SELECT *
*restrict ABAP select to first 10 rows
 UP TO 10 ROWS      
  FROM ETO_PROBJ_S_BOM_HEADER
  INTO TABLE IT_ETO_PROBJ_S_BOM_HEADER.

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM ETO_PROBJ_S_BOM_HEADER
*  INTO TABLE @DATA(IT_ETO_PROBJ_S_BOM_HEADER2).
*--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_ETO_PROBJ_S_BOM_HEADER INDEX 1 INTO DATA(WA_ETO_PROBJ_S_BOM_HEADER2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_ETO_PROBJ_S_BOM_HEADER ASSIGNING <ETO_PROBJ_S_BOM_HEADER>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<ETO_PROBJ_S_BOM_HEADER>-MANDT = 1.
<ETO_PROBJ_S_BOM_HEADER>-DRAFTUUID = 1.
<ETO_PROBJ_S_BOM_HEADER>-BILLOFMATERIAL = 1.
<ETO_PROBJ_S_BOM_HEADER>-BILLOFMATERIALCATEGORY = 1.
<ETO_PROBJ_S_BOM_HEADER>-BILLOFMATERIALVARIANT = 1.
ENDLOOP.

LOOP AT IT_ETO_PROBJ_S_BOM_HEADER INTO WA_ETO_PROBJ_S_BOM_HEADER.
*Write horizonal line to screen report.
  WRITE:/ sy-uline.

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_ETO_PROBJ_S_BOM_HEADER-BILLOFMATERIALVERSION, sy-vline,
WA_ETO_PROBJ_S_BOM_HEADER-ENGINEERINGCHANGEDOCUMENT, sy-vline,
WA_ETO_PROBJ_S_BOM_HEADER-MATERIAL, sy-vline,
WA_ETO_PROBJ_S_BOM_HEADER-PLANT, sy-vline,
WA_ETO_PROBJ_S_BOM_HEADER-SALESORDER, sy-vline,
WA_ETO_PROBJ_S_BOM_HEADER-SALESORDERITEM, sy-vline.
ENDLOOP. *Add any further fields from structure WA_ETO_PROBJ_S_BOM_HEADER 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_ETO_PROBJ_S_BOM_HEADER 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_ETO_PROBJ_S_BOM_HEADER INTO WA_ETO_PROBJ_S_BOM_HEADER. *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 NUMCV, internal->external for field BILLOFMATERIAL CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_ETO_PROBJ_S_BOM_HEADER-BILLOFMATERIAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ETO_PROBJ_S_BOM_HEADER-BILLOFMATERIAL.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit MATN1, internal->external for field MATERIAL CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_ETO_PROBJ_S_BOM_HEADER-MATERIAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ETO_PROBJ_S_BOM_HEADER-MATERIAL.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

*Conversion exit MATN1, internal->external for field MATERIALFOREDIT CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_ETO_PROBJ_S_BOM_HEADER-MATERIALFOREDIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ETO_PROBJ_S_BOM_HEADER-MATERIALFOREDIT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ISOLA, internal->external for field LONGTEXTLANGUAGE CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = WA_ETO_PROBJ_S_BOM_HEADER-LONGTEXTLANGUAGE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ETO_PROBJ_S_BOM_HEADER-LONGTEXTLANGUAGE.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

*Conversion exit ALPHA, internal->external for field SELECTEDVARIANT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ETO_PROBJ_S_BOM_HEADER-SELECTEDVARIANT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ETO_PROBJ_S_BOM_HEADER-SELECTEDVARIANT.
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_ETO_PROBJ_S_BOM_HEADER_STR,
MANDT TYPE STRING,
DRAFTUUID TYPE STRING,
BILLOFMATERIAL TYPE STRING,
BILLOFMATERIALCATEGORY TYPE STRING,
BILLOFMATERIALVARIANT TYPE STRING,
BILLOFMATERIALVERSION TYPE STRING,
ENGINEERINGCHANGEDOCUMENT TYPE STRING,
MATERIAL TYPE STRING,
PLANT TYPE STRING,
SALESORDER TYPE STRING,
SALESORDERITEM TYPE STRING,
SOLDTOPARTY TYPE STRING,
PURCHASEORDERBYCUSTOMER TYPE STRING,
BILLOFMATERIALVARIANTUSAGE TYPE STRING,
BILLOFMATERIALHEADERUUID TYPE STRING,
CHANGERECORD TYPE STRING,
BOMHEADERINTERNALCHANGECOUNT TYPE STRING,
ASSETINTELNETWORKTRACKINGMODE TYPE STRING,
ASSETINTELNETWORKMANUFACTURER TYPE STRING,
ASSETINTELNETWORKTEMPLATE TYPE STRING,
BILLOFMATERIALVARIANTFOREDIT TYPE STRING,
BILLOFMATERIALVERSIONFOREDIT TYPE STRING,
ENGINEERINGCHANGEDOCFOREDIT TYPE STRING,
PLANTFOREDIT TYPE STRING,
MATERIALFOREDIT TYPE STRING,
BILLOFMATERIALUUID TYPE STRING,
ISMULTIPLEBOMALT TYPE STRING,
BOMPRIORITIZEDVERSION TYPE STRING,
BOMEXPLOSIONAPPLICATION TYPE STRING,
BOMUSAGEPRIORITY TYPE STRING,
BILLOFMATERIALAUTHSNGRP TYPE STRING,
BOMVERSIONSTATUS TYPE STRING,
BOMVERSIONSTATUSDESCRIPTION TYPE STRING,
MATFROMLOTSIZEQUANTITY TYPE STRING,
MATERIALTOLOTSIZEQUANTITY TYPE STRING,
ISVERSIONBILLOFMATERIAL TYPE STRING,
ISLATESTBOMVERSION TYPE STRING,
ISCONFIGUREDMATERIAL TYPE STRING,
BOMISCONFIGURABLE TYPE STRING,
BOMTECHNICALTYPE TYPE STRING,
BOMGROUP TYPE STRING,
INDICATORISBOMWITHDATEHISTORY TYPE STRING,
INDICATORISBOMCHANGEDWITHHIST TYPE STRING,
BOMHEADERTEXT TYPE STRING,
BOMALTERNATIVETEXT TYPE STRING,
LONGTEXTLANGUAGE TYPE STRING,
LONGTEXTEXISTS TYPE STRING,
BILLOFMATERIALSTATUS TYPE STRING,
HEADERVALIDITYSTARTDATE TYPE STRING,
HEADERVALIDITYENDDATE TYPE STRING,
CHGTOENGINEERINGCHGDOCUMENT TYPE STRING,
ISMARKEDFORDELETION TYPE STRING,
BOMISARCHIVEDFORDELETION TYPE STRING,
ISALE TYPE STRING,
BOMHEADERBASEUNIT TYPE STRING,
BOMHEADERQUANTITYINBASEUNIT TYPE STRING,
RECORDCREATIONDATE TYPE STRING,
LASTCHANGEDATE TYPE STRING,
CREATEDBYUSER TYPE STRING,
LASTCHANGEDBYUSER TYPE STRING,
BOMISTOBEDELETED TYPE STRING,
DOCUMENTISCREATEDBYCAD TYPE STRING,
LABORATORYORDESIGNOFFICE TYPE STRING,
HEADERATTACHMENTKEY TYPE STRING,
ISHEADERDRAFTMODIFIED TYPE STRING,
LASTCHANGEDATETIME TYPE STRING,
BOMASSETNTWKHNDOVRISRELEVANT TYPE STRING,
MATERIALBOMOBJECTID TYPE STRING,
BOMPREDECESSORVERSION TYPE STRING,
BOMPREDECESSORVARIANT TYPE STRING,
ALTERNATIVEUNIT TYPE STRING,
MATERIALTYPE TYPE STRING,
BOMISPARAMEFFECTIVITYRELEVANT TYPE STRING,
PRODUCTISCONFIGURABLE TYPE STRING,
SELECTEDVARIANT TYPE STRING,
SELECTEDVERSION TYPE STRING,
HASACTIVEENTITY TYPE STRING,
PRODUCTDRAFTUUID TYPE STRING,
PRODUCTISDRAFTENTITY TYPE STRING,
DRAFTENTITYCREATIONDATETIME TYPE STRING,
DRAFTENTITYLASTCHANGEDATETIME TYPE STRING,
DRAFTADMINISTRATIVEDATAUUID TYPE STRING,
DRAFTENTITYCONSISTENCYSTATUS TYPE STRING,
DRAFTENTITYOPERATIONCODE TYPE STRING,
DUMMY_STKO_INCL_EEW_PS TYPE STRING,END OF T_EKKO_STR. DATA: WA_ETO_PROBJ_S_BOM_HEADER_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_ETO_PROBJ_S_BOM_HEADER_STR-MANDT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-DRAFTUUID sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIAL sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALCATEGORY sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALVARIANT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALVERSION sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ENGINEERINGCHANGEDOCUMENT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-MATERIAL sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-PLANT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-SALESORDER sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-SALESORDERITEM sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-SOLDTOPARTY sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-PURCHASEORDERBYCUSTOMER sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALVARIANTUSAGE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALHEADERUUID sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-CHANGERECORD sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMHEADERINTERNALCHANGECOUNT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ASSETINTELNETWORKTRACKINGMODE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ASSETINTELNETWORKMANUFACTURER sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ASSETINTELNETWORKTEMPLATE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALVARIANTFOREDIT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALVERSIONFOREDIT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ENGINEERINGCHANGEDOCFOREDIT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-PLANTFOREDIT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-MATERIALFOREDIT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALUUID sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ISMULTIPLEBOMALT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMPRIORITIZEDVERSION sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMEXPLOSIONAPPLICATION sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMUSAGEPRIORITY sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALAUTHSNGRP sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMVERSIONSTATUS sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMVERSIONSTATUSDESCRIPTION sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-MATFROMLOTSIZEQUANTITY sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-MATERIALTOLOTSIZEQUANTITY sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ISVERSIONBILLOFMATERIAL sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ISLATESTBOMVERSION sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ISCONFIGUREDMATERIAL sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMISCONFIGURABLE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMTECHNICALTYPE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMGROUP sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-INDICATORISBOMWITHDATEHISTORY sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-INDICATORISBOMCHANGEDWITHHIST sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMHEADERTEXT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMALTERNATIVETEXT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-LONGTEXTLANGUAGE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-LONGTEXTEXISTS sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BILLOFMATERIALSTATUS sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-HEADERVALIDITYSTARTDATE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-HEADERVALIDITYENDDATE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-CHGTOENGINEERINGCHGDOCUMENT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ISMARKEDFORDELETION sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMISARCHIVEDFORDELETION sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ISALE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMHEADERBASEUNIT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMHEADERQUANTITYINBASEUNIT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-RECORDCREATIONDATE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-LASTCHANGEDATE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-CREATEDBYUSER sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-LASTCHANGEDBYUSER sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMISTOBEDELETED sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-DOCUMENTISCREATEDBYCAD sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-LABORATORYORDESIGNOFFICE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-HEADERATTACHMENTKEY sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ISHEADERDRAFTMODIFIED sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-LASTCHANGEDATETIME sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMASSETNTWKHNDOVRISRELEVANT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-MATERIALBOMOBJECTID sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMPREDECESSORVERSION sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMPREDECESSORVARIANT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-ALTERNATIVEUNIT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-MATERIALTYPE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-BOMISPARAMEFFECTIVITYRELEVANT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-PRODUCTISCONFIGURABLE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-SELECTEDVARIANT sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-SELECTEDVERSION sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-HASACTIVEENTITY sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-PRODUCTDRAFTUUID sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-PRODUCTISDRAFTENTITY sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-DRAFTENTITYCREATIONDATETIME sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-DRAFTENTITYLASTCHANGEDATETIME sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-DRAFTADMINISTRATIVEDATAUUID sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-DRAFTENTITYCONSISTENCYSTATUS sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-DRAFTENTITYOPERATIONCODE sy-vline
WA_ETO_PROBJ_S_BOM_HEADER_STR-DUMMY_STKO_INCL_EEW_PS sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.