<?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: How to pass Function code to Submit or Call transaction command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332599#M1638334</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;   It is not possible to pass function code with submit. alternatively you can work with CALL TRANSACTION with BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or as a work arround way you can modify your code i.e check for function code or an dummy parameter which can be passed by SUBMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Report ztest1.

submit ZTEST2 WITH P2 = 'X' AND RETURN.

Report ztest2
SELECTION-SCREEN:
    PUSHBUTTON 2(10)  but1 USER-COMMAND cli1.

PARAMETERS P2 TYPE C NO-DISPLAY. " no need to display

AT SELECTION-SCREEN.

IF SY-UCOMM = 'CLI1' OR P2 IS NOT INITIAL.
message 'Button clicked' type 'S'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 05:51:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-28T05:51:06Z</dc:date>
    <item>
      <title>How to pass Function code to Submit or Call transaction command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332595#M1638330</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 have to call a report in an other report, But the problem is when i call the report through submit command i need to skip the initial screen and display an other screen. the other screen is not next screen. It  display after clicking a button on main screen.&lt;/P&gt;&lt;P&gt;Is there any way to pass Function code to submit command. submit command code is as under&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZADR0056&lt;/P&gt;&lt;P&gt;              WITH P_AUFNR = '7000052' AND RETURN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2011 12:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332595#M1638330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-27T12:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Function code to Submit or Call transaction command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332596#M1638331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No, you will not be able to achieve this thru submit program. You need to record the transaction thru SHDB (basically write a small BDC to achieve this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then do a CALL TRANSACTION. &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;Reetesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2011 15:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332596#M1638331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-27T15:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Function code to Submit or Call transaction command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332597#M1638332</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;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
It display after clicking a button on main screen  " Whether you want to execute Two Reports one after another  ?

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to execute two reports one after another  and  get data  of both report   then it is possible  ,&lt;/P&gt;&lt;P&gt;but if you want to execute one report  using submit and   another after pressing button then not possible  until event is generated   .&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;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 04:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332597#M1638332</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-11-28T04:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Function code to Submit or Call transaction command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332598#M1638333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It's not possible to skip first screen while using SUBMIT command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, You have you create a new transaction code for ZADR0056 program.&lt;/P&gt;&lt;P&gt;- Record your new Tcode using SHDB then use BDC technique(very easy) or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Add ABAP command CALL SCREEN xxxx for specific conditions(in callee program).&lt;/P&gt;&lt;P&gt;- SET PARAMETER ID: 'ANR' FIELD 'your_order_no' (in caller program).&lt;/P&gt;&lt;P&gt;- CALL TRANSACTION 'your_new_tcode' AND SKIP FIRST SCREEN (in caller program).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help.&lt;/P&gt;&lt;P&gt;Tiwa N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 05:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332598#M1638333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-28T05:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Function code to Submit or Call transaction command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332599#M1638334</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;   It is not possible to pass function code with submit. alternatively you can work with CALL TRANSACTION with BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or as a work arround way you can modify your code i.e check for function code or an dummy parameter which can be passed by SUBMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Report ztest1.

submit ZTEST2 WITH P2 = 'X' AND RETURN.

Report ztest2
SELECTION-SCREEN:
    PUSHBUTTON 2(10)  but1 USER-COMMAND cli1.

PARAMETERS P2 TYPE C NO-DISPLAY. " no need to display

AT SELECTION-SCREEN.

IF SY-UCOMM = 'CLI1' OR P2 IS NOT INITIAL.
message 'Button clicked' type 'S'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 05:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-function-code-to-submit-or-call-transaction-command/m-p/8332599#M1638334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-28T05:51:06Z</dc:date>
    </item>
  </channel>
</rss>

