<?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: passing internal table to SAPscript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867750#M49285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a way to trick it is to build in your report, at runtime, a standard text with your values from the internal table. Than, just include the text in your SAPscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUHAHA: this is 3 years old &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel BALTA on Mar 26, 2008 12:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2008 10:12:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-26T10:12:17Z</dc:date>
    <item>
      <title>passing internal table to SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867745#M49280</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;I have an internal table with varying no. of records. I need to pass this internal table from subroutine to SAPscript .Currently i don't have any option . Can anybody plz let me know alternatives for approaching this problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2005 14:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867745#M49280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-03T14:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: passing internal table to SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867746#M49281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First define the internal table and run a select query to fill the internal table with data.Assuming that Sapscript form has been activated by u.Create_Form Function where in u define the Sapscript form,Write_Form Function where in u will define the itab that need to be send to the Sapscript form provided u had defined an Element in the Sapscript form Like  (\e &amp;amp;Itab-fieldname&amp;amp;) and close_form function and now run the program the data in the itab is seen in the sapscript&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2005 04:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867746#M49281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-04T04:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: passing internal table to SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867747#M49282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ishant,&lt;/P&gt;&lt;P&gt;     Go to ur sapscript(se71) .&lt;/P&gt;&lt;P&gt;In the coding part declare the subroutine as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:PERFORM SUB1 IN PROGRAM ZSCRIPTSUBROUTINE123&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;VAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;VAR2&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provided the &amp;amp;VAR1&amp;amp; say 21 value is already declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are now going to receive the value(VAR2) from &lt;/P&gt;&lt;P&gt;the subroutine(SUB1) in program (ZSCRIPTSUBROUTINE123).&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to the program ZSCRIPTSUBROUTINE123 .&lt;/P&gt;&lt;P&gt;Here you create the subroutine (SUB1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SUB1  TABLES IN_PAR STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                  OUT_PAR STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Now &lt;/P&gt;&lt;P&gt;*IN_PAR has fields &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                NAME = 'VAR1'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                VALUE  = 21.           &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OUT_PAR has fields&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                NAME = 'VAR2'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                VALUE = empty(now we are going to update *                               this value)   &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*NOW WE ARE GOING TO READ TABLE IN_PAR.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR WITH KEY NAME = 'VAR1'. "VAR1 is USING                                              parameter&lt;/P&gt;&lt;P&gt; CHECK SY-SUBRC = 0. " Checking whether the read operation                        is a success&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ITEM = IN_PAR-VALUE. " provide ITEM is already declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;      FROM MAKT&lt;/P&gt;&lt;P&gt;      INTO CORRESPONDING FIELDS OF TABLE I_MAKT&lt;/P&gt;&lt;P&gt;      WHERE MATNR = ITEM ." ITEM = 21. &lt;/P&gt;&lt;P&gt;                          " I_MAKT is an internal table of                             type mara    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Now we are moving data to work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_MAKT INTO WA_MAKT. "WA_MAKT is a work area of                                  type I_MAKT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;***NOW WE ARE GOING TO READ TABLE OUT_PAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_PAR WITH KEY NAME = 'VAR2'.  "VAR2 is                                                    CHANGING                                                   parameter&lt;/P&gt;&lt;P&gt; CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; OUT_PAR-VALUE = WA_MAKT-MAKTX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******MODIFYING THE TABLE AFTER VALUE IS ALTERED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODIFY OUT_PAR INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now OUT_PAR has fields&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                NAME = 'VAR2'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                VALUE  = 'my material name for test 21'          &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;use can test the &amp;amp;VAR2&amp;amp; in your sapscript now which will contain 'my material name for test 21'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;P&gt;Thats how the value of an internal table in a subroutine is passed to a sapscript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2005 17:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867747#M49282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-09T17:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: passing internal table to SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867748#M49283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since i using SAP standard steering program i can't go with suresh's solution i.e calling write_form in loop .&lt;/P&gt;&lt;P&gt;Also, Shiva i got ur solution but its only useful if i have to return only one value. The internal table which i am using has more than 75 rows and can vary. I don't want to declare that no. of variables in SAPscript as its not feasible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share any other logic, if u know to pass internal table with varying no. of records to SAPScript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2005 10:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867748#M49283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-11T10:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: passing internal table to SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867749#M49284</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 then have two options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can either write your own driver program in which you can call a text element of your own.&lt;/P&gt;&lt;P&gt;eg. &lt;/P&gt;&lt;P&gt;Loop at itab. " this ids ur itab&lt;/P&gt;&lt;P&gt;call function 'write_element'&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can copy the existing driver program and modify it&lt;/P&gt;&lt;P&gt;in the above manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as i know i dont thinbk you can pass an internal table to sapscript layout.&lt;/P&gt;&lt;P&gt;Tell me if you get a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2005 05:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867749#M49284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-12T05:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: passing internal table to SAPscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867750#M49285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a way to trick it is to build in your report, at runtime, a standard text with your values from the internal table. Than, just include the text in your SAPscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUHAHA: this is 3 years old &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel BALTA on Mar 26, 2008 12:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-to-sapscript/m-p/867750#M49285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:12:17Z</dc:date>
    </item>
  </channel>
</rss>

