<?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 subroutine not working..... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-not-working/m-p/4129076#M987363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I have to import values of two fields &amp;amp;ABC&amp;amp;  and  &amp;amp;CDE referring to a field &amp;amp;VAR&amp;amp; in script as follow....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:FORM ZFORM IN PROGRAM ZPROG&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;VAR&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;ABC&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;CDE&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the value of &amp;amp;ABC&amp;amp; but unable to display the value of other field &amp;amp;CDE&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the value for second field when I see in debugging mode...&lt;/P&gt;&lt;P&gt;Because by the look...we have one In_tab(&amp;amp;VAR&amp;amp;)  and  two Out_Tabs(&amp;amp;ABC&amp;amp; and &amp;amp;CDE&amp;amp;) for ITCSY structure....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to read that second Out_Tab...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to pass the value to field &amp;amp;CDE&amp;amp;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2008 05:19:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-11T05:19:07Z</dc:date>
    <item>
      <title>subroutine not working.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-not-working/m-p/4129076#M987363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I have to import values of two fields &amp;amp;ABC&amp;amp;  and  &amp;amp;CDE referring to a field &amp;amp;VAR&amp;amp; in script as follow....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:FORM ZFORM IN PROGRAM ZPROG&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;VAR&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;ABC&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;CDE&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the value of &amp;amp;ABC&amp;amp; but unable to display the value of other field &amp;amp;CDE&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the value for second field when I see in debugging mode...&lt;/P&gt;&lt;P&gt;Because by the look...we have one In_tab(&amp;amp;VAR&amp;amp;)  and  two Out_Tabs(&amp;amp;ABC&amp;amp; and &amp;amp;CDE&amp;amp;) for ITCSY structure....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to read that second Out_Tab...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to pass the value to field &amp;amp;CDE&amp;amp;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 05:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-not-working/m-p/4129076#M987363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T05:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine not working.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-not-working/m-p/4129077#M987364</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;Check this sample program. May be it will help u to find the prob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition in the SAPscript form:&lt;/P&gt;&lt;P&gt;/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;PAGE&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;NEXTPAGE&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;BARCODE&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;/ &amp;amp;BARCODE&amp;amp;&lt;/P&gt;&lt;P&gt;Coding of the calling ABAP program:&lt;/P&gt;&lt;P&gt;REPORT QCJPERFO.&lt;/P&gt;&lt;P&gt;FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY&lt;/P&gt;&lt;P&gt;OUT_PAR STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;DATA: PAGNUM LIKE SY-TABIX, "page number &lt;/P&gt;&lt;P&gt;NEXTPAGE LIKE SY-TABIX. "number of next page&lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR WITH KEY u2018PAGEu2019.&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;PAGNUM = IN_PAR-VALUE.&lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR WITH KEY u2018NEXTPAGEu2019.&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;NEXTPAGE = IN_PAR-VALUE.&lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR WITH KEY u2018BARCODEu2019.&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;IF PAGNUM = 1.&lt;/P&gt;&lt;P&gt;OUT_PAR-VALUE = u2018|u2019. "First page &lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;OUT_PAR-VALUE = u2018||u2019. "Next page &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF NEXTPAGE = 0.&lt;/P&gt;&lt;P&gt;OUT_PAR-VALUE+2 = u2018Lu2019. "Flag: last page&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY OUT_PAR INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 05:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-not-working/m-p/4129077#M987364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T05:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine not working.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-not-working/m-p/4129078#M987365</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;may &amp;amp;CDE&amp;amp;  in the subroutine you might have declared as other type for manipulation .what you can do is after performing all the operations you transfer the result to a character field and then you pass the value to the form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 05:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-not-working/m-p/4129078#M987365</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-07-11T05:26:40Z</dc:date>
    </item>
  </channel>
</rss>

