ABAP Select data from SAP table PCPVALLINE_I 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 PCPVALLINE_I 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 PCPVALLINE_I. 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 PCPVALLINE_I 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_PCPVALLINE_I TYPE STANDARD TABLE OF PCPVALLINE_I,
      WA_PCPVALLINE_I TYPE PCPVALLINE_I,
      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: <PCPVALLINE_I> TYPE PCPVALLINE_I.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM PCPVALLINE_I
*  INTO TABLE @DATA(IT_PCPVALLINE_I2).
*--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_PCPVALLINE_I INDEX 1 INTO DATA(WA_PCPVALLINE_I2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_PCPVALLINE_I ASSIGNING <PCPVALLINE_I>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<PCPVALLINE_I>-KOSTL = 1.
<PCPVALLINE_I>-LSTAR = 1.
<PCPVALLINE_I>-AUFNR = 1.
<PCPVALLINE_I>-POSID = 1.
<PCPVALLINE_I>-PRZNR = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_PCPVALLINE_I-KSTAR, sy-vline,
WA_PCPVALLINE_I-RESRC, sy-vline,
WA_PCPVALLINE_I-TWAER, sy-vline,
WA_PCPVALLINE_I-MEINH, sy-vline,
WA_PCPVALLINE_I-WKF001, sy-vline,
WA_PCPVALLINE_I-WKF002, sy-vline.
ENDLOOP. *Add any further fields from structure WA_PCPVALLINE_I 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_PCPVALLINE_I 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_PCPVALLINE_I INTO WA_PCPVALLINE_I. *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 KOSTL CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-KOSTL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-KOSTL.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit ABPSN, internal->external for field POSID CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-POSID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-POSID.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

*Conversion exit AC152, internal->external for field WKF001 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF001 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF001.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF002 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF002 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF002.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF003 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF003 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF003.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF004 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF004 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF004.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF005 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF005 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF005.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF006 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF006 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF006.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF007 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF007 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF007.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF008 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF008 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF008.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF009 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF009 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF009.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF010 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF010 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF010.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF011 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF011 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF011.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF012 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF012 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF012.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF013 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF013 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF013.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF014 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF014 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF014.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF015 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF015 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF015.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKF016 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKF016 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKF016.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV001 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV001 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV001.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV002 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV002 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV002.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV003 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV003 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV003.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV004 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV004 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV004.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV005 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV005 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV005.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV006 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV006 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV006.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV007 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV007 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV007.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV008 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV008 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV008.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV009 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV009 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV009.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV010 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV010 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV010.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV011 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV011 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV011.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV012 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV012 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV012.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV013 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV013 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV013.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV014 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV014 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV014.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV015 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV015 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV015.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field WKV016 CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-WKV016 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-WKV016.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field GRANT_NBR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_PCPVALLINE_I-GRANT_NBR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PCPVALLINE_I-GRANT_NBR.
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_PCPVALLINE_I_STR,
KOSTL TYPE STRING,
LSTAR TYPE STRING,
AUFNR TYPE STRING,
POSID TYPE STRING,
PRZNR TYPE STRING,
KSTAR TYPE STRING,
RESRC TYPE STRING,
TWAER TYPE STRING,
MEINH TYPE STRING,
WKF001 TYPE STRING,
WKF002 TYPE STRING,
WKF003 TYPE STRING,
WKF004 TYPE STRING,
WKF005 TYPE STRING,
WKF006 TYPE STRING,
WKF007 TYPE STRING,
WKF008 TYPE STRING,
WKF009 TYPE STRING,
WKF010 TYPE STRING,
WKF011 TYPE STRING,
WKF012 TYPE STRING,
WKF013 TYPE STRING,
WKF014 TYPE STRING,
WKF015 TYPE STRING,
WKF016 TYPE STRING,
WKV001 TYPE STRING,
WKV002 TYPE STRING,
WKV003 TYPE STRING,
WKV004 TYPE STRING,
WKV005 TYPE STRING,
WKV006 TYPE STRING,
WKV007 TYPE STRING,
WKV008 TYPE STRING,
WKV009 TYPE STRING,
WKV010 TYPE STRING,
WKV011 TYPE STRING,
WKV012 TYPE STRING,
WKV013 TYPE STRING,
WKV014 TYPE STRING,
WKV015 TYPE STRING,
WKV016 TYPE STRING,
MEF001 TYPE STRING,
MEF002 TYPE STRING,
MEF003 TYPE STRING,
MEF004 TYPE STRING,
MEF005 TYPE STRING,
MEF006 TYPE STRING,
MEF007 TYPE STRING,
MEF008 TYPE STRING,
MEF009 TYPE STRING,
MEF010 TYPE STRING,
MEF011 TYPE STRING,
MEF012 TYPE STRING,
MEF013 TYPE STRING,
MEF014 TYPE STRING,
MEF015 TYPE STRING,
MEF016 TYPE STRING,
MEV001 TYPE STRING,
MEV002 TYPE STRING,
MEV003 TYPE STRING,
MEV004 TYPE STRING,
MEV005 TYPE STRING,
MEV006 TYPE STRING,
MEV007 TYPE STRING,
MEV008 TYPE STRING,
MEV009 TYPE STRING,
MEV010 TYPE STRING,
MEV011 TYPE STRING,
MEV012 TYPE STRING,
MEV013 TYPE STRING,
MEV014 TYPE STRING,
MEV015 TYPE STRING,
MEV016 TYPE STRING,
RECORD_QUANTITY TYPE STRING,
CELEM_ATTRIBUTE TYPE STRING,
ROW_ID TYPE STRING,
FUND TYPE STRING,
FUNCTION TYPE STRING,
GRANT_NBR TYPE STRING,
BUDGET_PD TYPE STRING,END OF T_EKKO_STR. DATA: WA_PCPVALLINE_I_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_PCPVALLINE_I_STR-KOSTL sy-vline
WA_PCPVALLINE_I_STR-LSTAR sy-vline
WA_PCPVALLINE_I_STR-AUFNR sy-vline
WA_PCPVALLINE_I_STR-POSID sy-vline
WA_PCPVALLINE_I_STR-PRZNR sy-vline
WA_PCPVALLINE_I_STR-KSTAR sy-vline
WA_PCPVALLINE_I_STR-RESRC sy-vline
WA_PCPVALLINE_I_STR-TWAER sy-vline
WA_PCPVALLINE_I_STR-MEINH sy-vline
WA_PCPVALLINE_I_STR-WKF001 sy-vline
WA_PCPVALLINE_I_STR-WKF002 sy-vline
WA_PCPVALLINE_I_STR-WKF003 sy-vline
WA_PCPVALLINE_I_STR-WKF004 sy-vline
WA_PCPVALLINE_I_STR-WKF005 sy-vline
WA_PCPVALLINE_I_STR-WKF006 sy-vline
WA_PCPVALLINE_I_STR-WKF007 sy-vline
WA_PCPVALLINE_I_STR-WKF008 sy-vline
WA_PCPVALLINE_I_STR-WKF009 sy-vline
WA_PCPVALLINE_I_STR-WKF010 sy-vline
WA_PCPVALLINE_I_STR-WKF011 sy-vline
WA_PCPVALLINE_I_STR-WKF012 sy-vline
WA_PCPVALLINE_I_STR-WKF013 sy-vline
WA_PCPVALLINE_I_STR-WKF014 sy-vline
WA_PCPVALLINE_I_STR-WKF015 sy-vline
WA_PCPVALLINE_I_STR-WKF016 sy-vline
WA_PCPVALLINE_I_STR-WKV001 sy-vline
WA_PCPVALLINE_I_STR-WKV002 sy-vline
WA_PCPVALLINE_I_STR-WKV003 sy-vline
WA_PCPVALLINE_I_STR-WKV004 sy-vline
WA_PCPVALLINE_I_STR-WKV005 sy-vline
WA_PCPVALLINE_I_STR-WKV006 sy-vline
WA_PCPVALLINE_I_STR-WKV007 sy-vline
WA_PCPVALLINE_I_STR-WKV008 sy-vline
WA_PCPVALLINE_I_STR-WKV009 sy-vline
WA_PCPVALLINE_I_STR-WKV010 sy-vline
WA_PCPVALLINE_I_STR-WKV011 sy-vline
WA_PCPVALLINE_I_STR-WKV012 sy-vline
WA_PCPVALLINE_I_STR-WKV013 sy-vline
WA_PCPVALLINE_I_STR-WKV014 sy-vline
WA_PCPVALLINE_I_STR-WKV015 sy-vline
WA_PCPVALLINE_I_STR-WKV016 sy-vline
WA_PCPVALLINE_I_STR-MEF001 sy-vline
WA_PCPVALLINE_I_STR-MEF002 sy-vline
WA_PCPVALLINE_I_STR-MEF003 sy-vline
WA_PCPVALLINE_I_STR-MEF004 sy-vline
WA_PCPVALLINE_I_STR-MEF005 sy-vline
WA_PCPVALLINE_I_STR-MEF006 sy-vline
WA_PCPVALLINE_I_STR-MEF007 sy-vline
WA_PCPVALLINE_I_STR-MEF008 sy-vline
WA_PCPVALLINE_I_STR-MEF009 sy-vline
WA_PCPVALLINE_I_STR-MEF010 sy-vline
WA_PCPVALLINE_I_STR-MEF011 sy-vline
WA_PCPVALLINE_I_STR-MEF012 sy-vline
WA_PCPVALLINE_I_STR-MEF013 sy-vline
WA_PCPVALLINE_I_STR-MEF014 sy-vline
WA_PCPVALLINE_I_STR-MEF015 sy-vline
WA_PCPVALLINE_I_STR-MEF016 sy-vline
WA_PCPVALLINE_I_STR-MEV001 sy-vline
WA_PCPVALLINE_I_STR-MEV002 sy-vline
WA_PCPVALLINE_I_STR-MEV003 sy-vline
WA_PCPVALLINE_I_STR-MEV004 sy-vline
WA_PCPVALLINE_I_STR-MEV005 sy-vline
WA_PCPVALLINE_I_STR-MEV006 sy-vline
WA_PCPVALLINE_I_STR-MEV007 sy-vline
WA_PCPVALLINE_I_STR-MEV008 sy-vline
WA_PCPVALLINE_I_STR-MEV009 sy-vline
WA_PCPVALLINE_I_STR-MEV010 sy-vline
WA_PCPVALLINE_I_STR-MEV011 sy-vline
WA_PCPVALLINE_I_STR-MEV012 sy-vline
WA_PCPVALLINE_I_STR-MEV013 sy-vline
WA_PCPVALLINE_I_STR-MEV014 sy-vline
WA_PCPVALLINE_I_STR-MEV015 sy-vline
WA_PCPVALLINE_I_STR-MEV016 sy-vline
WA_PCPVALLINE_I_STR-RECORD_QUANTITY sy-vline
WA_PCPVALLINE_I_STR-CELEM_ATTRIBUTE sy-vline
WA_PCPVALLINE_I_STR-ROW_ID sy-vline
WA_PCPVALLINE_I_STR-FUND sy-vline
WA_PCPVALLINE_I_STR-FUNCTION sy-vline
WA_PCPVALLINE_I_STR-GRANT_NBR sy-vline
WA_PCPVALLINE_I_STR-BUDGET_PD sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.