<?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: Generate subroutine pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/1023163#M81693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;   If you are writing a subroutine, then you must be passing some belnrs using an internal table.&lt;/P&gt;&lt;P&gt;If you already have some BELNR values in an internal table,&lt;/P&gt;&lt;P&gt;then you should pass them to the s_belnr ranges.&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; s_belnr-low = itab-belnr.&lt;/P&gt;&lt;P&gt;s_belnr-options = 'EQ'&lt;/P&gt;&lt;P&gt;s_belnr-sign = 'I'&lt;/P&gt;&lt;P&gt;append s_belnr.&lt;/P&gt;&lt;P&gt;clear s_belnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2005 13:13:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-07T13:13:18Z</dc:date>
    <item>
      <title>Generate subroutine pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/1023161#M81691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am building a subroutine pool with the statement 'Generate subroutine pool' and will create a form within this so I can call the form with statement 'Perform (FORM) in program (PROG) if found .....'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am having difficulties building the code for this form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do in this form is to build up a select statement using ranges as the selection parameters ie. &lt;/P&gt;&lt;P&gt;Select * from BSEG into itab where belnr in S_BELNR etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot fill the values for the range S_BELNR (I cannot hardcode them since I am using values contained in another internal table).   &lt;/P&gt;&lt;P&gt;Does anybody have a similar example? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 12:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/1023161#M81691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T12:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Generate subroutine pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/1023162#M81692</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 with Dynamic Conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"To specify a condition dynamically, use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... WHERE (&amp;lt;itab&amp;gt;) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;itab&amp;gt; is an internal table with line type C and maximum length 72 characters. All of the conditions listed above except for selection tables, can be written into the lines of &amp;lt;itab&amp;gt;. However, you may only use literals, and not the names of data objects. The internal table can also be left empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only want to specify a part of the condition dynamically, use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... WHERE &amp;lt;cond&amp;gt; AND (&amp;lt;itab&amp;gt;) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot link a static and a dynamic condition using OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may only use dynamic conditions in the WHERE clause of the SELECT statement."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 13:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/1023162#M81692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T13:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Generate subroutine pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/1023163#M81693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;   If you are writing a subroutine, then you must be passing some belnrs using an internal table.&lt;/P&gt;&lt;P&gt;If you already have some BELNR values in an internal table,&lt;/P&gt;&lt;P&gt;then you should pass them to the s_belnr ranges.&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; s_belnr-low = itab-belnr.&lt;/P&gt;&lt;P&gt;s_belnr-options = 'EQ'&lt;/P&gt;&lt;P&gt;s_belnr-sign = 'I'&lt;/P&gt;&lt;P&gt;append s_belnr.&lt;/P&gt;&lt;P&gt;clear s_belnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 13:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/1023163#M81693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T13:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Generate subroutine pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/1023164#M81694</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 can transfer your sel-opt. to generated form :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  PERFORM (upro) IN PROGRAM (genprog) USING s_bukrs s_belnr&lt;/CODE&gt;&lt;/PRE&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;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 14:03:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subroutine-pool/m-p/1023164#M81694</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-11-07T14:03:41Z</dc:date>
    </item>
  </channel>
</rss>

