<?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: external subroutine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-subroutine/m-p/3425144#M822559</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; For that you have use one more parameter like vbeln and you have to pass that one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub(znava)  USING x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In second program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form sub USING x.&lt;/P&gt;&lt;P&gt;select vbeln ernam netwr from vbak into table itab where vbeln = x.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write : wa-a,wa-b,wa-c.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 02:51:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T02:51:21Z</dc:date>
    <item>
      <title>external subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-subroutine/m-p/3425143#M822558</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;how can i rectify the following problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the main program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;parameters x type vbak-vbeln.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;types : begin of ty,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;a type vbak-vbeln,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;b type vbak-ernam,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;c type vbak-netwr,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end of ty.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : itab type table of ty,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;wa type ty.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;perform sub(znava).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the second program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reports znava.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;form sub.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select vbeln ernam netwr from vbak into table itab where vbeln = x.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;loop at itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write : wa-a,wa-b,wa-c.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endform.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above program i used external subroutine.whenever i give input in the parameter the result will show all the records from the database table. i need only one record that which i enter the value in parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie : i enter 4969 sales order number but the result will show all the records from the database table instead of particular one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i rectify this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Navneeth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 02:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-subroutine/m-p/3425143#M822558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T02:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: external subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-subroutine/m-p/3425144#M822559</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; For that you have use one more parameter like vbeln and you have to pass that one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub(znava)  USING x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In second program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form sub USING x.&lt;/P&gt;&lt;P&gt;select vbeln ernam netwr from vbak into table itab where vbeln = x.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write : wa-a,wa-b,wa-c.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 02:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-subroutine/m-p/3425144#M822559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T02:51:21Z</dc:date>
    </item>
  </channel>
</rss>

