ABAP Select data from SAP table /ISDFPS/PM_MBOOK_AFRU 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 /ISDFPS/PM_MBOOK_AFRU 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 /ISDFPS/PM_MBOOK_AFRU. 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 /ISDFPS/PM_MBOOK_AFRU 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_/ISDFPS/PM_MBOOK_AFRU TYPE STANDARD TABLE OF /ISDFPS/PM_MBOOK_AFRU,
      WA_/ISDFPS/PM_MBOOK_AFRU TYPE /ISDFPS/PM_MBOOK_AFRU,
      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: </ISDFPS/PM_MBOOK_AFRU> TYPE /ISDFPS/PM_MBOOK_AFRU.

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

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

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


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/ISDFPS/PM_MBOOK_AFRU ASSIGNING </ISDFPS/PM_MBOOK_AFRU>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</ISDFPS/PM_MBOOK_AFRU>-MANDT = 1.
</ISDFPS/PM_MBOOK_AFRU>-RUECK = 1.
</ISDFPS/PM_MBOOK_AFRU>-RMZHL = 1.
</ISDFPS/PM_MBOOK_AFRU>-ERSDA = 1.
</ISDFPS/PM_MBOOK_AFRU>-ERNAM = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/ISDFPS/PM_MBOOK_AFRU-LAEDA, sy-vline,
WA_/ISDFPS/PM_MBOOK_AFRU-AENAM, sy-vline,
WA_/ISDFPS/PM_MBOOK_AFRU-BUDAT, sy-vline,
WA_/ISDFPS/PM_MBOOK_AFRU-ARBID, sy-vline,
WA_/ISDFPS/PM_MBOOK_AFRU-WERKS, sy-vline,
WA_/ISDFPS/PM_MBOOK_AFRU-LTXA1, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/ISDFPS/PM_MBOOK_AFRU 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_/ISDFPS/PM_MBOOK_AFRU 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_/ISDFPS/PM_MBOOK_AFRU INTO WA_/ISDFPS/PM_MBOOK_AFRU. *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 ISOLA, internal->external for field TXTSP CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = WA_/ISDFPS/PM_MBOOK_AFRU-TXTSP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/ISDFPS/PM_MBOOK_AFRU-TXTSP.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit GJAHR, internal->external for field MYEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_/ISDFPS/PM_MBOOK_AFRU-MYEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/ISDFPS/PM_MBOOK_AFRU-MYEAR.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit ALPHA, internal->external for field LOGSYS CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/ISDFPS/PM_MBOOK_AFRU-LOGSYS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/ISDFPS/PM_MBOOK_AFRU-LOGSYS.
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_/ISDFPS/PM_MBOOK_AFRU_STR,
MANDT TYPE STRING,
RUECK TYPE STRING,
RMZHL TYPE STRING,
ERSDA TYPE STRING,
ERNAM TYPE STRING,
LAEDA TYPE STRING,
AENAM TYPE STRING,
BUDAT TYPE STRING,
ARBID TYPE STRING,
WERKS TYPE STRING,
LTXA1 TYPE STRING,
TXTSP TYPE STRING,
ISERH TYPE STRING,
ZEIER TYPE STRING,
ILE01 TYPE STRING,
ISM01 TYPE STRING,
ILE02 TYPE STRING,
ISM02 TYPE STRING,
ILE03 TYPE STRING,
ISM03 TYPE STRING,
ILE04 TYPE STRING,
ISM04 TYPE STRING,
ILE05 TYPE STRING,
ISM05 TYPE STRING,
ILE06 TYPE STRING,
ISM06 TYPE STRING,
ABARB TYPE STRING,
ISMNW TYPE STRING,
ISMNE TYPE STRING,
LEARR TYPE STRING,
IDAUR TYPE STRING,
IDAUE TYPE STRING,
ZCODE TYPE STRING,
LOART TYPE STRING,
QUALF TYPE STRING,
ANZMA TYPE STRING,
LOGRP TYPE STRING,
GMNGA TYPE STRING,
LMNGA TYPE STRING,
XMNGA TYPE STRING,
GMEIN TYPE STRING,
MEINH TYPE STRING,
GRUND TYPE STRING,
PERNR TYPE STRING,
ISDD TYPE STRING,
ISDZ TYPE STRING,
IERD TYPE STRING,
IERZ TYPE STRING,
ISBD TYPE STRING,
ISBZ TYPE STRING,
IEBD TYPE STRING,
IEBZ TYPE STRING,
ISAD TYPE STRING,
ISAZ TYPE STRING,
IEDD TYPE STRING,
IEDZ TYPE STRING,
PEDD TYPE STRING,
PEDZ TYPE STRING,
WABLNR TYPE STRING,
WEBLNR TYPE STRING,
AUERU TYPE STRING,
AUSOR TYPE STRING,
STNDR TYPE STRING,
MANUR TYPE STRING,
MEILR TYPE STRING,
AUFPL TYPE STRING,
APLZL TYPE STRING,
AUFNR TYPE STRING,
APLFL TYPE STRING,
VORNR TYPE STRING,
SUMNR TYPE STRING,
OFM01 TYPE STRING,
OFE01 TYPE STRING,
LEK01 TYPE STRING,
OFM02 TYPE STRING,
OFE02 TYPE STRING,
LEK02 TYPE STRING,
OFM03 TYPE STRING,
OFE03 TYPE STRING,
LEK03 TYPE STRING,
OFM04 TYPE STRING,
OFE04 TYPE STRING,
LEK04 TYPE STRING,
OFM05 TYPE STRING,
OFE05 TYPE STRING,
LEK05 TYPE STRING,
OFM06 TYPE STRING,
OFE06 TYPE STRING,
LEK06 TYPE STRING,
OFMNW TYPE STRING,
OFMNE TYPE STRING,
LEKNW TYPE STRING,
ODAUR TYPE STRING,
ODAUE TYPE STRING,
STOKZ TYPE STRING,
STZHL TYPE STRING,
SMENG TYPE STRING,
RUECK_MST TYPE STRING,
RMZHL_MST TYPE STRING,
PDSNR TYPE STRING,
KAPID TYPE STRING,
SPLIT TYPE STRING,
ZAUSW TYPE STRING,
ORIND TYPE STRING,
ORIGF TYPE STRING,
CANUM TYPE STRING,
BELNR_IST TYPE STRING,
BELNR_UMB TYPE STRING,
RMNGA TYPE STRING,
CATSBELNR TYPE STRING,
SATZA TYPE STRING,
ERZET TYPE STRING,
CATSPRICE TYPE STRING,
CATSTCURR TYPE STRING,
CATSPEINH TYPE STRING,
BEMOT TYPE STRING,
IPRZ1 TYPE STRING,
IPRE1 TYPE STRING,
IPRK1 TYPE STRING,
EXNAM TYPE STRING,
EXERD TYPE STRING,
EXERZ TYPE STRING,
PRZ01 TYPE STRING,
OPRZ1 TYPE STRING,
OPRE1 TYPE STRING,
SKOKRS TYPE STRING,
SKOSTL TYPE STRING,
NODAT TYPE STRING,
ISMNU TYPE STRING,
OFMNU TYPE STRING,
PACKNO TYPE STRING,
EXTID TYPE STRING,
SCHGRUP TYPE STRING,
KAPTPROG TYPE STRING,
EEW_AFRU_PS_DUMMY TYPE STRING,
OBMAT TYPE STRING,
OBCHA TYPE STRING,
LICHA TYPE STRING,
MYEAR TYPE STRING,
ME_SFCID TYPE STRING,
ME_2ND_CONF_QTY TYPE STRING,
NO_GOODSMOVEMENT_VIA_API TYPE STRING,
ROLE_ID TYPE STRING,
UCMAT TYPE STRING,
UCCHA TYPE STRING,
WTY_IND TYPE STRING,
THEAD TYPE STRING,
TDOBJECT TYPE STRING,
TDNAME TYPE STRING,
TDID TYPE STRING,
TDSPRAS TYPE STRING,
TDTITLE TYPE STRING,
TDFORM TYPE STRING,
TDSTYLE TYPE STRING,
TDVERSION TYPE STRING,
TDFUSER TYPE STRING,
TDFRELES TYPE STRING,
TDFDATE TYPE STRING,
TDFTIME TYPE STRING,
TDLUSER TYPE STRING,
TDLRELES TYPE STRING,
TDLDATE TYPE STRING,
TDLTIME TYPE STRING,
TDLINESIZE TYPE STRING,
TDTXTLINES TYPE STRING,
TDHYPHENAT TYPE STRING,
TDOSPRAS TYPE STRING,
TDTRANSTAT TYPE STRING,
TDMACODE1 TYPE STRING,
TDMACODE2 TYPE STRING,
TDREFOBJ TYPE STRING,
TDREFNAME TYPE STRING,
TDREFID TYPE STRING,
TDTEXTTYPE TYPE STRING,
TDCOMPRESS TYPE STRING,
MANDT TYPE STRING,
TDOCLASS TYPE STRING,
LOGSYS TYPE STRING,
TLINE TYPE STRING,
ARBPL TYPE STRING,
KTEXT TYPE STRING,
GRDTX TYPE STRING,END OF T_EKKO_STR. DATA: WA_/ISDFPS/PM_MBOOK_AFRU_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_/ISDFPS/PM_MBOOK_AFRU_STR-MANDT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-RUECK sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-RMZHL sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ERSDA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ERNAM sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LAEDA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-AENAM sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-BUDAT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ARBID sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-WERKS sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LTXA1 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TXTSP sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISERH sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ZEIER sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ILE01 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISM01 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ILE02 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISM02 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ILE03 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISM03 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ILE04 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISM04 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ILE05 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISM05 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ILE06 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISM06 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ABARB sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISMNW sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISMNE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LEARR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IDAUR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IDAUE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ZCODE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LOART sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-QUALF sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ANZMA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LOGRP sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-GMNGA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LMNGA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-XMNGA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-GMEIN sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-MEINH sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-GRUND sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-PERNR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISDD sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISDZ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IERD sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IERZ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISBD sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISBZ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IEBD sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IEBZ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISAD sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISAZ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IEDD sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IEDZ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-PEDD sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-PEDZ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-WABLNR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-WEBLNR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-AUERU sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-AUSOR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-STNDR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-MANUR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-MEILR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-AUFPL sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-APLZL sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-AUFNR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-APLFL sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-VORNR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-SUMNR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFM01 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFE01 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LEK01 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFM02 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFE02 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LEK02 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFM03 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFE03 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LEK03 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFM04 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFE04 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LEK04 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFM05 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFE05 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LEK05 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFM06 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFE06 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LEK06 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFMNW sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFMNE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LEKNW sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ODAUR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ODAUE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-STOKZ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-STZHL sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-SMENG sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-RUECK_MST sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-RMZHL_MST sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-PDSNR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-KAPID sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-SPLIT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ZAUSW sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ORIND sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ORIGF sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-CANUM sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-BELNR_IST sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-BELNR_UMB sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-RMNGA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-CATSBELNR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-SATZA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ERZET sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-CATSPRICE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-CATSTCURR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-CATSPEINH sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-BEMOT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IPRZ1 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IPRE1 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-IPRK1 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-EXNAM sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-EXERD sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-EXERZ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-PRZ01 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OPRZ1 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OPRE1 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-SKOKRS sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-SKOSTL sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-NODAT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ISMNU sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OFMNU sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-PACKNO sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-EXTID sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-SCHGRUP sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-KAPTPROG sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-EEW_AFRU_PS_DUMMY sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OBMAT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-OBCHA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LICHA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-MYEAR sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ME_SFCID sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ME_2ND_CONF_QTY sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-NO_GOODSMOVEMENT_VIA_API sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ROLE_ID sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-UCMAT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-UCCHA sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-WTY_IND sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-THEAD sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDOBJECT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDNAME sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDID sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDSPRAS sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDTITLE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDFORM sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDSTYLE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDVERSION sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDFUSER sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDFRELES sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDFDATE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDFTIME sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDLUSER sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDLRELES sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDLDATE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDLTIME sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDLINESIZE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDTXTLINES sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDHYPHENAT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDOSPRAS sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDTRANSTAT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDMACODE1 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDMACODE2 sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDREFOBJ sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDREFNAME sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDREFID sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDTEXTTYPE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDCOMPRESS sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-MANDT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TDOCLASS sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-LOGSYS sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-TLINE sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-ARBPL sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-KTEXT sy-vline
WA_/ISDFPS/PM_MBOOK_AFRU_STR-GRDTX sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.