ABAP Select data from SAP table COPC_S_PAYRQ_POST_OVERVIEW 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 COPC_S_PAYRQ_POST_OVERVIEW 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 COPC_S_PAYRQ_POST_OVERVIEW. 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 COPC_S_PAYRQ_POST_OVERVIEW 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_COPC_S_PAYRQ_POST_OVERVIEW TYPE STANDARD TABLE OF COPC_S_PAYRQ_POST_OVERVIEW,
      WA_COPC_S_PAYRQ_POST_OVERVIEW TYPE COPC_S_PAYRQ_POST_OVERVIEW,
      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: <COPC_S_PAYRQ_POST_OVERVIEW> TYPE COPC_S_PAYRQ_POST_OVERVIEW.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM COPC_S_PAYRQ_POST_OVERVIEW
*  INTO TABLE @DATA(IT_COPC_S_PAYRQ_POST_OVERVIEW2).
*--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_COPC_S_PAYRQ_POST_OVERVIEW INDEX 1 INTO DATA(WA_COPC_S_PAYRQ_POST_OVERVIEW2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_COPC_S_PAYRQ_POST_OVERVIEW ASSIGNING <COPC_S_PAYRQ_POST_OVERVIEW>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<COPC_S_PAYRQ_POST_OVERVIEW>-KEYNO = 1.
<COPC_S_PAYRQ_POST_OVERVIEW>-ZBUKR = 1.
<COPC_S_PAYRQ_POST_OVERVIEW>-ABSBU = 1.
<COPC_S_PAYRQ_POST_OVERVIEW>-BUKRS = 1.
<COPC_S_PAYRQ_POST_OVERVIEW>-BELNR = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_COPC_S_PAYRQ_POST_OVERVIEW-BUZEI, sy-vline,
WA_COPC_S_PAYRQ_POST_OVERVIEW-GJAHR, sy-vline,
WA_COPC_S_PAYRQ_POST_OVERVIEW-GSBER, sy-vline,
WA_COPC_S_PAYRQ_POST_OVERVIEW-USNAM, sy-vline,
WA_COPC_S_PAYRQ_POST_OVERVIEW-MONAT, sy-vline,
WA_COPC_S_PAYRQ_POST_OVERVIEW-CPUDT, sy-vline.
ENDLOOP. *Add any further fields from structure WA_COPC_S_PAYRQ_POST_OVERVIEW 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_COPC_S_PAYRQ_POST_OVERVIEW 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_COPC_S_PAYRQ_POST_OVERVIEW INTO WA_COPC_S_PAYRQ_POST_OVERVIEW. *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 KEYNO CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-KEYNO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-KEYNO.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit AU132, internal->external for field DMBTR CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-DMBTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-DMBTR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMBE2 CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-DMBE2 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-DMBE2.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMBE3 CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-DMBE3 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-DMBE3.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field WRBTR CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-WRBTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-WRBTR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field PAMTL CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-PAMTL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-PAMTL.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field PAMTF CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-PAMTF IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-PAMTF.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit AU132, internal->external for field DEDUAMNTP CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-DEDUAMNTP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-DEDUAMNTP.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DEDUAMNTL CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-DEDUAMNTL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-DEDUAMNTL.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field WTAMNTP CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-WTAMNTP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-WTAMNTP.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field WTAMNTL CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-WTAMNTL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-WTAMNTL.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit ALPHA, internal->external for field SNDPRN CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_COPC_S_PAYRQ_POST_OVERVIEW-SNDPRN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_COPC_S_PAYRQ_POST_OVERVIEW-SNDPRN.
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_COPC_S_PAYRQ_POST_OVERVIEW_STR,
KEYNO TYPE STRING,
ZBUKR TYPE STRING,
ABSBU TYPE STRING,
BUKRS TYPE STRING,
BELNR TYPE STRING,
BUZEI TYPE STRING,
GJAHR TYPE STRING,
GSBER TYPE STRING,
USNAM TYPE STRING,
MONAT TYPE STRING,
CPUDT TYPE STRING,
HWAER TYPE STRING,
WAERS TYPE STRING,
HWAE2 TYPE STRING,
HWAE3 TYPE STRING,
PACUR TYPE STRING,
DMBTR TYPE STRING,
DMBE2 TYPE STRING,
DMBE3 TYPE STRING,
WRBTR TYPE STRING,
PAMTL TYPE STRING,
PAMTF TYPE STRING,
SHKZG TYPE STRING,
KOART TYPE STRING,
PARNO TYPE STRING,
HKONT TYPE STRING,
PAYEE TYPE STRING,
FILKD TYPE STRING,
ANRED TYPE STRING,
NAME1 TYPE STRING,
NAME2 TYPE STRING,
NAME3 TYPE STRING,
NAME4 TYPE STRING,
PSTLZ TYPE STRING,
ORT01 TYPE STRING,
PSTL2 TYPE STRING,
STRAS TYPE STRING,
PFACH TYPE STRING,
LAND1 TYPE STRING,
REGIO TYPE STRING,
BUSAB TYPE STRING,
STCD1 TYPE STRING,
DTAMS TYPE STRING,
DTAWS TYPE STRING,
DTWS1 TYPE STRING,
DTWS2 TYPE STRING,
DTWS3 TYPE STRING,
DTWS4 TYPE STRING,
LZBKZ TYPE STRING,
LANDL TYPE STRING,
ZANRE TYPE STRING,
ZNME1 TYPE STRING,
ZNME2 TYPE STRING,
ZNME3 TYPE STRING,
ZNME4 TYPE STRING,
ZPSTL TYPE STRING,
ZORT1 TYPE STRING,
ZPST2 TYPE STRING,
ZSTRA TYPE STRING,
ZPFAC TYPE STRING,
ZLAND TYPE STRING,
ZREGI TYPE STRING,
ZSPRA TYPE STRING,
EIKTO TYPE STRING,
ZTLFX TYPE STRING,
ZTELF TYPE STRING,
ZTELX TYPE STRING,
HKTID TYPE STRING,
HBKID TYPE STRING,
UBNKY TYPE STRING,
UBNKS TYPE STRING,
UBNKL TYPE STRING,
UIBAN TYPE STRING,
UBKNT TYPE STRING,
UBKON TYPE STRING,
UBNKR TYPE STRING,
UBHKT TYPE STRING,
BKHBK TYPE STRING,
BTYP1 TYPE STRING,
BNKS1 TYPE STRING,
BNKL1 TYPE STRING,
BNKN1 TYPE STRING,
BKON1 TYPE STRING,
BKRF1 TYPE STRING,
IBAN1 TYPE STRING,
BTYP2 TYPE STRING,
BNKS2 TYPE STRING,
BNKL2 TYPE STRING,
BNKN2 TYPE STRING,
BKON2 TYPE STRING,
BKRF2 TYPE STRING,
IBAN2 TYPE STRING,
BTYP3 TYPE STRING,
BNKS3 TYPE STRING,
BNKL3 TYPE STRING,
BNKN3 TYPE STRING,
BKON3 TYPE STRING,
BKRF3 TYPE STRING,
IBAN3 TYPE STRING,
BVTYP TYPE STRING,
ZBNKS TYPE STRING,
ZBNKN TYPE STRING,
ZBNKL TYPE STRING,
ZBNKY TYPE STRING,
ZBKON TYPE STRING,
BKREF TYPE STRING,
ZBNKR TYPE STRING,
SWIFT TYPE STRING,
KOINH TYPE STRING,
ZGSBR TYPE STRING,
GGRUP TYPE STRING,
XRELD TYPE STRING,
XRELI TYPE STRING,
XRELP TYPE STRING,
XREVE TYPE STRING,
STGRD TYPE STRING,
XURGE TYPE STRING,
TAGE1 TYPE STRING,
DUEDT TYPE STRING,
VALUT TYPE STRING,
CRVAL TYPE STRING,
IMPER TYPE STRING,
ZUONR TYPE STRING,
XPORE TYPE STRING,
UZAWE TYPE STRING,
ZWELS TYPE STRING,
XEZER TYPE STRING,
SWTXT TYPE STRING,
XBLNR TYPE STRING,
BLDAT TYPE STRING,
SGTXT TYPE STRING,
PAYGR TYPE STRING,
XKDFB TYPE STRING,
ZLSPR TYPE STRING,
VBUND TYPE STRING,
AUGDT TYPE STRING,
AUGCP TYPE STRING,
AUGBL TYPE STRING,
AWSYS TYPE STRING,
AWTYP TYPE STRING,
AWKEY TYPE STRING,
ORIGIN TYPE STRING,
HBKGR TYPE STRING,
RFTTRN TYPE STRING,
POST_NAME TYPE STRING,
POST_DATE TYPE STRING,
REL_NAME TYPE STRING,
REL_DATE TYPE STRING,
DEDUAMNTP TYPE STRING,
DEDUAMNTL TYPE STRING,
WTAMNTP TYPE STRING,
WTAMNTL TYPE STRING,
KIDNO TYPE STRING,
ZIBAN TYPE STRING,
SNAME1 TYPE STRING,
SORT01 TYPE STRING,
SLAND1 TYPE STRING,
ZPFOR TYPE STRING,
MGUID TYPE STRING,
SNAME2 TYPE STRING,
SNAME3 TYPE STRING,
SNAME4 TYPE STRING,
SSTRAS TYPE STRING,
SSTRS2 TYPE STRING,
SPSTLZ TYPE STRING,
SID TYPE STRING,
PURP_CODE TYPE STRING,
ORIGN TYPE STRING,
ORGUNIT_FROM TYPE STRING,
ORGUNIT_TO TYPE STRING,
TRANS_CATE TYPE STRING,
TRANS_TYPE TYPE STRING,
XVEND TYPE STRING,
XCUST TYPE STRING,
XBP TYPE STRING,
VEND_NO TYPE STRING,
CUSTOMER_NO TYPE STRING,
BP_NO TYPE STRING,
SNDPOR TYPE STRING,
SNDPRT TYPE STRING,
SNDPRN TYPE STRING,END OF T_EKKO_STR. DATA: WA_COPC_S_PAYRQ_POST_OVERVIEW_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_COPC_S_PAYRQ_POST_OVERVIEW_STR-KEYNO sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZBUKR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ABSBU sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BUKRS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BELNR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BUZEI sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-GJAHR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-GSBER sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-USNAM sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-MONAT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-CPUDT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-HWAER sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-WAERS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-HWAE2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-HWAE3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PACUR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DMBTR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DMBE2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DMBE3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-WRBTR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PAMTL sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PAMTF sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SHKZG sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-KOART sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PARNO sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-HKONT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PAYEE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-FILKD sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ANRED sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-NAME1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-NAME2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-NAME3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-NAME4 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PSTLZ sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ORT01 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PSTL2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-STRAS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PFACH sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-LAND1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-REGIO sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BUSAB sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-STCD1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DTAMS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DTAWS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DTWS1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DTWS2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DTWS3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DTWS4 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-LZBKZ sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-LANDL sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZANRE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZNME1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZNME2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZNME3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZNME4 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZPSTL sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZORT1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZPST2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZSTRA sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZPFAC sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZLAND sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZREGI sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZSPRA sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-EIKTO sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZTLFX sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZTELF sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZTELX sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-HKTID sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-HBKID sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-UBNKY sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-UBNKS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-UBNKL sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-UIBAN sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-UBKNT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-UBKON sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-UBNKR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-UBHKT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BKHBK sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BTYP1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BNKS1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BNKL1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BNKN1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BKON1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BKRF1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-IBAN1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BTYP2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BNKS2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BNKL2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BNKN2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BKON2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BKRF2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-IBAN2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BTYP3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BNKS3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BNKL3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BNKN3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BKON3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BKRF3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-IBAN3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BVTYP sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZBNKS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZBNKN sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZBNKL sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZBNKY sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZBKON sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BKREF sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZBNKR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SWIFT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-KOINH sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZGSBR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-GGRUP sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XRELD sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XRELI sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XRELP sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XREVE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-STGRD sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XURGE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-TAGE1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DUEDT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-VALUT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-CRVAL sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-IMPER sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZUONR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XPORE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-UZAWE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZWELS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XEZER sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SWTXT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XBLNR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BLDAT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SGTXT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PAYGR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XKDFB sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZLSPR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-VBUND sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-AUGDT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-AUGCP sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-AUGBL sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-AWSYS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-AWTYP sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-AWKEY sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ORIGIN sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-HBKGR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-RFTTRN sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-POST_NAME sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-POST_DATE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-REL_NAME sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-REL_DATE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DEDUAMNTP sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-DEDUAMNTL sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-WTAMNTP sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-WTAMNTL sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-KIDNO sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZIBAN sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SNAME1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SORT01 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SLAND1 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ZPFOR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-MGUID sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SNAME2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SNAME3 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SNAME4 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SSTRAS sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SSTRS2 sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SPSTLZ sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SID sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-PURP_CODE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ORIGN sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ORGUNIT_FROM sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-ORGUNIT_TO sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-TRANS_CATE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-TRANS_TYPE sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XVEND sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XCUST sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-XBP sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-VEND_NO sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-CUSTOMER_NO sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-BP_NO sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SNDPOR sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SNDPRT sy-vline
WA_COPC_S_PAYRQ_POST_OVERVIEW_STR-SNDPRN sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.