ABAP Select data from SAP table IPPMGAGREEMENT 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 IPPMGAGREEMENT 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 IPPMGAGREEMENT. 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 IPPMGAGREEMENT 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_IPPMGAGREEMENT TYPE STANDARD TABLE OF IPPMGAGREEMENT,
      WA_IPPMGAGREEMENT TYPE IPPMGAGREEMENT,
      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: <IPPMGAGREEMENT> TYPE IPPMGAGREEMENT.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM IPPMGAGREEMENT
*  INTO TABLE @DATA(IT_IPPMGAGREEMENT2).
*--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_IPPMGAGREEMENT INDEX 1 INTO DATA(WA_IPPMGAGREEMENT2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_IPPMGAGREEMENT ASSIGNING <IPPMGAGREEMENT>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<IPPMGAGREEMENT>-MANDT = 1.
<IPPMGAGREEMENT>-PREPAYMENTAGREEMENTUUID = 1.
<IPPMGAGREEMENT>-PREPAYMENTAGREEMENT = 1.
<IPPMGAGREEMENT>-PREPAYMENTAGREEMENTTYPE = 1.
<IPPMGAGREEMENT>-PREPAYMENTAGREEMENTCATEGORY = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_IPPMGAGREEMENT-PREPAYMENTAGREEMENTDESCRIPTION, sy-vline,
WA_IPPMGAGREEMENT-PREPAYMENTAGREEMENTAMOUNT, sy-vline,
WA_IPPMGAGREEMENT-PREPAYMENTAGREEMENTCURRENCY, sy-vline,
WA_IPPMGAGREEMENT-PREPAYMENTAGREEMENTSTATUS, sy-vline,
WA_IPPMGAGREEMENT-PREPAYMENTAGREEMENTCOMMODITY, sy-vline,
WA_IPPMGAGREEMENT-COMPANYCODE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_IPPMGAGREEMENT 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_IPPMGAGREEMENT 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_IPPMGAGREEMENT INTO WA_IPPMGAGREEMENT. *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 COUNTERPARTY CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_IPPMGAGREEMENT-COUNTERPARTY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_IPPMGAGREEMENT-COUNTERPARTY.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit ALPHA, internal->external for field ADDRESSNUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_IPPMGAGREEMENT-ADDRESSNUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_IPPMGAGREEMENT-ADDRESSNUMBER.
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_IPPMGAGREEMENT_STR,
MANDT TYPE STRING,
PREPAYMENTAGREEMENTUUID TYPE STRING,
PREPAYMENTAGREEMENT TYPE STRING,
PREPAYMENTAGREEMENTTYPE TYPE STRING,
PREPAYMENTAGREEMENTCATEGORY TYPE STRING,
PREPAYMENTAGREEMENTDESCRIPTION TYPE STRING,
PREPAYMENTAGREEMENTAMOUNT TYPE STRING,
PREPAYMENTAGREEMENTCURRENCY TYPE STRING,
PREPAYMENTAGREEMENTSTATUS TYPE STRING,
PREPAYMENTAGREEMENTCOMMODITY TYPE STRING,
COMPANYCODE TYPE STRING,
PREPAYMENTECONOMICGROUP TYPE STRING,
PREPAYMENTAGRMTEXTCOMMENTTEXT TYPE STRING,
PREPAYMENTAGRMTINTCOMMENTTEXT TYPE STRING,
PURCHASINGGROUP TYPE STRING,
PURCHASINGORGANIZATION TYPE STRING,
SALESORGANIZATION TYPE STRING,
DISTRIBUTIONCHANNEL TYPE STRING,
DIVISION TYPE STRING,
PLANT TYPE STRING,
PREPAYMENTAGRMTCROPSEASON TYPE STRING,
COUNTERPARTY TYPE STRING,
PREPAYMENTAGRMTBPTYPE TYPE STRING,
PREPAYMENTPRINCIPALREDUCTION TYPE STRING,
PREPAYMENTAGRMTDUEDATE TYPE STRING,
PREPAYMENTAGREEMENTRATING TYPE STRING,
PREPAYMENTLEASEDPLANTAREAQTY TYPE STRING,
PREPAYMENTPLANTINGAREAUOM TYPE STRING,
PREPAYMENTPRODTVPLANTAREAQTY TYPE STRING,
PREPAYMENTPRODTVPLANTAREAUOM TYPE STRING,
PREPAYMENTOWNPLANTINGAREAQTY TYPE STRING,
PREPAYMENTOWNPLANTINGAREAUOM TYPE STRING,
PREPAYMENTCREDITTOTALAREAQTY TYPE STRING,
PREPAYMENTCREDITTOTALAREAUOM TYPE STRING,
PREPAYMENTPLEDGEDAREAQTY TYPE STRING,
PREPAYMENTPLEDGEDAREAUOM TYPE STRING,
PREPAYMENTPLEDGEDPRODTVAREAQTY TYPE STRING,
PREPAYMENTPLEDGEDPRODTVAREAUOM TYPE STRING,
PREPAYMENTOWNPLEDGEDAREAQTY TYPE STRING,
PREPAYMENTOWNPLEDGEDAREAUOM TYPE STRING,
PREPAYMENTTOTALPLEDGEDAREAQTY TYPE STRING,
PREPAYMENTTOTALPLEDGEDAREAUOM TYPE STRING,
PREPAYMENTCOSTPERHECTAREAMT TYPE STRING,
PREPAYMENTCOSTHECTARECURRENCY TYPE STRING,
PREPAYMENTCOSTOFPLEDGEAMT TYPE STRING,
PREPAYMENTCOSTOFPLEDGECURRENCY TYPE STRING,
PREPAYMENTCREDITTOTALCOST TYPE STRING,
PREPAYMENTTOTALCOSTCURRENCY TYPE STRING,
PREPAYMENTPRODUCTIVITYFCTRQTY TYPE STRING,
PREPAYMENTPRODUCTIVITYFCTRUOM TYPE STRING,
PREPAYMENTPRODUCTIVEFCTRPERUOM TYPE STRING,
PREPAYMENTCREDITREGION TYPE STRING,
PREPAYMENTESTIMATEDPRODNQTY TYPE STRING,
PREPAYMENTESTIMATEDPRODNUOM TYPE STRING,
PREPAYMENTESTIMATEDPRODPERUOM TYPE STRING,
PREPAYMENTLIMITCREDITDATE TYPE STRING,
PREPAYMENTCMTMTPERCENT TYPE STRING,
PREPAYMENTPAYOUTPERCENT TYPE STRING,
PREPAYMENTCREDITCONTRACTFLAG TYPE STRING,
PREPAYMENTSTARTINTRSTDATETYPE TYPE STRING,
PREPAYMENTSTARTINTRSTDATE TYPE STRING,
PREPAYMENTSTOPINTRSTDATETYPE TYPE STRING,
PREPAYMENTSTOPINTRSTDATE TYPE STRING,
PREPAYMENTRESTRICTIONSTXT TYPE STRING,
PREPAYMENTCREDITHISTORYTXT TYPE STRING,
BPTAXNUMBER TYPE STRING,
ADDRESSNUMBER TYPE STRING,
PREPAYMENTAGRMTLINKSTATUS TYPE STRING,
PREPAYMENTAGRMTPOSTINGSTATUS TYPE STRING,
PREPAYMENTBARTERLINKSTATUS TYPE STRING,
PREPAYMENTAPPROVALDATETIME TYPE STRING,
COUNTRYCODE TYPE STRING,
COMPANYREGION TYPE STRING,
CUSTOMERCITYCODE TYPE STRING,
PREPAYMENTAGRMTRJCNREASON TYPE STRING,
PREPAYMENTREJECTIONTEXT TYPE STRING,
PREPAYMENTAGRMTSOURCE TYPE STRING,
CREATEDBYUSER TYPE STRING,
CREATIONDATETIME TYPE STRING,
LASTCHANGEDBYUSER TYPE STRING,
LASTCHANGEDATETIME TYPE STRING,END OF T_EKKO_STR. DATA: WA_IPPMGAGREEMENT_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_IPPMGAGREEMENT_STR-MANDT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENTUUID sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENTTYPE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENTCATEGORY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENTDESCRIPTION sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENTAMOUNT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENTCURRENCY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENTSTATUS sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENTCOMMODITY sy-vline
WA_IPPMGAGREEMENT_STR-COMPANYCODE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTECONOMICGROUP sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGRMTEXTCOMMENTTEXT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGRMTINTCOMMENTTEXT sy-vline
WA_IPPMGAGREEMENT_STR-PURCHASINGGROUP sy-vline
WA_IPPMGAGREEMENT_STR-PURCHASINGORGANIZATION sy-vline
WA_IPPMGAGREEMENT_STR-SALESORGANIZATION sy-vline
WA_IPPMGAGREEMENT_STR-DISTRIBUTIONCHANNEL sy-vline
WA_IPPMGAGREEMENT_STR-DIVISION sy-vline
WA_IPPMGAGREEMENT_STR-PLANT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGRMTCROPSEASON sy-vline
WA_IPPMGAGREEMENT_STR-COUNTERPARTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGRMTBPTYPE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPRINCIPALREDUCTION sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGRMTDUEDATE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGREEMENTRATING sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTLEASEDPLANTAREAQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPLANTINGAREAUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPRODTVPLANTAREAQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPRODTVPLANTAREAUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTOWNPLANTINGAREAQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTOWNPLANTINGAREAUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCREDITTOTALAREAQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCREDITTOTALAREAUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPLEDGEDAREAQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPLEDGEDAREAUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPLEDGEDPRODTVAREAQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPLEDGEDPRODTVAREAUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTOWNPLEDGEDAREAQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTOWNPLEDGEDAREAUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTTOTALPLEDGEDAREAQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTTOTALPLEDGEDAREAUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCOSTPERHECTAREAMT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCOSTHECTARECURRENCY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCOSTOFPLEDGEAMT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCOSTOFPLEDGECURRENCY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCREDITTOTALCOST sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTTOTALCOSTCURRENCY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPRODUCTIVITYFCTRQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPRODUCTIVITYFCTRUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPRODUCTIVEFCTRPERUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCREDITREGION sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTESTIMATEDPRODNQTY sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTESTIMATEDPRODNUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTESTIMATEDPRODPERUOM sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTLIMITCREDITDATE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCMTMTPERCENT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTPAYOUTPERCENT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCREDITCONTRACTFLAG sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTSTARTINTRSTDATETYPE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTSTARTINTRSTDATE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTSTOPINTRSTDATETYPE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTSTOPINTRSTDATE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTRESTRICTIONSTXT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTCREDITHISTORYTXT sy-vline
WA_IPPMGAGREEMENT_STR-BPTAXNUMBER sy-vline
WA_IPPMGAGREEMENT_STR-ADDRESSNUMBER sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGRMTLINKSTATUS sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGRMTPOSTINGSTATUS sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTBARTERLINKSTATUS sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAPPROVALDATETIME sy-vline
WA_IPPMGAGREEMENT_STR-COUNTRYCODE sy-vline
WA_IPPMGAGREEMENT_STR-COMPANYREGION sy-vline
WA_IPPMGAGREEMENT_STR-CUSTOMERCITYCODE sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGRMTRJCNREASON sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTREJECTIONTEXT sy-vline
WA_IPPMGAGREEMENT_STR-PREPAYMENTAGRMTSOURCE sy-vline
WA_IPPMGAGREEMENT_STR-CREATEDBYUSER sy-vline
WA_IPPMGAGREEMENT_STR-CREATIONDATETIME sy-vline
WA_IPPMGAGREEMENT_STR-LASTCHANGEDBYUSER sy-vline
WA_IPPMGAGREEMENT_STR-LASTCHANGEDATETIME sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.