<?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 Problem regarding calling a program from another program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-calling-a-program-from-another-program/m-p/5558231#M1268461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement that i need to call a program from another program and in that case the called program should be executed with a value in the selection screen coming from the first program..i.e.&lt;/P&gt;&lt;P&gt;a standard report to view the user Notes for annual leave is RPTARQDBVIEW. Can we create a report to display all the users under a manager as a hyperlink and run the report(RPTARQDBVIEW), with the pernr of the employee selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;saumik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2009 16:35:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-06T16:35:42Z</dc:date>
    <item>
      <title>Problem regarding calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-calling-a-program-from-another-program/m-p/5558231#M1268461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement that i need to call a program from another program and in that case the called program should be executed with a value in the selection screen coming from the first program..i.e.&lt;/P&gt;&lt;P&gt;a standard report to view the user Notes for annual leave is RPTARQDBVIEW. Can we create a report to display all the users under a manager as a hyperlink and run the report(RPTARQDBVIEW), with the pernr of the employee selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;saumik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 16:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-calling-a-program-from-another-program/m-p/5558231#M1268461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem regarding calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-calling-a-program-from-another-program/m-p/5558232#M1268462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Calling a SAP standard report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example is used transaction FB03 for the standard report that should becalled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go into the standard report  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Place the cursor in the selection fields one by one and press F1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	Select Technical info for the field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	The parameter-ID is the name of the parameter you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FB03 has the parameters BLN, BUK and GJR. Call the transaction from your report using the following syntax ( We don't use the åparameter GJR &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set parameter id 'BLN' field prttab-belnr.      &lt;/P&gt;&lt;P&gt; set parameter id 'BUK' field prttab-bukrs.      &lt;/P&gt;&lt;P&gt; call transaction 'FB03' and skip first screen.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prttab is a filed from an internal table in your own report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Calling one of your own reports&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You call one of your own reports the same way as you call a SAP standard report, but you will have to define parameter IDs for the fields on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this you must edit the selection screen in the Object Browser. Select the screen and add a parameterId in the attributes screen for each field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importent: If you later change your report and save it, the paramter ID's will be lost, and you will have to define them again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 16:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-calling-a-program-from-another-program/m-p/5558232#M1268462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem regarding calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-calling-a-program-from-another-program/m-p/5558233#M1268463</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;U can the call other program in u t program using Submit command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Submit &amp;lt;Calling Program name&amp;gt; vai selection-screen with &amp;lt; selection values to be pass&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 16:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-calling-a-program-from-another-program/m-p/5558233#M1268463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T16:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem regarding calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-calling-a-program-from-another-program/m-p/5558234#M1268464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
Submitting a report using ranges for select-options

* Define range for ltak-tanum
RANGES: r_tanum FOR ltak-tanum.                                                                                
* Read values from database tabel into the range
* These values are later used for select-options in the report

SELECT * FROM ltak                                                    
  WHERE lgnum =  w_lgnum AND           "Warehouse number/complex     
        vbeln = w_screen1000-io_vbeln.  	"Transfer order number

  MOVE ltak-tanum TO r_tanum-low.                                     
  MOVE 'I' TO r_tanum-sign.                                           

  MOVE 'EQ' TO r_tanum-option.                                        
  APPEND r_tanum.                                                     
ENDSELECT.                                                                                
* Submit report with range                   
SUBMIT zmm00100 WITH p_tanum IN r_tanum.    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Submitting a report from ABAP with selection criterias


  TYPES: tt_selection TYPE STANDARD TABLE OF rsparams.

  DATA: l_iblnr        TYPE st_iblnr,
*     Define internal table and work area for select-options
        l_selection    TYPE rsparams,
        li_selection   TYPE tt_selection.

* Create selectIon table
  LOOP AT gi_iblnr INTO l_iblnr.
    CLEAR l_selection.
    l_selection-selname  = 'IM_IBLNR'.    "Option name
    l_selection-kind     = 'S'.           "S= select options P=Parameters
    l_selection-sign     = 'I'.           "Sign
    l_selection-option   = 'EQ'.          "Option 
    l_selection-low      = l_iblnr-iblnr. "Value

    APPEND l_selection TO li_selection.
  ENDLOOP.

* Submit report
  SUBMIT rm07idif WITH SELECTION-TABLE li_selection AND RETURN.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 16:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-calling-a-program-from-another-program/m-p/5558234#M1268464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T16:43:37Z</dc:date>
    </item>
  </channel>
</rss>

