ABAP Select data from SAP table EAMS_S_BO_ORD_OP_PRT_MP_SELECT 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 EAMS_S_BO_ORD_OP_PRT_MP_SELECT 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 EAMS_S_BO_ORD_OP_PRT_MP_SELECT. 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 EAMS_S_BO_ORD_OP_PRT_MP_SELECT 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_EAMS_S_BO_ORD_OP_PRT_MP_SELECT TYPE STANDARD TABLE OF EAMS_S_BO_ORD_OP_PRT_MP_SELECT,
      WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT TYPE EAMS_S_BO_ORD_OP_PRT_MP_SELECT,
      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: <EAMS_S_BO_ORD_OP_PRT_MP_SELECT> TYPE EAMS_S_BO_ORD_OP_PRT_MP_SELECT.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM EAMS_S_BO_ORD_OP_PRT_MP_SELECT
*  INTO TABLE @DATA(IT_EAMS_S_BO_ORD_OP_PRT_MP_SELECT2).
*--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_EAMS_S_BO_ORD_OP_PRT_MP_SELECT INDEX 1 INTO DATA(WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_EAMS_S_BO_ORD_OP_PRT_MP_SELECT ASSIGNING <EAMS_S_BO_ORD_OP_PRT_MP_SELECT>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<EAMS_S_BO_ORD_OP_PRT_MP_SELECT>-ROW_KEY = 1.
<EAMS_S_BO_ORD_OP_PRT_MP_SELECT>-EAMS_AUFNR = 1.
<EAMS_S_BO_ORD_OP_PRT_MP_SELECT>-EAMS_VORNR = 1.
<EAMS_S_BO_ORD_OP_PRT_MP_SELECT>-EAMS_UVORN = 1.
<EAMS_S_BO_ORD_OP_PRT_MP_SELECT>-FHMAR = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_PRTNR, sy-vline,
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_POINT, sy-vline,
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_TEC_OBJ_TYPE, sy-vline,
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_TEC_OBJ_NO, sy-vline,
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-MANDT, sy-vline,
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-POINT, sy-vline.
ENDLOOP. *Add any further fields from structure WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT 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_EAMS_S_BO_ORD_OP_PRT_MP_SELECT 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_EAMS_S_BO_ORD_OP_PRT_MP_SELECT INTO WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT. *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 ALPHA, internal->external for field EAMS_AUFNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_AUFNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_AUFNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit NUMCV, internal->external for field EAMS_VORNR CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_VORNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_VORNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit NUMCV, internal->external for field EAMS_UVORN CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_UVORN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-EAMS_UVORN.
WRITE:/ 'New Value:', ld_input.

*Conversion exit FHMAR, internal->external for field FHMAR CALL FUNCTION 'CONVERSION_EXIT_FHMAR_OUTPUT' EXPORTING input = WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-FHMAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-FHMAR.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

*Conversion exit ATINN, internal->external for field ATINN CALL FUNCTION 'CONVERSION_EXIT_ATINN_OUTPUT' EXPORTING input = WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-ATINN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-ATINN.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

*Conversion exit TPLNR, internal->external for field TPLNR CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT' EXPORTING input = WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-TPLNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT-TPLNR.
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_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR,
ROW_KEY TYPE STRING,
EAMS_AUFNR TYPE STRING,
EAMS_VORNR TYPE STRING,
EAMS_UVORN TYPE STRING,
FHMAR TYPE STRING,
EAMS_PRTNR TYPE STRING,
EAMS_POINT TYPE STRING,
EAMS_TEC_OBJ_TYPE TYPE STRING,
EAMS_TEC_OBJ_NO TYPE STRING,
MANDT TYPE STRING,
POINT TYPE STRING,
MPOBJ TYPE STRING,
PSORT TYPE STRING,
PSORTR TYPE STRING,
PTTXT TYPE STRING,
MLANG TYPE STRING,
KZLTX TYPE STRING,
MPTYP TYPE STRING,
IRFMP TYPE STRING,
ERDAT TYPE STRING,
ERNAM TYPE STRING,
AEDAT TYPE STRING,
AENAM TYPE STRING,
BEGRU TYPE STRING,
INACT TYPE STRING,
LVORM TYPE STRING,
LOCAS TYPE STRING,
REFMP TYPE STRING,
ATINN TYPE STRING,
ATINNR TYPE STRING,
EXPON TYPE STRING,
DECIM TYPE STRING,
DESIR TYPE STRING,
DESIRI TYPE STRING,
DESIRR TYPE STRING,
DSTXT TYPE STRING,
DSTXTR TYPE STRING,
MRMIN TYPE STRING,
MRMINI TYPE STRING,
MRMAX TYPE STRING,
MRMAXI TYPE STRING,
MRNGU TYPE STRING,
INDCT TYPE STRING,
INDRV TYPE STRING,
INDTR TYPE STRING,
TRANS TYPE STRING,
CJUMP TYPE STRING,
CJUMPI TYPE STRING,
PYEAR TYPE STRING,
PYEARI TYPE STRING,
CODCT TYPE STRING,
CODGR TYPE STRING,
CODGRR TYPE STRING,
CDSUF TYPE STRING,
MODTR TYPE STRING,
INDTRR TYPE STRING,
LOGSYS TYPE STRING,
LOGSYS_CHG TYPE STRING,
ATNAM TYPE STRING,
ATFOR TYPE STRING,
ATVOR TYPE STRING,
MSEHI TYPE STRING,
ATDIM TYPE STRING,
ANZDZ TYPE STRING,
AUSWAHLMGE TYPE STRING,
EQUNR TYPE STRING,
TPLNR TYPE STRING,
EAMS_MPTYPE TYPE STRING,
EAMS_TEC_OBJ_TXT TYPE STRING,
EAMS_TEC_OBJ_TYPE_TXT TYPE STRING,
ICON_OBJECT_TYPE TYPE STRING,END OF T_EKKO_STR. DATA: WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_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_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ROW_KEY sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_AUFNR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_VORNR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_UVORN sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-FHMAR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_PRTNR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_POINT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_TEC_OBJ_TYPE sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_TEC_OBJ_NO sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MANDT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-POINT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MPOBJ sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-PSORT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-PSORTR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-PTTXT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MLANG sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-KZLTX sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MPTYP sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-IRFMP sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ERDAT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ERNAM sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-AEDAT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-AENAM sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-BEGRU sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-INACT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-LVORM sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-LOCAS sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-REFMP sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ATINN sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ATINNR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EXPON sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-DECIM sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-DESIR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-DESIRI sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-DESIRR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-DSTXT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-DSTXTR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MRMIN sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MRMINI sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MRMAX sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MRMAXI sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MRNGU sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-INDCT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-INDRV sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-INDTR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-TRANS sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-CJUMP sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-CJUMPI sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-PYEAR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-PYEARI sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-CODCT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-CODGR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-CODGRR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-CDSUF sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MODTR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-INDTRR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-LOGSYS sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-LOGSYS_CHG sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ATNAM sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ATFOR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ATVOR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-MSEHI sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ATDIM sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ANZDZ sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-AUSWAHLMGE sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EQUNR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-TPLNR sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_MPTYPE sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_TEC_OBJ_TXT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-EAMS_TEC_OBJ_TYPE_TXT sy-vline
WA_EAMS_S_BO_ORD_OP_PRT_MP_SELECT_STR-ICON_OBJECT_TYPE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.