<?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 Issue during passing values when using SUBMIT statement... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757768#M1115759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gurus,&lt;/P&gt;&lt;P&gt;I am using a submit statement to transfer the control to PROGRAM as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZTEST&lt;/P&gt;&lt;P&gt;             WITH V_EVENT_BELNR EQ '5105608125'&lt;/P&gt;&lt;P&gt;             WITH V_EVENT_GJAHR EQ  '2008'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I go in debug mode, I see that the values V_EVENT_BELNR  and V_EVENT_GJAHR are empty as soon as the control gets transfered to the ZTEST program. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I did define the data for values to be paased same in function module and same in Program as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_event_belnr like RBKP-BELNR,  "Invoice Document Number.&lt;/P&gt;&lt;P&gt;        v_event_GJAHR like RBKP-GJAHR.  "Fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, if I am doing something wrong since I want the values V_EVENT_BELNR and V_EVENT_GJHAR to be passed to Program from function module during submission.&lt;/P&gt;&lt;P&gt;&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;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2008 14:45:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-11T14:45:26Z</dc:date>
    <item>
      <title>Issue during passing values when using SUBMIT statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757768#M1115759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gurus,&lt;/P&gt;&lt;P&gt;I am using a submit statement to transfer the control to PROGRAM as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZTEST&lt;/P&gt;&lt;P&gt;             WITH V_EVENT_BELNR EQ '5105608125'&lt;/P&gt;&lt;P&gt;             WITH V_EVENT_GJAHR EQ  '2008'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I go in debug mode, I see that the values V_EVENT_BELNR  and V_EVENT_GJAHR are empty as soon as the control gets transfered to the ZTEST program. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I did define the data for values to be paased same in function module and same in Program as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_event_belnr like RBKP-BELNR,  "Invoice Document Number.&lt;/P&gt;&lt;P&gt;        v_event_GJAHR like RBKP-GJAHR.  "Fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, if I am doing something wrong since I want the values V_EVENT_BELNR and V_EVENT_GJHAR to be passed to Program from function module during submission.&lt;/P&gt;&lt;P&gt;&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;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 14:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757768#M1115759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T14:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue during passing values when using SUBMIT statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757769#M1115760</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZTEST Via selection-Screen&lt;/P&gt;&lt;P&gt;WITH V_EVENT_BELNR EQ '5105608125'&lt;/P&gt;&lt;P&gt;WITH V_EVENT_GJAHR EQ '2008'&lt;/P&gt;&lt;P&gt;and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 14:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757769#M1115760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T14:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue during passing values when using SUBMIT statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757770#M1115761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can only pass data to the selection screen of a program, thus you need to define the selection-screen in order to submit the report with the selection criteria.&lt;/P&gt;&lt;P&gt;Therefore in your program ZTEST.&lt;/P&gt;&lt;P&gt;Change this &lt;/P&gt;&lt;P&gt;DATA: v_event_belnr like RBKP-BELNR, "Invoice Document Number.&lt;/P&gt;&lt;P&gt;v_event_GJAHR like RBKP-GJAHR. "Fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters BELNR like RBKP-BELNR, "Invoice Document Number.
                 GJAHR like RBKP-GJAHR. "Fiscal year.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can do a set parameters and in your Z program do a get parameter if you dont want to define a selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For belnr, the parameter Id is RBN, so before submitting the program, SET the parameter id 'RBN' with the value using SET PARAMETER. And similarly GJR for the year.&lt;/P&gt;&lt;P&gt;And in your program, ZTEST, you can use GET PARAMETER statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Advait Gode on Nov 11, 2008 3:59 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Advait Gode on Nov 11, 2008 4:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 14:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757770#M1115761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T14:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue during passing values when using SUBMIT statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757771#M1115762</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 can't believe the program ZTEST can have 2 parameter with a name like V_EVENT_BELNR or V_EVENT_GJAHR, because those name are longer than 8 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in ZTEST how have you defined V_EVENT_BELNR and V_EVENT_GJAHR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should have something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZTEST.

PARAMETERS: P_belnr like RBKP-BELNR, "Invoice Document Number.
            P_GJAHR like RBKP-GJAHR. "Fiscal year.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_event_belnr like RBKP-BELNR, "Invoice Document Number.
      v_event_GJAHR like RBKP-GJAHR. "Fiscal year.

SUBMIT ZTEST WITH P_BELNR = v_event_belnr
             WITH P_GJAHR = v_event_gjahr and return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 15:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757771#M1115762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T15:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue during passing values when using SUBMIT statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757772#M1115763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since neither of these fields are on the selection screen of ZTEST, you should export them to memory from the submitting program and then import them into ZTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 15:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-during-passing-values-when-using-submit-statement/m-p/4757772#M1115763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T15:09:13Z</dc:date>
    </item>
  </channel>
</rss>

