<?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 Sap script - Perform returning multiple line items in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-returning-multiple-line-items/m-p/897051#M54467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am making payment advice layout which is called from the transaction f-58. I do not need to change the standard program, since all information is available in the standard layout, but I need to display line items in the new layout I am preparing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to display line items, I have copied the layout and used perform statement and called another se38 prog to retrieve line items. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is written in se71-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************&lt;/P&gt;&lt;P&gt;PERFORM FORM_GET_DATA IN PROGRAM ZFR005_PAYMENT_ADVICE&lt;/P&gt;&lt;P&gt;USING &amp;amp;VV_VBLNR&amp;amp; (this is my header data)&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_XBLNR1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BLDAT1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BELNR1&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine if I just have to retrieve one line item , but to get multiple , I need to declare multiple changing parameter and print it, because perform is called only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************&lt;/P&gt;&lt;P&gt;PERFORM FORM_GET_DATA IN PROGRAM ZFR005_PAYMENT_ADVICE&lt;/P&gt;&lt;P&gt;USING &amp;amp;VV_VBLNR&amp;amp; (this is my header data)&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_XBLNR1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BLDAT1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BELNR1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_XBLNR2&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BLDAT2&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BELNR2&amp;amp;&lt;/P&gt;&lt;P&gt;.................3&lt;/P&gt;&lt;P&gt;.................4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I call this perform multiple times so that I do not have to create multiple changing parameters to retrieve line items?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2005 06:47:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-03-21T06:47:45Z</dc:date>
    <item>
      <title>Sap script - Perform returning multiple line items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-returning-multiple-line-items/m-p/897051#M54467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am making payment advice layout which is called from the transaction f-58. I do not need to change the standard program, since all information is available in the standard layout, but I need to display line items in the new layout I am preparing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to display line items, I have copied the layout and used perform statement and called another se38 prog to retrieve line items. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is written in se71-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************&lt;/P&gt;&lt;P&gt;PERFORM FORM_GET_DATA IN PROGRAM ZFR005_PAYMENT_ADVICE&lt;/P&gt;&lt;P&gt;USING &amp;amp;VV_VBLNR&amp;amp; (this is my header data)&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_XBLNR1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BLDAT1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BELNR1&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine if I just have to retrieve one line item , but to get multiple , I need to declare multiple changing parameter and print it, because perform is called only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************&lt;/P&gt;&lt;P&gt;PERFORM FORM_GET_DATA IN PROGRAM ZFR005_PAYMENT_ADVICE&lt;/P&gt;&lt;P&gt;USING &amp;amp;VV_VBLNR&amp;amp; (this is my header data)&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_XBLNR1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BLDAT1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BELNR1&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_XBLNR2&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BLDAT2&amp;amp;&lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_BELNR2&amp;amp;&lt;/P&gt;&lt;P&gt;.................3&lt;/P&gt;&lt;P&gt;.................4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I call this perform multiple times so that I do not have to create multiple changing parameters to retrieve line items?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 06:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-returning-multiple-line-items/m-p/897051#M54467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-21T06:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sap script - Perform returning multiple line items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-returning-multiple-line-items/m-p/897052#M54468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SAPSCRIPT , we can write abap code if the tag column has '/:' command line....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, any looping operation can be done to retrieve the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the item no. also (in the 'USING' part), for which the details are required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 10:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-returning-multiple-line-items/m-p/897052#M54468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-21T10:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sap script - Perform returning multiple line items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-returning-multiple-line-items/m-p/897053#M54469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can try to find an Element (probably in MAIN window), which is being called from within the loop through the items in your print program. Once you have found it place your PERFORM into that Element of your sapscript and add line number as a parameter.&lt;/P&gt;&lt;P&gt;I believe that if your PERFORM is called only once then you placed it when the document header is being processed (and not items).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wojtek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 12:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-returning-multiple-line-items/m-p/897053#M54469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-21T12:05:04Z</dc:date>
    </item>
  </channel>
</rss>

