ABAP Select data from SAP table MPES_RTGV_OAC_CHA_BO 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 MPES_RTGV_OAC_CHA_BO 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 MPES_RTGV_OAC_CHA_BO. 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 MPES_RTGV_OAC_CHA_BO 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_MPES_RTGV_OAC_CHA_BO TYPE STANDARD TABLE OF MPES_RTGV_OAC_CHA_BO,
      WA_MPES_RTGV_OAC_CHA_BO TYPE MPES_RTGV_OAC_CHA_BO,
      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: <MPES_RTGV_OAC_CHA_BO> TYPE MPES_RTGV_OAC_CHA_BO.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM MPES_RTGV_OAC_CHA_BO
*  INTO TABLE @DATA(IT_MPES_RTGV_OAC_CHA_BO2).
*--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_MPES_RTGV_OAC_CHA_BO INDEX 1 INTO DATA(WA_MPES_RTGV_OAC_CHA_BO2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_MPES_RTGV_OAC_CHA_BO ASSIGNING <MPES_RTGV_OAC_CHA_BO>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<MPES_RTGV_OAC_CHA_BO>-PLNTY = 1.
<MPES_RTGV_OAC_CHA_BO>-PLNNR = 1.
<MPES_RTGV_OAC_CHA_BO>-PLNAL = 1.
<MPES_RTGV_OAC_CHA_BO>-VERSN = 1.
<MPES_RTGV_OAC_CHA_BO>-PLNFL = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_MPES_RTGV_OAC_CHA_BO-PLNKN, sy-vline,
WA_MPES_RTGV_OAC_CHA_BO-SEGMENT_TYPE, sy-vline,
WA_MPES_RTGV_OAC_CHA_BO-OA_ID, sy-vline,
WA_MPES_RTGV_OAC_CHA_BO-OA_VERSION_NO, sy-vline,
WA_MPES_RTGV_OAC_CHA_BO-KZEINSTELL, sy-vline,
WA_MPES_RTGV_OAC_CHA_BO-MERKNR, sy-vline.
ENDLOOP. *Add any further fields from structure WA_MPES_RTGV_OAC_CHA_BO 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_MPES_RTGV_OAC_CHA_BO 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_MPES_RTGV_OAC_CHA_BO INTO WA_MPES_RTGV_OAC_CHA_BO. *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 PLNNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_MPES_RTGV_OAC_CHA_BO-PLNNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_MPES_RTGV_OAC_CHA_BO-PLNNR.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit PLMAM, internal->external for field CHAORIG_GUID CALL FUNCTION 'CONVERSION_EXIT_PLMAM_OUTPUT' EXPORTING input = WA_MPES_RTGV_OAC_CHA_BO-CHAORIG_GUID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_MPES_RTGV_OAC_CHA_BO-CHAORIG_GUID.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit ALPHA, internal->external for field VERSN_SOURCE CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_MPES_RTGV_OAC_CHA_BO-VERSN_SOURCE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_MPES_RTGV_OAC_CHA_BO-VERSN_SOURCE.
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_MPES_RTGV_OAC_CHA_BO_STR,
PLNTY TYPE STRING,
PLNNR TYPE STRING,
PLNAL TYPE STRING,
VERSN TYPE STRING,
PLNFL TYPE STRING,
PLNKN TYPE STRING,
SEGMENT_TYPE TYPE STRING,
OA_ID TYPE STRING,
OA_VERSION_NO TYPE STRING,
KZEINSTELL TYPE STRING,
MERKNR TYPE STRING,
GUELTIGAB TYPE STRING,
SERNV TYPE STRING,
LOEKZ TYPE STRING,
PARKZ TYPE STRING,
AENDERGNR TYPE STRING,
ERSTELLER TYPE STRING,
ERSTELLDAT TYPE STRING,
AENDERER TYPE STRING,
AENDERDAT TYPE STRING,
STEUERKZ TYPE STRING,
QMTB_WERKS TYPE STRING,
PMETHODE TYPE STRING,
PMTVERSION TYPE STRING,
QPMK_REF TYPE STRING,
QPMK_ZAEHL TYPE STRING,
VERWMERKM TYPE STRING,
MKVERSION TYPE STRING,
MKVERSDAT TYPE STRING,
MERKGEW TYPE STRING,
PROBENR TYPE STRING,
PRUEFQUALI TYPE STRING,
TOLERANZSL TYPE STRING,
KURZTEXT TYPE STRING,
LTEXTKZ TYPE STRING,
LTEXTSPR TYPE STRING,
LTEXTEKZ TYPE STRING,
LTXTENTSPR TYPE STRING,
STELLEN TYPE STRING,
MASSEINHSW TYPE STRING,
SOLLWERT TYPE STRING,
SOLLWNI TYPE STRING,
TOLERANZOB TYPE STRING,
TOLOBNI TYPE STRING,
TOLERANZUN TYPE STRING,
TOLUNNI TYPE STRING,
KLASANZAHL TYPE STRING,
KLASBREITE TYPE STRING,
KLASBRNI TYPE STRING,
KLASMITTE TYPE STRING,
KLASMINI TYPE STRING,
GRENZEOB1 TYPE STRING,
GRENZOB1NI TYPE STRING,
GRENZEUN1 TYPE STRING,
GRENZUN1NI TYPE STRING,
GRENZEOB2 TYPE STRING,
GRENZOB2NI TYPE STRING,
GRENZEUN2 TYPE STRING,
GRENZUN2NI TYPE STRING,
PLAUSIOBEN TYPE STRING,
PLAUSIOBNI TYPE STRING,
PLAUSIUNTE TYPE STRING,
PLAUSIUNNI TYPE STRING,
TOLERWEIOB TYPE STRING,
TOLWOBNI TYPE STRING,
TOLERWEIUN TYPE STRING,
TOLWUNNI TYPE STRING,
TOLERWAB TYPE STRING,
TOLERWBIS TYPE STRING,
STICHPRVER TYPE STRING,
FAKPLANME TYPE STRING,
FAKPROBME TYPE STRING,
PROBEMGEH TYPE STRING,
PRUEFEINH TYPE STRING,
DYNKRIT TYPE STRING,
FORMELSL TYPE STRING,
FORMEL1 TYPE STRING,
FORMEL2 TYPE STRING,
CODEGR9U TYPE STRING,
CODE9U TYPE STRING,
CODEVR9U TYPE STRING,
CODEGR9O TYPE STRING,
CODE9O TYPE STRING,
CODEVR9O TYPE STRING,
KATAB1 TYPE STRING,
KATALGART1 TYPE STRING,
AUSWMENGE1 TYPE STRING,
AUSWMGWRK1 TYPE STRING,
AUSWVERS1 TYPE STRING,
AUSWDAT1 TYPE STRING,
KATAB2 TYPE STRING,
KATALGART2 TYPE STRING,
AUSWMENGE2 TYPE STRING,
AUSWMGWRK2 TYPE STRING,
AUSWVERS2 TYPE STRING,
AUSWDAT2 TYPE STRING,
KATAB3 TYPE STRING,
KATALGART3 TYPE STRING,
AUSWMENGE3 TYPE STRING,
AUSWMGWRK3 TYPE STRING,
AUSWVERS3 TYPE STRING,
AUSWDAT3 TYPE STRING,
KATAB4 TYPE STRING,
KATALGART4 TYPE STRING,
AUSWMENGE4 TYPE STRING,
AUSWMGWRK4 TYPE STRING,
AUSWVERS4 TYPE STRING,
AUSWDAT4 TYPE STRING,
KATAB5 TYPE STRING,
KATALGART5 TYPE STRING,
AUSWMENGE5 TYPE STRING,
AUSWMGWRK5 TYPE STRING,
AUSWVERS5 TYPE STRING,
AUSWDAT5 TYPE STRING,
DUMMY10 TYPE STRING,
DUMMY20 TYPE STRING,
DUMMY40 TYPE STRING,
CHARACT_ID1 TYPE STRING,
QERGDATH TYPE STRING,
EEANTVERF TYPE STRING,
QDYNREGEL TYPE STRING,
DYNMERKREF TYPE STRING,
PZLFH TYPE STRING,
CODEGRQUAL TYPE STRING,
CODEQUAL TYPE STRING,
SPCKRIT TYPE STRING,
INPPROC TYPE STRING,
RES_PLAN TYPE STRING,
CTRMETH TYPE STRING,
CHAORIG TYPE STRING,
CHAORIG_GUID TYPE STRING,
NO_INSPECTION TYPE STRING,
CHAR_RELEVANCE TYPE STRING,
QP_CHAORIG_ID TYPE STRING,
CHARGROUP TYPE STRING,
CHARGROUP_CREF TYPE STRING,
DIVISIONINT TYPE STRING,
VORNR TYPE STRING,
IDENT TYPE STRING,
HERKUNFT TYPE STRING,
DATUB TYPE STRING,
QUANTITAT TYPE STRING,
MESSWERTE TYPE STRING,
PRUEFKAT TYPE STRING,
TOLEROBEN TYPE STRING,
TOLERUNTEN TYPE STRING,
SOLLPRUEF TYPE STRING,
PUMFKZ TYPE STRING,
LZEITKZ TYPE STRING,
ESTUKZ TYPE STRING,
DOKUKZ TYPE STRING,
RZWANG TYPE STRING,
SYNCRO TYPE STRING,
ADDPRO TYPE STRING,
ZERSTPRF TYPE STRING,
FORMELMK TYPE STRING,
STICHPR TYPE STRING,
AUSSLOS TYPE STRING,
FIXIERT TYPE STRING,
BEWFHLZHL TYPE STRING,
LSTKZ TYPE STRING,
VORGAEND TYPE STRING,
PMMZWANG TYPE STRING,
FEHLREC TYPE STRING,
AENDBELEG TYPE STRING,
QSPCMK TYPE STRING,
KEINDRUCK TYPE STRING,
PARA TYPE STRING,
PROCESSMK TYPE STRING,
MATKZ TYPE STRING,
LIEFKZ TYPE STRING,
HERSTKZ TYPE STRING,
KUNDKZ TYPE STRING,
MASCHKZ TYPE STRING,
PROKZ TYPE STRING,
VSTEUERKZ TYPE STRING,
PSNFH TYPE STRING,
FHMNR TYPE STRING,
KZUMFS TYPE STRING,
ATINN TYPE STRING,
ATNAM TYPE STRING,
SLWBEZ TYPE STRING,
QDYNHEAD TYPE STRING,
TXTZ1 TYPE STRING,
STICHPRTXT TYPE STRING,
MASTERCTXT TYPE STRING,
VALID_TO_ON_DB TYPE STRING,
VERSN_SOURCE TYPE STRING,
VERSN_SOURCE_PLNKN TYPE STRING,
VERSN_SOURCE_MERKNR TYPE STRING,
ZUONR TYPE STRING,
INST_GUID TYPE STRING,
DUMMY_PLMK_INCL_EEW_PS TYPE STRING,
ITEM_NO TYPE STRING,
GROUP_COLUMN_NO TYPE STRING,
DIVISION_SEQ_NO TYPE STRING,
CREATED_BY TYPE STRING,
CREATED_AT TYPE STRING,
CHANGED_BY TYPE STRING,
CHANGED_AT TYPE STRING,END OF T_EKKO_STR. DATA: WA_MPES_RTGV_OAC_CHA_BO_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_MPES_RTGV_OAC_CHA_BO_STR-PLNTY sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PLNNR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PLNAL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-VERSN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PLNFL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PLNKN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-SEGMENT_TYPE sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-OA_ID sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-OA_VERSION_NO sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KZEINSTELL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-MERKNR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GUELTIGAB sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-SERNV sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-LOEKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PARKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AENDERGNR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-ERSTELLER sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-ERSTELLDAT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AENDERER sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AENDERDAT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-STEUERKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-QMTB_WERKS sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PMETHODE sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PMTVERSION sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-QPMK_REF sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-QPMK_ZAEHL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-VERWMERKM sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-MKVERSION sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-MKVERSDAT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-MERKGEW sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PROBENR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PRUEFQUALI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLERANZSL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KURZTEXT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-LTEXTKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-LTEXTSPR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-LTEXTEKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-LTXTENTSPR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-STELLEN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-MASSEINHSW sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-SOLLWERT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-SOLLWNI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLERANZOB sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLOBNI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLERANZUN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLUNNI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KLASANZAHL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KLASBREITE sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KLASBRNI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KLASMITTE sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KLASMINI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GRENZEOB1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GRENZOB1NI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GRENZEUN1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GRENZUN1NI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GRENZEOB2 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GRENZOB2NI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GRENZEUN2 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GRENZUN2NI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PLAUSIOBEN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PLAUSIOBNI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PLAUSIUNTE sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PLAUSIUNNI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLERWEIOB sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLWOBNI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLERWEIUN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLWUNNI sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLERWAB sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLERWBIS sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-STICHPRVER sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-FAKPLANME sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-FAKPROBME sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PROBEMGEH sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PRUEFEINH sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DYNKRIT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-FORMELSL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-FORMEL1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-FORMEL2 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CODEGR9U sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CODE9U sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CODEVR9U sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CODEGR9O sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CODE9O sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CODEVR9O sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATAB1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATALGART1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMENGE1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMGWRK1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWVERS1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWDAT1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATAB2 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATALGART2 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMENGE2 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMGWRK2 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWVERS2 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWDAT2 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATAB3 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATALGART3 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMENGE3 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMGWRK3 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWVERS3 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWDAT3 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATAB4 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATALGART4 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMENGE4 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMGWRK4 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWVERS4 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWDAT4 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATAB5 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KATALGART5 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMENGE5 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWMGWRK5 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWVERS5 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSWDAT5 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DUMMY10 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DUMMY20 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DUMMY40 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CHARACT_ID1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-QERGDATH sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-EEANTVERF sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-QDYNREGEL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DYNMERKREF sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PZLFH sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CODEGRQUAL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CODEQUAL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-SPCKRIT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-INPPROC sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-RES_PLAN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CTRMETH sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CHAORIG sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CHAORIG_GUID sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-NO_INSPECTION sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CHAR_RELEVANCE sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-QP_CHAORIG_ID sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CHARGROUP sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CHARGROUP_CREF sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DIVISIONINT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-VORNR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-IDENT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-HERKUNFT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DATUB sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-QUANTITAT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-MESSWERTE sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PRUEFKAT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLEROBEN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TOLERUNTEN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-SOLLPRUEF sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PUMFKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-LZEITKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-ESTUKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DOKUKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-RZWANG sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-SYNCRO sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-ADDPRO sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-ZERSTPRF sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-FORMELMK sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-STICHPR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AUSSLOS sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-FIXIERT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-BEWFHLZHL sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-LSTKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-VORGAEND sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PMMZWANG sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-FEHLREC sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-AENDBELEG sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-QSPCMK sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KEINDRUCK sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PARA sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PROCESSMK sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-MATKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-LIEFKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-HERSTKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KUNDKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-MASCHKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PROKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-VSTEUERKZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-PSNFH sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-FHMNR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-KZUMFS sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-ATINN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-ATNAM sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-SLWBEZ sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-QDYNHEAD sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-TXTZ1 sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-STICHPRTXT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-MASTERCTXT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-VALID_TO_ON_DB sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-VERSN_SOURCE sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-VERSN_SOURCE_PLNKN sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-VERSN_SOURCE_MERKNR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-ZUONR sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-INST_GUID sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DUMMY_PLMK_INCL_EEW_PS sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-ITEM_NO sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-GROUP_COLUMN_NO sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-DIVISION_SEQ_NO sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CREATED_BY sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CREATED_AT sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CHANGED_BY sy-vline
WA_MPES_RTGV_OAC_CHA_BO_STR-CHANGED_AT sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.