ABAP Select data from SAP table /PLMB/S_PPE_CMP_MBOM_ITEM_SP 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 /PLMB/S_PPE_CMP_MBOM_ITEM_SP 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 /PLMB/S_PPE_CMP_MBOM_ITEM_SP. 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 /PLMB/S_PPE_CMP_MBOM_ITEM_SP 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_/PLMB/S_PPE_CMP_MBOM_ITEM_SP TYPE STANDARD TABLE OF /PLMB/S_PPE_CMP_MBOM_ITEM_SP, WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP TYPE /PLMB/S_PPE_CMP_MBOM_ITEM_SP, 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: </PLMB/S_PPE_CMP_MBOM_ITEM_SP> TYPE /PLMB/S_PPE_CMP_MBOM_ITEM_SP. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_/PLMB/S_PPE_CMP_MBOM_ITEM_SP. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM /PLMB/S_PPE_CMP_MBOM_ITEM_SP INTO TABLE IT_/PLMB/S_PPE_CMP_MBOM_ITEM_SP. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM /PLMB/S_PPE_CMP_MBOM_ITEM_SP * INTO TABLE @DATA(IT_/PLMB/S_PPE_CMP_MBOM_ITEM_SP2). *--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_/PLMB/S_PPE_CMP_MBOM_ITEM_SP INDEX 1 INTO DATA(WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_/PLMB/S_PPE_CMP_MBOM_ITEM_SP ASSIGNING </PLMB/S_PPE_CMP_MBOM_ITEM_SP>.*To update a field value using a field symbol simply change the value via the field symbol pointer
</PLMB/S_PPE_CMP_MBOM_ITEM_SP>-OBJECT_TYPE = 1.
</PLMB/S_PPE_CMP_MBOM_ITEM_SP>-GUID = 1.
</PLMB/S_PPE_CMP_MBOM_ITEM_SP>-ECN_COUNTER = 1.
</PLMB/S_PPE_CMP_MBOM_ITEM_SP>-BOM_MATERIAL = 1.
</PLMB/S_PPE_CMP_MBOM_ITEM_SP>-PLANT = 1.
ENDLOOP. LOOP AT IT_/PLMB/S_PPE_CMP_MBOM_ITEM_SP INTO WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-BOM_USAGE_KEY, sy-vline,
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-ALTERNATIVE_BOM, sy-vline,
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-INHER_NODE, sy-vline,
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-ITEM_NODE, sy-vline,
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-ITEM_COUNTER, sy-vline,
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-BOM_TYPE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP 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_/PLMB/S_PPE_CMP_MBOM_ITEM_SP 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_/PLMB/S_PPE_CMP_MBOM_ITEM_SP INTO WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP. *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 MATN1, internal->external for field BOM_MATERIAL CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-BOM_MATERIAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-BOM_MATERIAL.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ALTERNATIVE_BOM CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-ALTERNATIVE_BOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-ALTERNATIVE_BOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit NUMCV, internal->external for field BOM_NO CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-BOM_NO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-BOM_NO.
WRITE:/ 'New Value:', ld_input.
*Conversion exit NUMCV, internal->external for field ITEM_NO CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-ITEM_NO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-ITEM_NO.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field COMP_UNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-COMP_UNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-COMP_UNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit MATN1, internal->external for field ITEM_MATERIAL CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-ITEM_MATERIAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-ITEM_MATERIAL.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field VSI_SIZE_UNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-VSI_SIZE_UNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-VSI_SIZE_UNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field VAR_SIZE_COMP_MEASURE_UNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-VAR_SIZE_COMP_MEASURE_UNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-VAR_SIZE_COMP_MEASURE_UNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field VSI_QTY_UNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-VSI_QTY_UNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-VSI_QTY_UNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field DOCUMENT_NUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-DOCUMENT_NUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-DOCUMENT_NUMBER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ISOLA, internal->external for field LTXT_LANG CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-LTXT_LANG IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-LTXT_LANG.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field VENDOR_NO CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-VENDOR_NO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-VENDOR_NO.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field COST_ELEMENT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-COST_ELEMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-COST_ELEMENT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field LEAD_TIME_OFFSET_OPR_UNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-LEAD_TIME_OFFSET_OPR_UNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-LEAD_TIME_OFFSET_OPR_UNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field BOM_PREV_VARIANT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-BOM_PREV_VARIANT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-BOM_PREV_VARIANT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field CHANGE_NO CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-CHANGE_NO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-CHANGE_NO.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field CHANGE_NO_TO CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-CHANGE_NO_TO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-CHANGE_NO_TO.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field DOCUMENTNUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-DOCUMENTNUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-DOCUMENTNUMBER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field QUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-QUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-QUNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit MATN1, internal->external for field CMPID CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-CMPID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP-CMPID.
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_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR,
OBJECT_TYPE TYPE STRING,
GUID TYPE STRING,
ECN_COUNTER TYPE STRING,
BOM_MATERIAL TYPE STRING,
PLANT TYPE STRING,
BOM_USAGE_KEY TYPE STRING,
ALTERNATIVE_BOM TYPE STRING,
INHER_NODE TYPE STRING,
ITEM_NODE TYPE STRING,
ITEM_COUNTER TYPE STRING,
BOM_TYPE TYPE STRING,
BOM_NO TYPE STRING,
ITEM_NO TYPE STRING,
ITEM_CAT TYPE STRING,
SORT_STRING TYPE STRING,
ITEM_ID TYPE STRING,
SUB_ITEM TYPE STRING,
COMP_QTY TYPE STRING,
COMP_UNIT TYPE STRING,
FIXED_QTY TYPE STRING,
COMP_SCRAP TYPE STRING,
OPR_SCRAP TYPE STRING,
NET_SCRAP_IND TYPE STRING,
ITEM_MATERIAL TYPE STRING,
VSI_NO TYPE STRING,
VSI_SIZE1 TYPE STRING,
VSI_SIZE2 TYPE STRING,
VSI_SIZE3 TYPE STRING,
VSI_SIZE_UNIT TYPE STRING,
VSI_QTY TYPE STRING,
VSI_FORMULA TYPE STRING,
VAR_SIZE_COMP_MEASURE_UNIT TYPE STRING,
VSI_QTY_UNIT TYPE STRING,
DOCUMENT_NUMBER TYPE STRING,
DOCUMENT_TYPE TYPE STRING,
DOCUMENT_PART TYPE STRING,
DOCUMENT_VERSION TYPE STRING,
ITEM_TEXT1 TYPE STRING,
ITEM_TEXT2 TYPE STRING,
LTXT_LANG TYPE STRING,
ITEM_TEXT_IND TYPE STRING,
PURCH_ORG TYPE STRING,
PUR_GROUP TYPE STRING,
VENDOR_NO TYPE STRING,
DELIVERY_DAYS TYPE STRING,
MATL_GROUP TYPE STRING,
PRICE TYPE STRING,
PRICE_UNIT TYPE STRING,
CURRENCY TYPE STRING,
COST_ELEMENT TYPE STRING,
GR_PR_TIME TYPE STRING,
ALT_ITEM_GROUP TYPE STRING,
ALT_ITEM_STRATEGY TYPE STRING,
ALT_ITEM_PRIO TYPE STRING,
USAGE_PROB TYPE STRING,
CO_PRODUCT TYPE STRING,
REC_ALLOWED TYPE STRING,
RECURSIVE TYPE STRING,
DEL_IND TYPE STRING,
CAD_IND TYPE STRING,
ALE_IND TYPE STRING,
LEAD_TIME_OFFSET TYPE STRING,
LEAD_TIME_OFFSET_OPR TYPE STRING,
LEAD_TIME_OFFSET_OPR_UNIT TYPE STRING,
DISTR_KEY_FOR_COMP_CONSUMPTION TYPE STRING,
PHANTOM_IND TYPE STRING,
EXPL_TYPE TYPE STRING,
SPPROCTYPE TYPE STRING,
ENG_REL TYPE STRING,
PROD_REL TYPE STRING,
PM_REL TYPE STRING,
SPARE_PART TYPE STRING,
SALES_REL TYPE STRING,
COST_REL TYPE STRING,
MAT_PROVISION TYPE STRING,
BULK_MAT TYPE STRING,
BULK_MAT_MATERIAL TYPE STRING,
ISS_ST_LOC TYPE STRING,
SUPPLYAREA TYPE STRING,
COMPONENT TYPE STRING,
COMPONENT_DESCR TYPE STRING,
ASSEMBLY_IND TYPE STRING,
DOC_LINK_EXIST TYPE STRING,
ITEM_GUID TYPE STRING,
OBJ_TYPE TYPE STRING,
CLASSIF TYPE STRING,
REF_POINT TYPE STRING,
CLASS_NUM TYPE STRING,
CLASS_TYPE TYPE STRING,
RES_ITEM_CAT TYPE STRING,
SEL_COND TYPE STRING,
REQD_COMP TYPE STRING,
MULTSELECT TYPE STRING,
ALT_DISP TYPE STRING,
DEPARTMENT_VIEW TYPE STRING,
DEP_LINK TYPE STRING,
PM_ASSEMBLY TYPE STRING,
BOM_PREV_VARIANT TYPE STRING,
VALID_FROM_DATE TYPE STRING,
CHANGE_NO TYPE STRING,
VALID_TO_DATE TYPE STRING,
CHANGE_NO_TO TYPE STRING,
CREATED_ON TYPE STRING,
CREATED_BY TYPE STRING,
CHANGED_ON TYPE STRING,
CHANGED_BY TYPE STRING,
DUMMY_STPO_INCL_EEW_PS TYPE STRING,
IS_MPN_EXISTING TYPE STRING,
DEP_LINK_EXIST TYPE STRING,
DISPLAY_ONLY_FLAG TYPE STRING,
FOLLOW_UP_GROUP TYPE STRING,
DISCONTINUATION_GROUP TYPE STRING,
ITEM_CAT_DESCR TYPE STRING,
MATERIAL_DESCR TYPE STRING,
VSI_FORMULA_DESCR TYPE STRING,
DOCUMENT_DESCR TYPE STRING,
DOCUMENT_TYPE_DESCR TYPE STRING,
PURCH_ORG_DESCR TYPE STRING,
PUR_GROUP_DESCR TYPE STRING,
VENDOR_NO_DESCR TYPE STRING,
MATL_GROUP_DESCR TYPE STRING,
COST_ELEMENT_DESCR TYPE STRING,
EXPL_TYPE_DESCR TYPE STRING,
SPPROCTYPE_DESCR TYPE STRING,
SPARE_PART_DESCR TYPE STRING,
MAT_PROVISION_DESCR TYPE STRING,
ISS_ST_LOC_DESCR TYPE STRING,
SUPPLYAREA_DESCR TYPE STRING,
COST_REL_DESCR TYPE STRING,
SALES_REL_DESCR TYPE STRING,
CREATED_BY_DESCR TYPE STRING,
CHANGED_BY_DESCR TYPE STRING,
EFF_PARAM TYPE STRING,
EFF_PARAMETER TYPE STRING,
EFF_PARAMETER_FULL TYPE STRING,
EFF_PARAM_LENGTH TYPE STRING,
CLASS_TXT TYPE STRING,
CLASSTYPE_TXT TYPE STRING,
REDLINING_IND TYPE STRING,
DATA_TYPE TYPE STRING,
CELL_DESIGN TYPE STRING,
NOTES_EXIST TYPE STRING,
NOTES_EXIST_DESC TYPE STRING,
DOCUMENTTYPE TYPE STRING,
DOCUMENTNUMBER TYPE STRING,
DOCUMENTPART TYPE STRING,
DOCUMENTVERSION TYPE STRING,
QUANT TYPE STRING,
QUNIT TYPE STRING,
CMPID TYPE STRING,END OF T_EKKO_STR. DATA: WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_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_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-OBJECT_TYPE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-GUID sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ECN_COUNTER sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-BOM_MATERIAL sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PLANT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-BOM_USAGE_KEY sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ALTERNATIVE_BOM sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-INHER_NODE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_NODE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_COUNTER sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-BOM_TYPE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-BOM_NO sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_NO sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_CAT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SORT_STRING sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_ID sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SUB_ITEM sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-COMP_QTY sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-COMP_UNIT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-FIXED_QTY sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-COMP_SCRAP sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-OPR_SCRAP sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-NET_SCRAP_IND sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_MATERIAL sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VSI_NO sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VSI_SIZE1 sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VSI_SIZE2 sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VSI_SIZE3 sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VSI_SIZE_UNIT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VSI_QTY sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VSI_FORMULA sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VAR_SIZE_COMP_MEASURE_UNIT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VSI_QTY_UNIT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENT_NUMBER sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENT_TYPE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENT_PART sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENT_VERSION sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_TEXT1 sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_TEXT2 sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-LTXT_LANG sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_TEXT_IND sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PURCH_ORG sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PUR_GROUP sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VENDOR_NO sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DELIVERY_DAYS sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-MATL_GROUP sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PRICE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PRICE_UNIT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CURRENCY sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-COST_ELEMENT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-GR_PR_TIME sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ALT_ITEM_GROUP sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ALT_ITEM_STRATEGY sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ALT_ITEM_PRIO sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-USAGE_PROB sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CO_PRODUCT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-REC_ALLOWED sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-RECURSIVE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DEL_IND sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CAD_IND sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ALE_IND sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-LEAD_TIME_OFFSET sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-LEAD_TIME_OFFSET_OPR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-LEAD_TIME_OFFSET_OPR_UNIT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DISTR_KEY_FOR_COMP_CONSUMPTION sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PHANTOM_IND sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-EXPL_TYPE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SPPROCTYPE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ENG_REL sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PROD_REL sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PM_REL sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SPARE_PART sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SALES_REL sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-COST_REL sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-MAT_PROVISION sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-BULK_MAT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-BULK_MAT_MATERIAL sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ISS_ST_LOC sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SUPPLYAREA sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-COMPONENT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-COMPONENT_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ASSEMBLY_IND sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOC_LINK_EXIST sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_GUID sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-OBJ_TYPE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CLASSIF sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-REF_POINT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CLASS_NUM sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CLASS_TYPE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-RES_ITEM_CAT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SEL_COND sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-REQD_COMP sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-MULTSELECT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ALT_DISP sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DEPARTMENT_VIEW sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DEP_LINK sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PM_ASSEMBLY sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-BOM_PREV_VARIANT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VALID_FROM_DATE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CHANGE_NO sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VALID_TO_DATE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CHANGE_NO_TO sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CREATED_ON sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CREATED_BY sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CHANGED_ON sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CHANGED_BY sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DUMMY_STPO_INCL_EEW_PS sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-IS_MPN_EXISTING sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DEP_LINK_EXIST sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DISPLAY_ONLY_FLAG sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-FOLLOW_UP_GROUP sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DISCONTINUATION_GROUP sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ITEM_CAT_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-MATERIAL_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VSI_FORMULA_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENT_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENT_TYPE_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PURCH_ORG_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-PUR_GROUP_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-VENDOR_NO_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-MATL_GROUP_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-COST_ELEMENT_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-EXPL_TYPE_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SPPROCTYPE_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SPARE_PART_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-MAT_PROVISION_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-ISS_ST_LOC_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SUPPLYAREA_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-COST_REL_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-SALES_REL_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CREATED_BY_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CHANGED_BY_DESCR sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-EFF_PARAM sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-EFF_PARAMETER sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-EFF_PARAMETER_FULL sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-EFF_PARAM_LENGTH sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CLASS_TXT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CLASSTYPE_TXT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-REDLINING_IND sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DATA_TYPE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CELL_DESIGN sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-NOTES_EXIST sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-NOTES_EXIST_DESC sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENTTYPE sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENTNUMBER sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENTPART sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-DOCUMENTVERSION sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-QUANT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-QUNIT sy-vline
WA_/PLMB/S_PPE_CMP_MBOM_ITEM_SP_STR-CMPID sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.