<?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 script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/3639745#M876536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to retrive the name1 from lfa1 table using based on this condition....then i need to print that name in script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(LFA1-NAME1 &lt;/P&gt;&lt;P&gt;LIFNR = MARA-MFRNR &lt;/P&gt;&lt;P&gt;MATNR = EKPO-MATNR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am using subrotines using ITCSY strucure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please let me know how i can write a program for that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points will provide..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Apr 2008 08:16:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-19T08:16:29Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/3639745#M876536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to retrive the name1 from lfa1 table using based on this condition....then i need to print that name in script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(LFA1-NAME1 &lt;/P&gt;&lt;P&gt;LIFNR = MARA-MFRNR &lt;/P&gt;&lt;P&gt;MATNR = EKPO-MATNR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am using subrotines using ITCSY strucure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please let me know how i can write a program for that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points will provide..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2008 08:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/3639745#M876536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-19T08:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/3639746#M876537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this praveen&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      To call ABAP subroutines from within  a form we use the   &lt;/P&gt;&lt;P&gt;     PERFORM... IN PROGRAM ... statement , the advantage of     &lt;/P&gt;&lt;P&gt;     using it  is that the print program is not required to cahnge and we  &lt;/P&gt;&lt;P&gt;     can get the new data from the subroutine which is placed in a Z   &lt;/P&gt;&lt;P&gt;     report . To pass and get the values from th subroutine the   &lt;/P&gt;&lt;P&gt;     parameters are passed which are of  type structure ITCSY.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     e.g. /:PERFORM get_date IN PROGRAM zreport &lt;/P&gt;&lt;P&gt;            /:USING &amp;amp;SALESORDER&amp;amp;&lt;/P&gt;&lt;P&gt;            /:CHANGING &amp;amp;S_DATE&amp;amp;&lt;/P&gt;&lt;P&gt;            /:ENDPERFORM   &lt;/P&gt;&lt;P&gt;            The date &amp;amp;S_DATE&amp;amp; ....&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;           The  ABAP Code would be&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;           REPORT zreport.&lt;/P&gt;&lt;P&gt;           TABLES ztab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; FORM get_date TABLES in_tab STRUCTURE ITCSY out_tab &lt;/P&gt;&lt;P&gt;           STRUCTURE ITCSY .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;           READ TABLE in_tab INDEX 1.&lt;/P&gt;&lt;P&gt; SELECT some_date FROM ztab WHERE salesorder = in_tab-value.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;           IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;           READ TABLE out-tab INDEX 1.&lt;/P&gt;&lt;P&gt;           MOVE ztab-somedate TO out_tab-value&lt;/P&gt;&lt;P&gt;           MODIFY out_tab INDEX 1.&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;           ENDFORM.&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;            In the above code USING is used to pass the value to the &lt;/P&gt;&lt;P&gt;          subroutine while changing is used to recieve the value from the  subroutine ,for further paramters we can use either USING or &lt;/P&gt;&lt;P&gt;           CHANGING .&lt;/P&gt;&lt;P&gt;           In the subroutine the type of paramter is always an internal table of  type ITCSY  irrespective of the value passed.The VALUE field  of the internal table is used to fill and recieve the values   .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;raam&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2008 08:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script/m-p/3639746#M876537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-19T08:25:08Z</dc:date>
    </item>
  </channel>
</rss>

