<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Parameter ID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/3056293#M723890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this can you can't use the SET PARAMETER ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to fatch records from VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT LINE-SELECTION.
* SET PARAMETER ID 'AUN' FIELD ITAB-VBELN.
* GET CURSOR FIELD FLD VALUE VAL.
IF FLD = 'ITAB-VBELN'.
WINDOW STARTING AT 20 20 ENDING AT 80 80.
SET PF-STATUS 'ABC'.
select matnr netpr werks kbmeng 
into table it_vbap
from vbap
where vbeln = itab-vbeln.
loop at it_vbap
WRITE:/1(10) IT_VBAP-MATNR, 12'!', 13(10) IT_VBAP-NETPR, 24'!', 25(12) IT_VBAP-WERKS, 38'!', 39(8) IT_VBAP-KBMENG, 48'!' .
endloop.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID  is used when you want to set some value for perticular transaction dynmically and then want to call that transaction code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PARAMETER ID 'AUN' FIELD ITAB-VBELN.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2007 16:43:54 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-20T16:43:54Z</dc:date>
    <item>
      <title>Parameter ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/3056292#M723889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECT VBELN BSARK VTWEG SPART VDATU FROM VBAK INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE
 ERDAT IN S_ERDAT
 AND VKORG IN S_VKORG
 AND VTWEG IN S_VTWEG
 AND BSARK IN S_BSARK
 AND SPART IN S_SPART.


AT LINE-SELECTION.
SET PARAMETER ID 'AUN' FIELD ITAB-VBELN.
GET CURSOR FIELD FLD VALUE VAL.
IF FLD = 'ITAB-VBELN'.
WINDOW STARTING AT 20 20 ENDING AT 80 80.
SET PF-STATUS 'ABC'.
WRITE:/1(10) VBAP-MATNR, 12'!', 13(10) VBAP-NETPR, 24'!', 25(12) VBAP-WERKS, 38'!', 39(8) VBAP-KBMENG, 48'!' .
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a particular sales order number,I want to display the line items for that particular order from vbap for which I have done the coding above,but it doesn't works.Plz suggest the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 16:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/3056292#M723889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T16:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/3056293#M723890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this can you can't use the SET PARAMETER ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to fatch records from VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT LINE-SELECTION.
* SET PARAMETER ID 'AUN' FIELD ITAB-VBELN.
* GET CURSOR FIELD FLD VALUE VAL.
IF FLD = 'ITAB-VBELN'.
WINDOW STARTING AT 20 20 ENDING AT 80 80.
SET PF-STATUS 'ABC'.
select matnr netpr werks kbmeng 
into table it_vbap
from vbap
where vbeln = itab-vbeln.
loop at it_vbap
WRITE:/1(10) IT_VBAP-MATNR, 12'!', 13(10) IT_VBAP-NETPR, 24'!', 25(12) IT_VBAP-WERKS, 38'!', 39(8) IT_VBAP-KBMENG, 48'!' .
endloop.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID  is used when you want to set some value for perticular transaction dynmically and then want to call that transaction code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PARAMETER ID 'AUN' FIELD ITAB-VBELN.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 16:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/3056293#M723890</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-20T16:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/3056294#M723891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where in your coding are you accessing the VBAP table containing the SO line items? You are issuing a WRITE for a number of VBAP fields but I can't see the SELECT from VBAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 16:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-id/m-p/3056294#M723891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T16:46:55Z</dc:date>
    </item>
  </channel>
</rss>

