ABAP Select data from SAP table RINTER_DEF_CONDITION 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 RINTER_DEF_CONDITION 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 RINTER_DEF_CONDITION. 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 RINTER_DEF_CONDITION 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_RINTER_DEF_CONDITION TYPE STANDARD TABLE OF RINTER_DEF_CONDITION,
      WA_RINTER_DEF_CONDITION TYPE RINTER_DEF_CONDITION,
      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: <RINTER_DEF_CONDITION> TYPE RINTER_DEF_CONDITION.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM RINTER_DEF_CONDITION
*  INTO TABLE @DATA(IT_RINTER_DEF_CONDITION2).
*--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_RINTER_DEF_CONDITION INDEX 1 INTO DATA(WA_RINTER_DEF_CONDITION2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_RINTER_DEF_CONDITION ASSIGNING <RINTER_DEF_CONDITION>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<RINTER_DEF_CONDITION>-VVZZKOPO = 1.
<RINTER_DEF_CONDITION>-MANDT = 1.
<RINTER_DEF_CONDITION>-BUKRS = 1.
<RINTER_DEF_CONDITION>-SANLF = 1.
<RINTER_DEF_CONDITION>-RKEY1 = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_RINTER_DEF_CONDITION-RKEY2, sy-vline,
WA_RINTER_DEF_CONDITION-RKEY3, sy-vline,
WA_RINTER_DEF_CONDITION-DGUEL_KK, sy-vline,
WA_RINTER_DEF_CONDITION-NLFD_ANG, sy-vline,
WA_RINTER_DEF_CONDITION-SKOART, sy-vline,
WA_RINTER_DEF_CONDITION-DGUEL_KP, sy-vline.
ENDLOOP. *Add any further fields from structure WA_RINTER_DEF_CONDITION 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_RINTER_DEF_CONDITION 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_RINTER_DEF_CONDITION INTO WA_RINTER_DEF_CONDITION. *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 KUNNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_RINTER_DEF_CONDITION-KUNNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_RINTER_DEF_CONDITION-KUNNR.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit EXCRT, internal->external for field KURS1 CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT' EXPORTING input = WA_RINTER_DEF_CONDITION-KURS1 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_RINTER_DEF_CONDITION-KURS1.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit ALPHA, internal->external for field KOSTL CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_RINTER_DEF_CONDITION-KOSTL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_RINTER_DEF_CONDITION-KOSTL.
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_RINTER_DEF_CONDITION_STR,
VVZZKOPO TYPE STRING,
MANDT TYPE STRING,
BUKRS TYPE STRING,
SANLF TYPE STRING,
RKEY1 TYPE STRING,
RKEY2 TYPE STRING,
RKEY3 TYPE STRING,
DGUEL_KK TYPE STRING,
NLFD_ANG TYPE STRING,
SKOART TYPE STRING,
DGUEL_KP TYPE STRING,
NSTUFE TYPE STRING,
XKOARTM TYPE STRING,
SSTATI TYPE STRING,
PKOND TYPE STRING,
BKOND TYPE STRING,
SWHRKOND TYPE STRING,
SBASIS TYPE STRING,
SZSREF TYPE STRING,
SZSREFVZ TYPE STRING,
PFLUCT TYPE STRING,
AMMRHY TYPE STRING,
ATTRHY TYPE STRING,
SZAWS TYPE STRING,
RDIVNR TYPE STRING,
JNULLKON TYPE STRING,
MWSKZ TYPE STRING,
JBMONAT TYPE STRING,
DVALUT TYPE STRING,
DFAELL TYPE STRING,
KUNNR TYPE STRING,
ZLSCH TYPE STRING,
BVTYP TYPE STRING,
MABER TYPE STRING,
SPARTNR TYPE STRING,
RKONT TYPE STRING,
SVULT TYPE STRING,
SFULT TYPE STRING,
SVKALRI TYPE STRING,
SFKALRI TYPE STRING,
AVGSTAGE TYPE STRING,
AFGSTAGE TYPE STRING,
SVKALZUS TYPE STRING,
SFKALZUS TYPE STRING,
SKALID TYPE STRING,
SZBMETH TYPE STRING,
JSOFVERR TYPE STRING,
DALLGEM TYPE STRING,
SZEGEN TYPE STRING,
SBUST TYPE STRING,
SKOPO TYPE STRING,
SALTKOND TYPE STRING,
SZINSANP TYPE STRING,
SINCL TYPE STRING,
SFORMREF TYPE STRING,
SVARNAME TYPE STRING,
SVWERK TYPE STRING,
SVMETH TYPE STRING,
SFWERK TYPE STRING,
SFMETH TYPE STRING,
DPKOND TYPE STRING,
AZGSTAGE TYPE STRING,
SZKALRI TYPE STRING,
DZSREF TYPE STRING,
SKALID2 TYPE STRING,
SKALID3 TYPE STRING,
SKALID4 TYPE STRING,
SKALID5 TYPE STRING,
JGESUCHT TYPE STRING,
KURS1 TYPE STRING,
BBASIS TYPE STRING,
SZWERK TYPE STRING,
SFINCL TYPE STRING,
SRUNDVORF TYPE STRING,
SZWKEY TYPE STRING,
SFVMETH TYPE STRING,
SDWERK TYPE STRING,
SBERECH TYPE STRING,
JPROZR TYPE STRING,
SZEITANT TYPE STRING,
SFANT TYPE STRING,
SFRANZ TYPE STRING,
SKOAREF TYPE STRING,
SBEWSOLL TYPE STRING,
SBEWHABEN TYPE STRING,
SBEWZITI TYPE STRING,
AUSWAHL TYPE STRING,
SBERFIMA TYPE STRING,
JMUSS TYPE STRING,
NFOLGE TYPE STRING,
NHIER TYPE STRING,
KBKOND TYPE STRING,
SBASFIX TYPE STRING,
MANSP TYPE STRING,
ZAHLS TYPE STRING,
SZADRI TYPE STRING,
SZART TYPE STRING,
BKONDQM TYPE STRING,
SFLART TYPE STRING,
JAREA TYPE STRING,
PAY_DATA_C TYPE STRING,
AVGSTAGEVZ TYPE STRING,
AFGSTAGEVZ TYPE STRING,
TXJCD TYPE STRING,
LIFNR TYPE STRING,
JEXPOZINS TYPE STRING,
KOSTL TYPE STRING,
GFZLSCH TYPE STRING,
ZLSPR TYPE STRING,
SROUND TYPE STRING,
SKALIDWT TYPE STRING,
BMWST TYPE STRING,
XCROSS TYPE STRING,
PKOND2 TYPE STRING,
FACTOR_TYPE TYPE STRING,
SROUNDFACTOR TYPE STRING,
ROUNDDECFACTOR TYPE STRING,
JEXPOINTFACTOR TYPE STRING,
SROUNDBASEFACTOR TYPE STRING,
ROUNDDECBASEFACTOR TYPE STRING,
SROUNDRATEFACTOR TYPE STRING,
ROUNDDECRATEFACTOR TYPE STRING,
JAVGCAP TYPE STRING,
PAVGCAP TYPE STRING,
JAVGFLOOR TYPE STRING,
PAVGFLOOR TYPE STRING,
PAVGSPREAD TYPE STRING,
SROUNDAVGINTEREST TYPE STRING,
ROUNDDECAVGINTEREST TYPE STRING,
SAVGWEIGHT TYPE STRING,
SFACTORRESET TYPE STRING,
ADGSTAGE TYPE STRING,
A_PAYDAY TYPE STRING,
RCO TYPE STRING,
BROUNDUNIT TYPE STRING,
MNDID TYPE STRING,
BBASISUNIT TYPE STRING,
PPAYMENT TYPE STRING,
AMMRHYZV TYPE STRING,
RBO TYPE STRING,
STECH_COND TYPE STRING,
SEXCLGUEL TYPE STRING,
SULTGUEL TYPE STRING,
A_AMTMIN TYPE STRING,
A_AMTMAX TYPE STRING,
SSCHMETH TYPE STRING,
BAUDAMNT TYPE STRING,
JAUSBL TYPE STRING,
GPDAYS TYPE STRING,
IND_IOAGP TYPE STRING,
DISBRATE TYPE STRING,END OF T_EKKO_STR. DATA: WA_RINTER_DEF_CONDITION_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_RINTER_DEF_CONDITION_STR-VVZZKOPO sy-vline
WA_RINTER_DEF_CONDITION_STR-MANDT sy-vline
WA_RINTER_DEF_CONDITION_STR-BUKRS sy-vline
WA_RINTER_DEF_CONDITION_STR-SANLF sy-vline
WA_RINTER_DEF_CONDITION_STR-RKEY1 sy-vline
WA_RINTER_DEF_CONDITION_STR-RKEY2 sy-vline
WA_RINTER_DEF_CONDITION_STR-RKEY3 sy-vline
WA_RINTER_DEF_CONDITION_STR-DGUEL_KK sy-vline
WA_RINTER_DEF_CONDITION_STR-NLFD_ANG sy-vline
WA_RINTER_DEF_CONDITION_STR-SKOART sy-vline
WA_RINTER_DEF_CONDITION_STR-DGUEL_KP sy-vline
WA_RINTER_DEF_CONDITION_STR-NSTUFE sy-vline
WA_RINTER_DEF_CONDITION_STR-XKOARTM sy-vline
WA_RINTER_DEF_CONDITION_STR-SSTATI sy-vline
WA_RINTER_DEF_CONDITION_STR-PKOND sy-vline
WA_RINTER_DEF_CONDITION_STR-BKOND sy-vline
WA_RINTER_DEF_CONDITION_STR-SWHRKOND sy-vline
WA_RINTER_DEF_CONDITION_STR-SBASIS sy-vline
WA_RINTER_DEF_CONDITION_STR-SZSREF sy-vline
WA_RINTER_DEF_CONDITION_STR-SZSREFVZ sy-vline
WA_RINTER_DEF_CONDITION_STR-PFLUCT sy-vline
WA_RINTER_DEF_CONDITION_STR-AMMRHY sy-vline
WA_RINTER_DEF_CONDITION_STR-ATTRHY sy-vline
WA_RINTER_DEF_CONDITION_STR-SZAWS sy-vline
WA_RINTER_DEF_CONDITION_STR-RDIVNR sy-vline
WA_RINTER_DEF_CONDITION_STR-JNULLKON sy-vline
WA_RINTER_DEF_CONDITION_STR-MWSKZ sy-vline
WA_RINTER_DEF_CONDITION_STR-JBMONAT sy-vline
WA_RINTER_DEF_CONDITION_STR-DVALUT sy-vline
WA_RINTER_DEF_CONDITION_STR-DFAELL sy-vline
WA_RINTER_DEF_CONDITION_STR-KUNNR sy-vline
WA_RINTER_DEF_CONDITION_STR-ZLSCH sy-vline
WA_RINTER_DEF_CONDITION_STR-BVTYP sy-vline
WA_RINTER_DEF_CONDITION_STR-MABER sy-vline
WA_RINTER_DEF_CONDITION_STR-SPARTNR sy-vline
WA_RINTER_DEF_CONDITION_STR-RKONT sy-vline
WA_RINTER_DEF_CONDITION_STR-SVULT sy-vline
WA_RINTER_DEF_CONDITION_STR-SFULT sy-vline
WA_RINTER_DEF_CONDITION_STR-SVKALRI sy-vline
WA_RINTER_DEF_CONDITION_STR-SFKALRI sy-vline
WA_RINTER_DEF_CONDITION_STR-AVGSTAGE sy-vline
WA_RINTER_DEF_CONDITION_STR-AFGSTAGE sy-vline
WA_RINTER_DEF_CONDITION_STR-SVKALZUS sy-vline
WA_RINTER_DEF_CONDITION_STR-SFKALZUS sy-vline
WA_RINTER_DEF_CONDITION_STR-SKALID sy-vline
WA_RINTER_DEF_CONDITION_STR-SZBMETH sy-vline
WA_RINTER_DEF_CONDITION_STR-JSOFVERR sy-vline
WA_RINTER_DEF_CONDITION_STR-DALLGEM sy-vline
WA_RINTER_DEF_CONDITION_STR-SZEGEN sy-vline
WA_RINTER_DEF_CONDITION_STR-SBUST sy-vline
WA_RINTER_DEF_CONDITION_STR-SKOPO sy-vline
WA_RINTER_DEF_CONDITION_STR-SALTKOND sy-vline
WA_RINTER_DEF_CONDITION_STR-SZINSANP sy-vline
WA_RINTER_DEF_CONDITION_STR-SINCL sy-vline
WA_RINTER_DEF_CONDITION_STR-SFORMREF sy-vline
WA_RINTER_DEF_CONDITION_STR-SVARNAME sy-vline
WA_RINTER_DEF_CONDITION_STR-SVWERK sy-vline
WA_RINTER_DEF_CONDITION_STR-SVMETH sy-vline
WA_RINTER_DEF_CONDITION_STR-SFWERK sy-vline
WA_RINTER_DEF_CONDITION_STR-SFMETH sy-vline
WA_RINTER_DEF_CONDITION_STR-DPKOND sy-vline
WA_RINTER_DEF_CONDITION_STR-AZGSTAGE sy-vline
WA_RINTER_DEF_CONDITION_STR-SZKALRI sy-vline
WA_RINTER_DEF_CONDITION_STR-DZSREF sy-vline
WA_RINTER_DEF_CONDITION_STR-SKALID2 sy-vline
WA_RINTER_DEF_CONDITION_STR-SKALID3 sy-vline
WA_RINTER_DEF_CONDITION_STR-SKALID4 sy-vline
WA_RINTER_DEF_CONDITION_STR-SKALID5 sy-vline
WA_RINTER_DEF_CONDITION_STR-JGESUCHT sy-vline
WA_RINTER_DEF_CONDITION_STR-KURS1 sy-vline
WA_RINTER_DEF_CONDITION_STR-BBASIS sy-vline
WA_RINTER_DEF_CONDITION_STR-SZWERK sy-vline
WA_RINTER_DEF_CONDITION_STR-SFINCL sy-vline
WA_RINTER_DEF_CONDITION_STR-SRUNDVORF sy-vline
WA_RINTER_DEF_CONDITION_STR-SZWKEY sy-vline
WA_RINTER_DEF_CONDITION_STR-SFVMETH sy-vline
WA_RINTER_DEF_CONDITION_STR-SDWERK sy-vline
WA_RINTER_DEF_CONDITION_STR-SBERECH sy-vline
WA_RINTER_DEF_CONDITION_STR-JPROZR sy-vline
WA_RINTER_DEF_CONDITION_STR-SZEITANT sy-vline
WA_RINTER_DEF_CONDITION_STR-SFANT sy-vline
WA_RINTER_DEF_CONDITION_STR-SFRANZ sy-vline
WA_RINTER_DEF_CONDITION_STR-SKOAREF sy-vline
WA_RINTER_DEF_CONDITION_STR-SBEWSOLL sy-vline
WA_RINTER_DEF_CONDITION_STR-SBEWHABEN sy-vline
WA_RINTER_DEF_CONDITION_STR-SBEWZITI sy-vline
WA_RINTER_DEF_CONDITION_STR-AUSWAHL sy-vline
WA_RINTER_DEF_CONDITION_STR-SBERFIMA sy-vline
WA_RINTER_DEF_CONDITION_STR-JMUSS sy-vline
WA_RINTER_DEF_CONDITION_STR-NFOLGE sy-vline
WA_RINTER_DEF_CONDITION_STR-NHIER sy-vline
WA_RINTER_DEF_CONDITION_STR-KBKOND sy-vline
WA_RINTER_DEF_CONDITION_STR-SBASFIX sy-vline
WA_RINTER_DEF_CONDITION_STR-MANSP sy-vline
WA_RINTER_DEF_CONDITION_STR-ZAHLS sy-vline
WA_RINTER_DEF_CONDITION_STR-SZADRI sy-vline
WA_RINTER_DEF_CONDITION_STR-SZART sy-vline
WA_RINTER_DEF_CONDITION_STR-BKONDQM sy-vline
WA_RINTER_DEF_CONDITION_STR-SFLART sy-vline
WA_RINTER_DEF_CONDITION_STR-JAREA sy-vline
WA_RINTER_DEF_CONDITION_STR-PAY_DATA_C sy-vline
WA_RINTER_DEF_CONDITION_STR-AVGSTAGEVZ sy-vline
WA_RINTER_DEF_CONDITION_STR-AFGSTAGEVZ sy-vline
WA_RINTER_DEF_CONDITION_STR-TXJCD sy-vline
WA_RINTER_DEF_CONDITION_STR-LIFNR sy-vline
WA_RINTER_DEF_CONDITION_STR-JEXPOZINS sy-vline
WA_RINTER_DEF_CONDITION_STR-KOSTL sy-vline
WA_RINTER_DEF_CONDITION_STR-GFZLSCH sy-vline
WA_RINTER_DEF_CONDITION_STR-ZLSPR sy-vline
WA_RINTER_DEF_CONDITION_STR-SROUND sy-vline
WA_RINTER_DEF_CONDITION_STR-SKALIDWT sy-vline
WA_RINTER_DEF_CONDITION_STR-BMWST sy-vline
WA_RINTER_DEF_CONDITION_STR-XCROSS sy-vline
WA_RINTER_DEF_CONDITION_STR-PKOND2 sy-vline
WA_RINTER_DEF_CONDITION_STR-FACTOR_TYPE sy-vline
WA_RINTER_DEF_CONDITION_STR-SROUNDFACTOR sy-vline
WA_RINTER_DEF_CONDITION_STR-ROUNDDECFACTOR sy-vline
WA_RINTER_DEF_CONDITION_STR-JEXPOINTFACTOR sy-vline
WA_RINTER_DEF_CONDITION_STR-SROUNDBASEFACTOR sy-vline
WA_RINTER_DEF_CONDITION_STR-ROUNDDECBASEFACTOR sy-vline
WA_RINTER_DEF_CONDITION_STR-SROUNDRATEFACTOR sy-vline
WA_RINTER_DEF_CONDITION_STR-ROUNDDECRATEFACTOR sy-vline
WA_RINTER_DEF_CONDITION_STR-JAVGCAP sy-vline
WA_RINTER_DEF_CONDITION_STR-PAVGCAP sy-vline
WA_RINTER_DEF_CONDITION_STR-JAVGFLOOR sy-vline
WA_RINTER_DEF_CONDITION_STR-PAVGFLOOR sy-vline
WA_RINTER_DEF_CONDITION_STR-PAVGSPREAD sy-vline
WA_RINTER_DEF_CONDITION_STR-SROUNDAVGINTEREST sy-vline
WA_RINTER_DEF_CONDITION_STR-ROUNDDECAVGINTEREST sy-vline
WA_RINTER_DEF_CONDITION_STR-SAVGWEIGHT sy-vline
WA_RINTER_DEF_CONDITION_STR-SFACTORRESET sy-vline
WA_RINTER_DEF_CONDITION_STR-ADGSTAGE sy-vline
WA_RINTER_DEF_CONDITION_STR-A_PAYDAY sy-vline
WA_RINTER_DEF_CONDITION_STR-RCO sy-vline
WA_RINTER_DEF_CONDITION_STR-BROUNDUNIT sy-vline
WA_RINTER_DEF_CONDITION_STR-MNDID sy-vline
WA_RINTER_DEF_CONDITION_STR-BBASISUNIT sy-vline
WA_RINTER_DEF_CONDITION_STR-PPAYMENT sy-vline
WA_RINTER_DEF_CONDITION_STR-AMMRHYZV sy-vline
WA_RINTER_DEF_CONDITION_STR-RBO sy-vline
WA_RINTER_DEF_CONDITION_STR-STECH_COND sy-vline
WA_RINTER_DEF_CONDITION_STR-SEXCLGUEL sy-vline
WA_RINTER_DEF_CONDITION_STR-SULTGUEL sy-vline
WA_RINTER_DEF_CONDITION_STR-A_AMTMIN sy-vline
WA_RINTER_DEF_CONDITION_STR-A_AMTMAX sy-vline
WA_RINTER_DEF_CONDITION_STR-SSCHMETH sy-vline
WA_RINTER_DEF_CONDITION_STR-BAUDAMNT sy-vline
WA_RINTER_DEF_CONDITION_STR-JAUSBL sy-vline
WA_RINTER_DEF_CONDITION_STR-GPDAYS sy-vline
WA_RINTER_DEF_CONDITION_STR-IND_IOAGP sy-vline
WA_RINTER_DEF_CONDITION_STR-DISBRATE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.