<?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: Calling standard program with logical database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226998#M138166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich, do you have sample code of a custom program referencing a logical database, with selection criteria in the custom?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2006 14:48:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-09T14:48:07Z</dc:date>
    <item>
      <title>Calling standard program with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226991#M138159</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;I am trying to call a standard report (RPTBAL00) from a custom program without displaying the selection screen.  I want to fill some of the select-options programmatically.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is somethig like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      submit RPTBAL00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        with pernr-pernr = 'XXX'&lt;/P&gt;&lt;P&gt;        with pernr-pnpbegda = '20020101'&lt;/P&gt;&lt;P&gt;        with pernr-pnpenddaa = '99991231'&lt;/P&gt;&lt;P&gt;                      and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the report gets called with defaults.&lt;/P&gt;&lt;P&gt;Does anyone know what I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 15:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226991#M138159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T15:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling standard program with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226992#M138160</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 seem your code is right, but I don't understand which elements are filled with default values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway this is a little code to submit a report with logical database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..................&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Co.Ge. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at so_umskz.&lt;/P&gt;&lt;P&gt;    move-corresponding so_umskz to selopt.&lt;/P&gt;&lt;P&gt;    append selopt  to frange-selopt_t.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    frange-fieldname = 'UMSKZ'.&lt;/P&gt;&lt;P&gt;    append frange to range-frange_t.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  refresh frange-selopt_t.&lt;/P&gt;&lt;P&gt;  loop at so_zlsch.&lt;/P&gt;&lt;P&gt;    move-corresponding so_zlsch to selopt.&lt;/P&gt;&lt;P&gt;    append selopt  to frange-selopt_t.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    frange-fieldname = 'ZLSCH'.&lt;/P&gt;&lt;P&gt;    append frange to range-frange_t.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not range-frange_t[] is initial.&lt;/P&gt;&lt;P&gt;    range-tablename = 'BSIK'.&lt;/P&gt;&lt;P&gt;    append range to trange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'FREE_SELECTIONS_RANGE_2_EX'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        field_ranges = trange&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        expressions  = texpr.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  submit rfitemap&lt;/P&gt;&lt;P&gt;          with ................&lt;/P&gt;&lt;P&gt;          with free selections texpr and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 15:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226992#M138160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T15:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling standard program with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226993#M138161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Why dont you create a variant with those values &amp;amp; use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT RPTBAL00 &lt;/P&gt;&lt;P&gt;       USING SELECTION-SET 'VARIANT1' &lt;/P&gt;&lt;P&gt;       AND RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 15:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226993#M138161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T15:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling standard program with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226994#M138162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You screen field names are wrong(as least in a 46c system).  Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

submit rptbal00  
with &amp;lt;b&amp;gt;PNPPERNR-LOW&amp;lt;/b&amp;gt; = 'XXX'
with &amp;lt;b&amp;gt;pnpbegda&amp;lt;/b&amp;gt; = '20020101'
with &amp;lt;b&amp;gt;pnpenddaa&amp;lt;/b&amp;gt; = '99991231'
and return.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 15:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226994#M138162</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-30T15:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calling standard program with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226995#M138163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, SAP recommends not to use the PERNR structure to pass/read values.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 15:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226995#M138163</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-03-30T15:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calling standard program with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226996#M138164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to the fields you are passing values, if it is populating additional fields that are populate dby default, try making then blank in you "Submit.....and Return" code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 19:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226996#M138164</guid>
      <dc:creator>asarat</dc:creator>
      <dc:date>2006-03-30T19:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calling standard program with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226997#M138165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That solved my problem, Rich.  I was using the wrong names.&lt;/P&gt;&lt;P&gt;Using a variant was not an option as I have to be able to change the select-options dynamically.&lt;/P&gt;&lt;P&gt;Thank you all for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 09:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226997#M138165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T09:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling standard program with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226998#M138166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich, do you have sample code of a custom program referencing a logical database, with selection criteria in the custom?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 14:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-standard-program-with-logical-database/m-p/1226998#M138166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T14:48:07Z</dc:date>
    </item>
  </channel>
</rss>

