ABAP Select data from SAP table PVLOGPRD 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 PVLOGPRD 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 PVLOGPRD. 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 PVLOGPRD 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_PVLOGPRD TYPE STANDARD TABLE OF PVLOGPRD,
      WA_PVLOGPRD TYPE PVLOGPRD,
      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: <PVLOGPRD> TYPE PVLOGPRD.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM PVLOGPRD
*  INTO TABLE @DATA(IT_PVLOGPRD2).
*--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_PVLOGPRD INDEX 1 INTO DATA(WA_PVLOGPRD2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_PVLOGPRD ASSIGNING <PVLOGPRD>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<PVLOGPRD>-MANDT = 1.
<PVLOGPRD>-PRICINGKEY = 1.
<PVLOGPRD>-VERSION = 1.
<PVLOGPRD>-PRICINGDOCUMENTITEM = 1.
<PVLOGPRD>-CONDITIONTYPE = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_PVLOGPRD-SUBCONDITIONTYPE, sy-vline,
WA_PVLOGPRD-EVALUATIONDATE, sy-vline,
WA_PVLOGPRD-QUOTATIONPERIODDATE, sy-vline,
WA_PVLOGPRD-SUBSTITUTEPRICEQUOTATIONDATE, sy-vline,
WA_PVLOGPRD-ENDOFDAYSNAPSHOTFROMDATE, sy-vline,
WA_PVLOGPRD-ENDOFDAYSNAPSHOTTODATE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_PVLOGPRD 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_PVLOGPRD 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_PVLOGPRD INTO WA_PVLOGPRD. *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 CREDITOR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_PVLOGPRD-CREDITOR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PVLOGPRD-CREDITOR.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

*Conversion exit CUNIT, internal->external for field CNDNTERMLIMITRATEQUANTITYUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_PVLOGPRD-CNDNTERMLIMITRATEQUANTITYUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PVLOGPRD-CNDNTERMLIMITRATEQUANTITYUNIT.
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_PVLOGPRD_STR,
MANDT TYPE STRING,
PRICINGKEY TYPE STRING,
VERSION TYPE STRING,
PRICINGDOCUMENTITEM TYPE STRING,
CONDITIONTYPE TYPE STRING,
SUBCONDITIONTYPE TYPE STRING,
EVALUATIONDATE TYPE STRING,
QUOTATIONPERIODDATE TYPE STRING,
SUBSTITUTEPRICEQUOTATIONDATE TYPE STRING,
ENDOFDAYSNAPSHOTFROMDATE TYPE STRING,
ENDOFDAYSNAPSHOTTODATE TYPE STRING,
MTMDATASELECTIONTYPE TYPE STRING,
MTMDATASOURCETYPE TYPE STRING,
VALIDITYSTARTDATE TYPE STRING,
VALIDITYSTARTDATETIME TYPE STRING,
VALIDITYENDDATE TYPE STRING,
VALIDITYENDDATETIME TYPE STRING,
SOURCETRANSACTIONEVENTDATETIME TYPE STRING,
SOURCETRANSACEVENTENDDATETIME TYPE STRING,
ENDOFDAYSNAPSHOTDATETIMEFROM TYPE STRING,
ENDOFDAYSNAPSHOTDATETIMETO TYPE STRING,
ENDOFDAYSNAPSHOTDATE TYPE STRING,
ENDOFDAYBUSINESSENTITYKEY TYPE STRING,
MAXIMUMVERSION TYPE STRING,
PREVIOUSVERSION TYPE STRING,
COMPANYCODE TYPE STRING,
SALESORGANIZATION TYPE STRING,
DISTRIBUTIONCHANNEL TYPE STRING,
DIVISION TYPE STRING,
CREDITOR TYPE STRING,
SOLDTOPARTY TYPE STRING,
MATERIAL TYPE STRING,
PHYSICALCOMMODITY TYPE STRING,
PLANT TYPE STRING,
STORAGELOCATION TYPE STRING,
BATCH TYPE STRING,
INCOTERMSCLASSIFICATION TYPE STRING,
INCOTERMSTRANSFERLOCATION TYPE STRING,
CONDITIONAPPLICATION TYPE STRING,
SOURCEDOCUMENT TYPE STRING,
SOURCEDOCUMENTBUSOBJTYPE TYPE STRING,
ORIGINREFERENCEDOCUMENT TYPE STRING,
ORIGINREFERENCEDOCUMENTITEM TYPE STRING,
ORIGINREFERENCEDOCBUSOBJTYPE TYPE STRING,
REFERENCEDOCUMENT TYPE STRING,
REFERENCEDOCUMENTITEM TYPE STRING,
REFERENCEDOCBUSOBJTYPE TYPE STRING,
DELIVERYDATE TYPE STRING,
EXPECTEDPAYMENTDATE TYPE STRING,
STATISTICSCURRENCY TYPE STRING,
DOCUMENTCURRENCY TYPE STRING,
PROFITCENTER TYPE STRING,
BUSINESSAREA TYPE STRING,
PURCHASINGORGANIZATION TYPE STRING,
MATERIALGROUP TYPE STRING,
ISINTERCOMPANYTRANSFER TYPE STRING,
QUOTATIONPRICETYPE TYPE STRING,
CONDITIONTERMRATE TYPE STRING,
CONDITIONTERMRATECURRENCY TYPE STRING,
CONDITIONTERMRATEQUANTITY TYPE STRING,
CONDITIONTERMRATEQUANTITYUNIT TYPE STRING,
CONDITIONTERMVALUE TYPE STRING,
CONDITIONTERMVALUECURRENCY TYPE STRING,
CONDITIONTERMRATEMKTCURRENCY TYPE STRING,
CONDITIONTERMNAME TYPE STRING,
CONDITIONTERMSTATUS TYPE STRING,
ROUNDINGDECIMALPLACES TYPE STRING,
CONDITIONTERMRATEISROUNDED TYPE STRING,
CONDITIONTERMRATENMRTR TYPE STRING,
CONDITIONTERMRATEDNMNTR TYPE STRING,
CONDITIONTERMEXTENSIONUSAGE TYPE STRING,
CMMDTYFORWARDINDEXTIMING TYPE STRING,
MATURITYSELECTIONTYPE TYPE STRING,
QUOTATIONPERIODREFERENCEDATE TYPE STRING,
COMMODITYCURVE TYPE STRING,
QUOTATIONKEYTYPE TYPE STRING,
QUOTATIONDATELIST TYPE STRING,
QUOTATIONPERIODSTARTDATE TYPE STRING,
QUOTATIONPERIODENDDATE TYPE STRING,
DERIVATIVECONTRSPECIFICATION TYPE STRING,
MARKETIDENTIFIERCODE TYPE STRING,
MATURITYKEYDATE TYPE STRING,
BASISTYPE TYPE STRING,
BASISID TYPE STRING,
QUOTATIONGROUP TYPE STRING,
QUOTATIONGROUPCALCULATIONRULE TYPE STRING,
PRICINGSTATUS TYPE STRING,
CONDITIONTERMRATEFIXATION TYPE STRING,
CNDNTERMRATEFIXATIONDATE TYPE STRING,
CNDNTERMRATEFIXATIONTIME TYPE STRING,
CNDNTERMEXCHRATEFIXATIONDATE TYPE STRING,
CNDNTERMEXCHRATEFIXATIONTIME TYPE STRING,
FIXEDEXCHRATEDATE TYPE STRING,
EXCHRATEMATURITYDATE TYPE STRING,
MATURITYSELECTIONROUTINE TYPE STRING,
DCSPERIODTYPE TYPE STRING,
COMMODITYQUANTITY TYPE STRING,
COMMODITYUNIT TYPE STRING,
COMMODITYQUANTITYINTERMUNIT TYPE STRING,
QUANTITYSIGN TYPE STRING,
MTMCONDITIONGROUPCATEGORY TYPE STRING,
MTMCONDITIONGROUP TYPE STRING,
MTMCALCULATIONGROUP TYPE STRING,
MTMADJUSTMENTTYPE TYPE STRING,
MTMCALCGRPMARKETPRICECONDITION TYPE STRING,
DISPLAYVIEW TYPE STRING,
COMMODITYEXPOSUREQUANTITY TYPE STRING,
COMMODITYEXPOSUREUNIT TYPE STRING,
DCSREPORTINGDATE TYPE STRING,
PRICEISREALIZED TYPE STRING,
CONTRPRICEEXPOSUREISEXECUTED TYPE STRING,
COMMODITYPRICEFIXATIONSTATUS TYPE STRING,
IMPLICITFIXATIONISRELEVANT TYPE STRING,
CONDITIONTERMRATEISFIXED TYPE STRING,
MINIMUMCONDITIONTERMLIMITRATE TYPE STRING,
MAXIMUMCONDITIONTERMLIMITRATE TYPE STRING,
CONDITIONTERMLIMITRATECURRENCY TYPE STRING,
CONDITIONTERMLIMITRATEQUANTITY TYPE STRING,
CNDNTERMLIMITRATEQUANTITYUNIT TYPE STRING,
CONDITIONTERMLIMITRATESTATUS TYPE STRING,
TOTALQUOTATIONPERIODDAYS TYPE STRING,
FIRSTQUOTATIONPERIODDATE TYPE STRING,
LASTQUOTATIONPERIODDATE TYPE STRING,
QUANTITYPERDAY TYPE STRING,
ADJUSTEDQUANTITYPERDAY TYPE STRING,
REPORTINGDATE TYPE STRING,
TIMETOMATURITY TYPE STRING,
PRICEDDAYS TYPE STRING,
UNPRICEDDAYS TYPE STRING,
TODAYDAYS TYPE STRING,END OF T_EKKO_STR. DATA: WA_PVLOGPRD_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_PVLOGPRD_STR-MANDT sy-vline
WA_PVLOGPRD_STR-PRICINGKEY sy-vline
WA_PVLOGPRD_STR-VERSION sy-vline
WA_PVLOGPRD_STR-PRICINGDOCUMENTITEM sy-vline
WA_PVLOGPRD_STR-CONDITIONTYPE sy-vline
WA_PVLOGPRD_STR-SUBCONDITIONTYPE sy-vline
WA_PVLOGPRD_STR-EVALUATIONDATE sy-vline
WA_PVLOGPRD_STR-QUOTATIONPERIODDATE sy-vline
WA_PVLOGPRD_STR-SUBSTITUTEPRICEQUOTATIONDATE sy-vline
WA_PVLOGPRD_STR-ENDOFDAYSNAPSHOTFROMDATE sy-vline
WA_PVLOGPRD_STR-ENDOFDAYSNAPSHOTTODATE sy-vline
WA_PVLOGPRD_STR-MTMDATASELECTIONTYPE sy-vline
WA_PVLOGPRD_STR-MTMDATASOURCETYPE sy-vline
WA_PVLOGPRD_STR-VALIDITYSTARTDATE sy-vline
WA_PVLOGPRD_STR-VALIDITYSTARTDATETIME sy-vline
WA_PVLOGPRD_STR-VALIDITYENDDATE sy-vline
WA_PVLOGPRD_STR-VALIDITYENDDATETIME sy-vline
WA_PVLOGPRD_STR-SOURCETRANSACTIONEVENTDATETIME sy-vline
WA_PVLOGPRD_STR-SOURCETRANSACEVENTENDDATETIME sy-vline
WA_PVLOGPRD_STR-ENDOFDAYSNAPSHOTDATETIMEFROM sy-vline
WA_PVLOGPRD_STR-ENDOFDAYSNAPSHOTDATETIMETO sy-vline
WA_PVLOGPRD_STR-ENDOFDAYSNAPSHOTDATE sy-vline
WA_PVLOGPRD_STR-ENDOFDAYBUSINESSENTITYKEY sy-vline
WA_PVLOGPRD_STR-MAXIMUMVERSION sy-vline
WA_PVLOGPRD_STR-PREVIOUSVERSION sy-vline
WA_PVLOGPRD_STR-COMPANYCODE sy-vline
WA_PVLOGPRD_STR-SALESORGANIZATION sy-vline
WA_PVLOGPRD_STR-DISTRIBUTIONCHANNEL sy-vline
WA_PVLOGPRD_STR-DIVISION sy-vline
WA_PVLOGPRD_STR-CREDITOR sy-vline
WA_PVLOGPRD_STR-SOLDTOPARTY sy-vline
WA_PVLOGPRD_STR-MATERIAL sy-vline
WA_PVLOGPRD_STR-PHYSICALCOMMODITY sy-vline
WA_PVLOGPRD_STR-PLANT sy-vline
WA_PVLOGPRD_STR-STORAGELOCATION sy-vline
WA_PVLOGPRD_STR-BATCH sy-vline
WA_PVLOGPRD_STR-INCOTERMSCLASSIFICATION sy-vline
WA_PVLOGPRD_STR-INCOTERMSTRANSFERLOCATION sy-vline
WA_PVLOGPRD_STR-CONDITIONAPPLICATION sy-vline
WA_PVLOGPRD_STR-SOURCEDOCUMENT sy-vline
WA_PVLOGPRD_STR-SOURCEDOCUMENTBUSOBJTYPE sy-vline
WA_PVLOGPRD_STR-ORIGINREFERENCEDOCUMENT sy-vline
WA_PVLOGPRD_STR-ORIGINREFERENCEDOCUMENTITEM sy-vline
WA_PVLOGPRD_STR-ORIGINREFERENCEDOCBUSOBJTYPE sy-vline
WA_PVLOGPRD_STR-REFERENCEDOCUMENT sy-vline
WA_PVLOGPRD_STR-REFERENCEDOCUMENTITEM sy-vline
WA_PVLOGPRD_STR-REFERENCEDOCBUSOBJTYPE sy-vline
WA_PVLOGPRD_STR-DELIVERYDATE sy-vline
WA_PVLOGPRD_STR-EXPECTEDPAYMENTDATE sy-vline
WA_PVLOGPRD_STR-STATISTICSCURRENCY sy-vline
WA_PVLOGPRD_STR-DOCUMENTCURRENCY sy-vline
WA_PVLOGPRD_STR-PROFITCENTER sy-vline
WA_PVLOGPRD_STR-BUSINESSAREA sy-vline
WA_PVLOGPRD_STR-PURCHASINGORGANIZATION sy-vline
WA_PVLOGPRD_STR-MATERIALGROUP sy-vline
WA_PVLOGPRD_STR-ISINTERCOMPANYTRANSFER sy-vline
WA_PVLOGPRD_STR-QUOTATIONPRICETYPE sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATE sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATECURRENCY sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATEQUANTITY sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATEQUANTITYUNIT sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMVALUE sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMVALUECURRENCY sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATEMKTCURRENCY sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMNAME sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMSTATUS sy-vline
WA_PVLOGPRD_STR-ROUNDINGDECIMALPLACES sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATEISROUNDED sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATENMRTR sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATEDNMNTR sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMEXTENSIONUSAGE sy-vline
WA_PVLOGPRD_STR-CMMDTYFORWARDINDEXTIMING sy-vline
WA_PVLOGPRD_STR-MATURITYSELECTIONTYPE sy-vline
WA_PVLOGPRD_STR-QUOTATIONPERIODREFERENCEDATE sy-vline
WA_PVLOGPRD_STR-COMMODITYCURVE sy-vline
WA_PVLOGPRD_STR-QUOTATIONKEYTYPE sy-vline
WA_PVLOGPRD_STR-QUOTATIONDATELIST sy-vline
WA_PVLOGPRD_STR-QUOTATIONPERIODSTARTDATE sy-vline
WA_PVLOGPRD_STR-QUOTATIONPERIODENDDATE sy-vline
WA_PVLOGPRD_STR-DERIVATIVECONTRSPECIFICATION sy-vline
WA_PVLOGPRD_STR-MARKETIDENTIFIERCODE sy-vline
WA_PVLOGPRD_STR-MATURITYKEYDATE sy-vline
WA_PVLOGPRD_STR-BASISTYPE sy-vline
WA_PVLOGPRD_STR-BASISID sy-vline
WA_PVLOGPRD_STR-QUOTATIONGROUP sy-vline
WA_PVLOGPRD_STR-QUOTATIONGROUPCALCULATIONRULE sy-vline
WA_PVLOGPRD_STR-PRICINGSTATUS sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATEFIXATION sy-vline
WA_PVLOGPRD_STR-CNDNTERMRATEFIXATIONDATE sy-vline
WA_PVLOGPRD_STR-CNDNTERMRATEFIXATIONTIME sy-vline
WA_PVLOGPRD_STR-CNDNTERMEXCHRATEFIXATIONDATE sy-vline
WA_PVLOGPRD_STR-CNDNTERMEXCHRATEFIXATIONTIME sy-vline
WA_PVLOGPRD_STR-FIXEDEXCHRATEDATE sy-vline
WA_PVLOGPRD_STR-EXCHRATEMATURITYDATE sy-vline
WA_PVLOGPRD_STR-MATURITYSELECTIONROUTINE sy-vline
WA_PVLOGPRD_STR-DCSPERIODTYPE sy-vline
WA_PVLOGPRD_STR-COMMODITYQUANTITY sy-vline
WA_PVLOGPRD_STR-COMMODITYUNIT sy-vline
WA_PVLOGPRD_STR-COMMODITYQUANTITYINTERMUNIT sy-vline
WA_PVLOGPRD_STR-QUANTITYSIGN sy-vline
WA_PVLOGPRD_STR-MTMCONDITIONGROUPCATEGORY sy-vline
WA_PVLOGPRD_STR-MTMCONDITIONGROUP sy-vline
WA_PVLOGPRD_STR-MTMCALCULATIONGROUP sy-vline
WA_PVLOGPRD_STR-MTMADJUSTMENTTYPE sy-vline
WA_PVLOGPRD_STR-MTMCALCGRPMARKETPRICECONDITION sy-vline
WA_PVLOGPRD_STR-DISPLAYVIEW sy-vline
WA_PVLOGPRD_STR-COMMODITYEXPOSUREQUANTITY sy-vline
WA_PVLOGPRD_STR-COMMODITYEXPOSUREUNIT sy-vline
WA_PVLOGPRD_STR-DCSREPORTINGDATE sy-vline
WA_PVLOGPRD_STR-PRICEISREALIZED sy-vline
WA_PVLOGPRD_STR-CONTRPRICEEXPOSUREISEXECUTED sy-vline
WA_PVLOGPRD_STR-COMMODITYPRICEFIXATIONSTATUS sy-vline
WA_PVLOGPRD_STR-IMPLICITFIXATIONISRELEVANT sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMRATEISFIXED sy-vline
WA_PVLOGPRD_STR-MINIMUMCONDITIONTERMLIMITRATE sy-vline
WA_PVLOGPRD_STR-MAXIMUMCONDITIONTERMLIMITRATE sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMLIMITRATECURRENCY sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMLIMITRATEQUANTITY sy-vline
WA_PVLOGPRD_STR-CNDNTERMLIMITRATEQUANTITYUNIT sy-vline
WA_PVLOGPRD_STR-CONDITIONTERMLIMITRATESTATUS sy-vline
WA_PVLOGPRD_STR-TOTALQUOTATIONPERIODDAYS sy-vline
WA_PVLOGPRD_STR-FIRSTQUOTATIONPERIODDATE sy-vline
WA_PVLOGPRD_STR-LASTQUOTATIONPERIODDATE sy-vline
WA_PVLOGPRD_STR-QUANTITYPERDAY sy-vline
WA_PVLOGPRD_STR-ADJUSTEDQUANTITYPERDAY sy-vline
WA_PVLOGPRD_STR-REPORTINGDATE sy-vline
WA_PVLOGPRD_STR-TIMETOMATURITY sy-vline
WA_PVLOGPRD_STR-PRICEDDAYS sy-vline
WA_PVLOGPRD_STR-UNPRICEDDAYS sy-vline
WA_PVLOGPRD_STR-TODAYDAYS sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.