ABAP Select data from SAP table PNETPOSELEMKEY 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 PNETPOSELEMKEY 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 PNETPOSELEMKEY. 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 PNETPOSELEMKEY 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_PNETPOSELEMKEY TYPE STANDARD TABLE OF PNETPOSELEMKEY,
      WA_PNETPOSELEMKEY TYPE PNETPOSELEMKEY,
      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: <PNETPOSELEMKEY> TYPE PNETPOSELEMKEY.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM PNETPOSELEMKEY
*  INTO TABLE @DATA(IT_PNETPOSELEMKEY2).
*--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_PNETPOSELEMKEY INDEX 1 INTO DATA(WA_PNETPOSELEMKEY2).


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit ALPHA, internal->external for field DERIVATIVECONTRACTMATURITYCODE CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_PNETPOSELEMKEY-DERIVATIVECONTRACTMATURITYCODE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_PNETPOSELEMKEY-DERIVATIVECONTRACTMATURITYCODE.
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_PNETPOSELEMKEY_STR,
MANDT TYPE STRING,
PRICINGKEY TYPE STRING,
VERSION TYPE STRING,
PRICINGDOCUMENTITEM TYPE STRING,
CONDITIONTYPE TYPE STRING,
SUBCONDITIONTYPE TYPE STRING,
VERSSTOCKRECORDUUID 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,
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,
COMMODITY 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,
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,
MATURITYSELECTIONTYPE TYPE STRING,
QUOTATIONPERIODREFERENCEDATE 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,
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,
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,
REPORTINGYEAR TYPE STRING,
REPORTINGMONTH TYPE STRING,
ADJUSTEDREPORTINGDATE TYPE STRING,
ADJUSTEDREPORTINGYEAR TYPE STRING,
ADJUSTEDREPORTINGMONTH TYPE STRING,
UNREALIZEDQUANTITY TYPE STRING,
UNPRICEDUNREALIZEDQUANTITY TYPE STRING,
TODAYUNPRICEDUNREALIZEDQTY TYPE STRING,
TODAYPRICEDUNREALIZEDQTY TYPE STRING,
PRICEDCONTRACTQUANTITY TYPE STRING,
UNPRICEDCONTRACTQUANTITY TYPE STRING,
UNREALIZEDMARKETQUANTITY TYPE STRING,
ONHANDSTOCKQUANTITY TYPE STRING,
UNREALIZEDGOODSRECEIPTQUANTITY TYPE STRING,
UNREALIZEDGOODSISSUEQUANTITY TYPE STRING,
ONHANDSTOCKMARKETQUANTITY TYPE STRING,
UNREALIZEDGOODSRECEIPTMRKTQTY TYPE STRING,
UNREALIZEDGOODSISSUEMRKTQTY TYPE STRING,
INVENTORYCOMMODITYUNIT TYPE STRING,
GOODSMOVEMENTDOCUMENT TYPE STRING,
GOODSMOVEMENTDOCUMENTYEAR TYPE STRING,
APPLICATIONDOCUMENT TYPE STRING,
MATERIALDOCUMENT TYPE STRING,
LOADDATACAPTUREOBJECTID TYPE STRING,
LOADDATACAPTUREEVENTTYPE TYPE STRING,
BINHASERROR TYPE STRING,
PHYSICALCOMMODITYHASERROR TYPE STRING,
PHYSICALCOMMODITYERRORTEXT TYPE STRING,
DERIVATIVECONTRACTMATURITYCODE TYPE STRING,END OF T_EKKO_STR. DATA: WA_PNETPOSELEMKEY_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_PNETPOSELEMKEY_STR-MANDT sy-vline
WA_PNETPOSELEMKEY_STR-PRICINGKEY sy-vline
WA_PNETPOSELEMKEY_STR-VERSION sy-vline
WA_PNETPOSELEMKEY_STR-PRICINGDOCUMENTITEM sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTYPE sy-vline
WA_PNETPOSELEMKEY_STR-SUBCONDITIONTYPE sy-vline
WA_PNETPOSELEMKEY_STR-VERSSTOCKRECORDUUID sy-vline
WA_PNETPOSELEMKEY_STR-EVALUATIONDATE sy-vline
WA_PNETPOSELEMKEY_STR-QUOTATIONPERIODDATE sy-vline
WA_PNETPOSELEMKEY_STR-SUBSTITUTEPRICEQUOTATIONDATE sy-vline
WA_PNETPOSELEMKEY_STR-ENDOFDAYSNAPSHOTFROMDATE sy-vline
WA_PNETPOSELEMKEY_STR-ENDOFDAYSNAPSHOTTODATE sy-vline
WA_PNETPOSELEMKEY_STR-MTMDATASELECTIONTYPE sy-vline
WA_PNETPOSELEMKEY_STR-MTMDATASOURCETYPE sy-vline
WA_PNETPOSELEMKEY_STR-VALIDITYSTARTDATE sy-vline
WA_PNETPOSELEMKEY_STR-VALIDITYSTARTDATETIME sy-vline
WA_PNETPOSELEMKEY_STR-VALIDITYENDDATE sy-vline
WA_PNETPOSELEMKEY_STR-VALIDITYENDDATETIME sy-vline
WA_PNETPOSELEMKEY_STR-SOURCETRANSACTIONEVENTDATETIME sy-vline
WA_PNETPOSELEMKEY_STR-SOURCETRANSACEVENTENDDATETIME sy-vline
WA_PNETPOSELEMKEY_STR-ENDOFDAYSNAPSHOTDATETIMEFROM sy-vline
WA_PNETPOSELEMKEY_STR-ENDOFDAYSNAPSHOTDATETIMETO sy-vline
WA_PNETPOSELEMKEY_STR-ENDOFDAYSNAPSHOTDATE sy-vline
WA_PNETPOSELEMKEY_STR-MAXIMUMVERSION sy-vline
WA_PNETPOSELEMKEY_STR-PREVIOUSVERSION sy-vline
WA_PNETPOSELEMKEY_STR-COMPANYCODE sy-vline
WA_PNETPOSELEMKEY_STR-SALESORGANIZATION sy-vline
WA_PNETPOSELEMKEY_STR-DISTRIBUTIONCHANNEL sy-vline
WA_PNETPOSELEMKEY_STR-DIVISION sy-vline
WA_PNETPOSELEMKEY_STR-CREDITOR sy-vline
WA_PNETPOSELEMKEY_STR-SOLDTOPARTY sy-vline
WA_PNETPOSELEMKEY_STR-MATERIAL sy-vline
WA_PNETPOSELEMKEY_STR-COMMODITY sy-vline
WA_PNETPOSELEMKEY_STR-PHYSICALCOMMODITY sy-vline
WA_PNETPOSELEMKEY_STR-PLANT sy-vline
WA_PNETPOSELEMKEY_STR-STORAGELOCATION sy-vline
WA_PNETPOSELEMKEY_STR-BATCH sy-vline
WA_PNETPOSELEMKEY_STR-INCOTERMSCLASSIFICATION sy-vline
WA_PNETPOSELEMKEY_STR-INCOTERMSTRANSFERLOCATION sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONAPPLICATION sy-vline
WA_PNETPOSELEMKEY_STR-SOURCEDOCUMENT sy-vline
WA_PNETPOSELEMKEY_STR-SOURCEDOCUMENTBUSOBJTYPE sy-vline
WA_PNETPOSELEMKEY_STR-ORIGINREFERENCEDOCUMENT sy-vline
WA_PNETPOSELEMKEY_STR-ORIGINREFERENCEDOCUMENTITEM sy-vline
WA_PNETPOSELEMKEY_STR-ORIGINREFERENCEDOCBUSOBJTYPE sy-vline
WA_PNETPOSELEMKEY_STR-REFERENCEDOCUMENT sy-vline
WA_PNETPOSELEMKEY_STR-REFERENCEDOCUMENTITEM sy-vline
WA_PNETPOSELEMKEY_STR-REFERENCEDOCBUSOBJTYPE sy-vline
WA_PNETPOSELEMKEY_STR-DELIVERYDATE sy-vline
WA_PNETPOSELEMKEY_STR-EXPECTEDPAYMENTDATE sy-vline
WA_PNETPOSELEMKEY_STR-STATISTICSCURRENCY sy-vline
WA_PNETPOSELEMKEY_STR-DOCUMENTCURRENCY sy-vline
WA_PNETPOSELEMKEY_STR-PROFITCENTER sy-vline
WA_PNETPOSELEMKEY_STR-BUSINESSAREA sy-vline
WA_PNETPOSELEMKEY_STR-PURCHASINGORGANIZATION sy-vline
WA_PNETPOSELEMKEY_STR-MATERIALGROUP sy-vline
WA_PNETPOSELEMKEY_STR-ISINTERCOMPANYTRANSFER sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATE sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATECURRENCY sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATEQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATEQUANTITYUNIT sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMVALUE sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMVALUECURRENCY sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATEMKTCURRENCY sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMNAME sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMSTATUS sy-vline
WA_PNETPOSELEMKEY_STR-ROUNDINGDECIMALPLACES sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATEISROUNDED sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATENMRTR sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATEDNMNTR sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMEXTENSIONUSAGE sy-vline
WA_PNETPOSELEMKEY_STR-MATURITYSELECTIONTYPE sy-vline
WA_PNETPOSELEMKEY_STR-QUOTATIONPERIODREFERENCEDATE sy-vline
WA_PNETPOSELEMKEY_STR-QUOTATIONKEYTYPE sy-vline
WA_PNETPOSELEMKEY_STR-QUOTATIONDATELIST sy-vline
WA_PNETPOSELEMKEY_STR-QUOTATIONPERIODSTARTDATE sy-vline
WA_PNETPOSELEMKEY_STR-QUOTATIONPERIODENDDATE sy-vline
WA_PNETPOSELEMKEY_STR-DERIVATIVECONTRSPECIFICATION sy-vline
WA_PNETPOSELEMKEY_STR-MARKETIDENTIFIERCODE sy-vline
WA_PNETPOSELEMKEY_STR-MATURITYKEYDATE sy-vline
WA_PNETPOSELEMKEY_STR-BASISTYPE sy-vline
WA_PNETPOSELEMKEY_STR-BASISID sy-vline
WA_PNETPOSELEMKEY_STR-QUOTATIONGROUP sy-vline
WA_PNETPOSELEMKEY_STR-QUOTATIONGROUPCALCULATIONRULE sy-vline
WA_PNETPOSELEMKEY_STR-PRICINGSTATUS sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATEFIXATION sy-vline
WA_PNETPOSELEMKEY_STR-CNDNTERMRATEFIXATIONDATE sy-vline
WA_PNETPOSELEMKEY_STR-CNDNTERMRATEFIXATIONTIME sy-vline
WA_PNETPOSELEMKEY_STR-CNDNTERMEXCHRATEFIXATIONDATE sy-vline
WA_PNETPOSELEMKEY_STR-CNDNTERMEXCHRATEFIXATIONTIME sy-vline
WA_PNETPOSELEMKEY_STR-FIXEDEXCHRATEDATE sy-vline
WA_PNETPOSELEMKEY_STR-EXCHRATEMATURITYDATE sy-vline
WA_PNETPOSELEMKEY_STR-COMMODITYQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-COMMODITYUNIT sy-vline
WA_PNETPOSELEMKEY_STR-COMMODITYQUANTITYINTERMUNIT sy-vline
WA_PNETPOSELEMKEY_STR-QUANTITYSIGN sy-vline
WA_PNETPOSELEMKEY_STR-MTMCONDITIONGROUPCATEGORY sy-vline
WA_PNETPOSELEMKEY_STR-MTMCONDITIONGROUP sy-vline
WA_PNETPOSELEMKEY_STR-MTMCALCULATIONGROUP sy-vline
WA_PNETPOSELEMKEY_STR-MTMADJUSTMENTTYPE sy-vline
WA_PNETPOSELEMKEY_STR-MTMCALCGRPMARKETPRICECONDITION sy-vline
WA_PNETPOSELEMKEY_STR-DISPLAYVIEW sy-vline
WA_PNETPOSELEMKEY_STR-COMMODITYEXPOSUREQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-COMMODITYEXPOSUREUNIT sy-vline
WA_PNETPOSELEMKEY_STR-PRICEISREALIZED sy-vline
WA_PNETPOSELEMKEY_STR-CONTRPRICEEXPOSUREISEXECUTED sy-vline
WA_PNETPOSELEMKEY_STR-COMMODITYPRICEFIXATIONSTATUS sy-vline
WA_PNETPOSELEMKEY_STR-IMPLICITFIXATIONISRELEVANT sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMRATEISFIXED sy-vline
WA_PNETPOSELEMKEY_STR-MINIMUMCONDITIONTERMLIMITRATE sy-vline
WA_PNETPOSELEMKEY_STR-MAXIMUMCONDITIONTERMLIMITRATE sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMLIMITRATECURRENCY sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMLIMITRATEQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-CNDNTERMLIMITRATEQUANTITYUNIT sy-vline
WA_PNETPOSELEMKEY_STR-CONDITIONTERMLIMITRATESTATUS sy-vline
WA_PNETPOSELEMKEY_STR-TOTALQUOTATIONPERIODDAYS sy-vline
WA_PNETPOSELEMKEY_STR-FIRSTQUOTATIONPERIODDATE sy-vline
WA_PNETPOSELEMKEY_STR-LASTQUOTATIONPERIODDATE sy-vline
WA_PNETPOSELEMKEY_STR-QUANTITYPERDAY sy-vline
WA_PNETPOSELEMKEY_STR-ADJUSTEDQUANTITYPERDAY sy-vline
WA_PNETPOSELEMKEY_STR-REPORTINGDATE sy-vline
WA_PNETPOSELEMKEY_STR-REPORTINGYEAR sy-vline
WA_PNETPOSELEMKEY_STR-REPORTINGMONTH sy-vline
WA_PNETPOSELEMKEY_STR-ADJUSTEDREPORTINGDATE sy-vline
WA_PNETPOSELEMKEY_STR-ADJUSTEDREPORTINGYEAR sy-vline
WA_PNETPOSELEMKEY_STR-ADJUSTEDREPORTINGMONTH sy-vline
WA_PNETPOSELEMKEY_STR-UNREALIZEDQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-UNPRICEDUNREALIZEDQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-TODAYUNPRICEDUNREALIZEDQTY sy-vline
WA_PNETPOSELEMKEY_STR-TODAYPRICEDUNREALIZEDQTY sy-vline
WA_PNETPOSELEMKEY_STR-PRICEDCONTRACTQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-UNPRICEDCONTRACTQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-UNREALIZEDMARKETQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-ONHANDSTOCKQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-UNREALIZEDGOODSRECEIPTQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-UNREALIZEDGOODSISSUEQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-ONHANDSTOCKMARKETQUANTITY sy-vline
WA_PNETPOSELEMKEY_STR-UNREALIZEDGOODSRECEIPTMRKTQTY sy-vline
WA_PNETPOSELEMKEY_STR-UNREALIZEDGOODSISSUEMRKTQTY sy-vline
WA_PNETPOSELEMKEY_STR-INVENTORYCOMMODITYUNIT sy-vline
WA_PNETPOSELEMKEY_STR-GOODSMOVEMENTDOCUMENT sy-vline
WA_PNETPOSELEMKEY_STR-GOODSMOVEMENTDOCUMENTYEAR sy-vline
WA_PNETPOSELEMKEY_STR-APPLICATIONDOCUMENT sy-vline
WA_PNETPOSELEMKEY_STR-MATERIALDOCUMENT sy-vline
WA_PNETPOSELEMKEY_STR-LOADDATACAPTUREOBJECTID sy-vline
WA_PNETPOSELEMKEY_STR-LOADDATACAPTUREEVENTTYPE sy-vline
WA_PNETPOSELEMKEY_STR-BINHASERROR sy-vline
WA_PNETPOSELEMKEY_STR-PHYSICALCOMMODITYHASERROR sy-vline
WA_PNETPOSELEMKEY_STR-PHYSICALCOMMODITYERRORTEXT sy-vline
WA_PNETPOSELEMKEY_STR-DERIVATIVECONTRACTMATURITYCODE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.