<?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: Problem in Scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039981#M1500548</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;To add a line to the internal table, use APPEND statement. MODIFY will change the existing record of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jun 2010 13:39:04 GMT</pubDate>
    <dc:creator>jayesh_gupta</dc:creator>
    <dc:date>2010-06-07T13:39:04Z</dc:date>
    <item>
      <title>Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039979#M1500546</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  am adding  two condition price  in scripts forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my driver program there is routine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_objid TABLES in_tab  STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;                      out_tab STRUCTURE itcsy.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   In the out_tab  there r 3 rows,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  i want to add one more line in out_tab.&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;  READ TABLE out_tab WITH KEY name = text-T71.   "NETPR2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CHECK sy-subrc = c_zero.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;  out_tab-value = lv_kwert1.&lt;/P&gt;&lt;P&gt;  MODIFY out_tab INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;  clear lv_kwert1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But not able to any one..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines from now on.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Jun 7, 2010 4:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 13:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039979#M1500546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T13:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039980#M1500547</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;you must use append statement....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if sy-subrc is initial.
out_tab-value = lv_kwert1.
MODIFY out_tab INDEX sy-tabix.  ------&amp;gt;you cannot use sy-tabix....if is 1????
                                       you replace the 1st position
                                       and not append.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;                                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace with&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if sy-subrc is initial.
out_tab-value = lv_kwert1.
APPEND out_tab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Menegazzo Marco on Jun 7, 2010 3:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 13:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039980#M1500547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T13:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039981#M1500548</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;To add a line to the internal table, use APPEND statement. MODIFY will change the existing record of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 13:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039981#M1500548</guid>
      <dc:creator>jayesh_gupta</dc:creator>
      <dc:date>2010-06-07T13:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039982#M1500549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out_tab has name &amp;amp; value field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want know how can we add one more name for eg :NETPR2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the NETPR2 is there in out_tab then only we can read it &amp;amp; append or modify its value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 13:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039982#M1500549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T13:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039983#M1500550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jayesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u means to say that we use it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out_tab-name = 'NETPR2'.&lt;/P&gt;&lt;P&gt;append out_tab.&lt;/P&gt;&lt;P&gt;READ TABLE out_tab WITH KEY name = text-T71.   "NETPR2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CHECK sy-subrc = c_zero.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;  out_tab-value = lv_kwert1.&lt;/P&gt;&lt;P&gt;  MODIFY out_tab INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;  clear lv_kwert1.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; is it correct way..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 13:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039983#M1500550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039984#M1500551</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;READ TABLE out_tab WITH KEY name = text-T71. "NETPR2&lt;/P&gt;&lt;P&gt;you check if on out_tab there's the name NETPR2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;if you find&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out_tab-value = lv_kwert1.&lt;/P&gt;&lt;P&gt;change the value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND out_tab&lt;/P&gt;&lt;P&gt;and add the the record with the the same name but a different value.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this what you want??or you want simply change the value of the record read?&lt;/P&gt;&lt;P&gt;couse if wonna change the value you just use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODIFY out_tab.

without sy-tabix...cose you have a itable with header line...
and sy-tabix in this moment not have the correct index
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 13:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039984#M1500551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T13:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039985#M1500552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this is not the correct way.&lt;/P&gt;&lt;P&gt;when you creating (using append staement) why don't you fill the value at same time.&lt;/P&gt;&lt;P&gt;no need to do modify .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashutosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 14:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039985#M1500552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039986#M1500553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a line in the SAPScript PERFORM routine (you need one more CHANGING parameter).  The changing names are positional, so if you have 2 CHANGING parameters, you put them in the OUT_TAB in the same sequence (index no.) as they appear in your PERFORM routine in the SAPScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your performed subroutine, you will receive one row in OUT_TAB for each CHANGING parameter named in the PERFORM routine, and one row in  IN_TAB for each USING parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 16:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039986#M1500553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T16:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039987#M1500554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Open your Sapscript and look for the PERFORM statement in the Main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search for &lt;STRONG&gt;PERFORM get_objid&lt;/STRONG&gt; in the MAIN window, then add the &lt;STRONG&gt;NETPR2&lt;/STRONG&gt; in &lt;STRONG&gt;CHANGING&lt;/STRONG&gt;, then you can use that in the FORM statement as third line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/: PERFORM get_objid IN PROGRAM ZABC
/: USING &amp;amp;AAA&amp;amp;
/: USING &amp;amp;BBB&amp;amp;
/: CHANGING &amp;amp;NETPR0&amp;amp;
/: CHANGING &amp;amp;NETPR1&amp;amp;
/: CHANGING &amp;amp;NETPR2&amp;amp;          " Add this statement in the Sapscript Main window
/: ENDPERFORM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 16:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039987#M1500554</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2010-06-07T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039988#M1500555</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;Bala , marco ,breakpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for helpfull answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 05:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-scripts/m-p/7039988#M1500555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-08T05:26:10Z</dc:date>
    </item>
  </channel>
</rss>

