<?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 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/2464220#M553178</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:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-25T07:25:24Z</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/2464220#M553178</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:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464220#M553178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T07:25:24Z</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/2464221#M553179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) You  can use SUBMIT to submit the data to another program or you can use&lt;/P&gt;&lt;P&gt;CALL TRANSACTION to call another transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also have normal screens created in the your one report with the selection screen and then use CALL SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 07:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464221#M553179</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-06-25T07:28:06Z</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/2464222#M553180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;                use SUBMIT syntax.&lt;/P&gt;&lt;P&gt;&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:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464222#M553180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T07:30:06Z</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/2464223#M553181</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:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464223#M553181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T07:34:35Z</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/2464224#M553182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the sample code  for  calling the next program ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use    submit and return within the    case condition    so that it will call the   new program from one  program  in se38 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;----------------------------------------------------------------------*
*                To generate the detailed lists                        *
*----------------------------------------------------------------------*

AT LINE-SELECTION.
  CASE sy-lsind.
    WHEN 1.
      SET PF-STATUS '0011'.

*---------To display the data for the secondary list-----------------------*
WINDOW STARTING AT 10 10
       ENDING   AT 90 30.
    format color 5 intensified off.
  LOOP AT it_ekpo where ebeln = it_ekko-ebeln .
    WRITE :/ sy-vline, it_ekpo-ebeln UNDER text-002, 15 sy-vline,
                                                     "PURCHASE ORDER NUMBER
                       it_ekpo-ebelp UNDER text-008, 30 sy-vline,
                                                     "PO ITEM NUMBER
                       it_ekpo-werks UNDER text-009, 45 sy-vline,
                                                     "PLANT
                       it_ekpo-matnr UNDER text-010, 60 sy-vline,
                                                     "MATERIAL NUMBER
                       it_ekpo-matkl UNDER text-011, 80 sy-vline.
                                                     "MATERIAL GROUP
  ENDLOOP.

  WRITE :/ sy-uline(80).

  ENDCASE.

  CASE sy-ucomm.
    WHEN 'EXIT' OR 'CANC' OR 'BACK'.
       LEAVE TO SCREEN 0.
  ENDCASE.

*----------------------------------------------------------------------*
*                    At user-command event                             *
*----------------------------------------------------------------------*

AT USER-COMMAND.
  CASE sy-ucomm.
    WHEN 'SELE' OR 'LIST1'.
      IF sy-lsind = 1.
      SET PF-STATUS '0011'.

*---------To display the data for the secondary list-----------------------*

WINDOW STARTING AT 10 10
       ENDING   AT 90 30.
       format color 5 intensified off.

  LOOP AT it_ekpo where ebeln = it_ekko-ebeln .
    WRITE :/ sy-vline, it_ekpo-ebeln UNDER text-002, 15 sy-vline, "PURCHASE ORDER NUMBER
                       it_ekpo-ebelp UNDER text-008, 30 sy-vline, "PO ITEM NUMBER
                       it_ekpo-werks UNDER text-009, 45 sy-vline, "PLANT
                       it_ekpo-matnr UNDER text-010, 60 sy-vline, "MATERIAL NUMBER
                       it_ekpo-matkl UNDER text-011, 80 sy-vline. "MATERIAL GROUP

  ENDLOOP.

  WRITE :/ sy-uline(80).
  endif.

  ENDCASE.

  CASE sy-ucomm.
    WHEN 'EXIT' OR 'CANC' OR 'BACK'.
       LEAVE TO SCREEN 0.

  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points  if it is usefull ...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 07:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-calling-another-program-from-current-report/m-p/2464224#M553182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T07:45:30Z</dc:date>
    </item>
  </channel>
</rss>

