<?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: regarding calling another program from current report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464127#M553133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the Next button clicked, invoke the Code using the following Code&lt;/P&gt;&lt;P&gt;Submit Report_Prog_Name via Selection-screen&lt;/P&gt;&lt;P&gt;Press F1 help for Submit statement and there you can see the added features of the statement like seltab-which contains the parameter values of current selection screen(populated by programmer.&lt;/P&gt;&lt;P&gt;You can return to the calling Program after its execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Vijai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Reward pnts if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2007 07:50:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-25T07:50:10Z</dc:date>
    <item>
      <title>regarding calling another program from current report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464124#M553130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all&lt;/P&gt;&lt;P&gt;(1) how can we call 1 pgm from another pgm in se38 . &lt;/P&gt;&lt;P&gt;(2) This is required because i wan to have many selection screens but i dun want to use dialog programming also i dun want to write all the selection screens in a single report pgm in se38 , so when  (say) i click on 'NEXT' button on selection screen in first pgm in se38, it should call the other pgm having another slection screen.&lt;/P&gt;&lt;P&gt;can i do like this ?, please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 07:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464124#M553130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T07:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: regarding calling another program from current report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464125#M553131</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 command 'SUBMIT' or 'CALL TRANSACTION'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 07:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464125#M553131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T07:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: regarding calling another program from current report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464126#M553132</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 call one selection screen from other selection screen program using &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;SUBMIT&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is as follows -&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT... [VIA SELECTION-SCREEN]
[USING SELECTION-SET &amp;lt;var&amp;gt;]
[WITH &amp;lt;sel&amp;gt; &amp;lt;criterion&amp;gt;]
[WITH FREE SELECTIONS &amp;lt;freesel&amp;gt;]
[WITH SELECTION-TABLE &amp;lt;rspar&amp;gt;].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  demo_program_submit_rep1.

DATA number TYPE i.
PARAMETERS      paramet(14) TYPE c.
SELECT-OPTIONS  selecto FOR number.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.

DATA: int TYPE i,
      rspar TYPE TABLE OF rsparams,
      wa_rspar LIKE LINE OF rspar.

RANGES seltab FOR int.

WRITE: 'Select a Selection!',
     / '--------------------'.
SKIP.

FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
     / 'Selection 2'.

AT LINE-SELECTION.
  CASE sy-lilli.
    WHEN 4.
      seltab-sign = 'I'. seltab-option = 'BT'.
      seltab-low  = 1.   seltab-high   = 5.
      APPEND seltab.
      SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                      WITH paramet eq 'Selection 1'
                      WITH selecto IN seltab
                      WITH selecto ne 3
                      AND RETURN.
    WHEN 5.
      wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
      wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
      wa_rspar-low  = 14.  wa_rspar-high = 17.
      APPEND wa_rspar TO rspar.
      wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
      wa_rspar-low  = 'Selection 2'.
      APPEND wa_rspar TO rspar.
      wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
      wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
      wa_rspar-low  = 10.
      APPEND wa_rspar TO rspar.
      SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                      WITH SELECTION-TABLE rspar
                      AND RETURN.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; To leave a called program, you can use &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;SUBMIT .... AND RETURN.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; by choosing F3 or F15 from list level 0 of the called report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS If the answer solves your query, plz close the thread by rewarding each reply and mark it Solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 07:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464126#M553132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T07:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: regarding calling another program from current report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464127#M553133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the Next button clicked, invoke the Code using the following Code&lt;/P&gt;&lt;P&gt;Submit Report_Prog_Name via Selection-screen&lt;/P&gt;&lt;P&gt;Press F1 help for Submit statement and there you can see the added features of the statement like seltab-which contains the parameter values of current selection screen(populated by programmer.&lt;/P&gt;&lt;P&gt;You can return to the calling Program after its execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Vijai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Reward pnts if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 07:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464127#M553133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T07:50:10Z</dc:date>
    </item>
  </channel>
</rss>

