<?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: submit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537116#M245015</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 guess S_MATNR and S_CHARG in program ZRPP032_1 are defined as select-options. If so, you have to pass it as ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges: r_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_matnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_matnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_matnr-low = itab-matnr.&lt;/P&gt;&lt;P&gt;append r_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- similarly for charg if itz defined as select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit ZRPP032_1&lt;/P&gt;&lt;P&gt;   with s_matnr in r_matnr&lt;/P&gt;&lt;P&gt;   with s_charg in r_charg&lt;/P&gt;&lt;P&gt;   and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Reward for useful replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2006 06:54:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-02T06:54:43Z</dc:date>
    <item>
      <title>submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537112#M245011</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;The Program Code Like This:&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  DATA: FNAM(20) TYPE C,&lt;/P&gt;&lt;P&gt;        FVAL(20) TYPE C.&lt;/P&gt;&lt;P&gt;  GET CURSOR FIELD FNAM VALUE FVAL.&lt;/P&gt;&lt;P&gt;  CASE FNAM.&lt;/P&gt;&lt;P&gt;    WHEN 'ITAB-CHARG'.&lt;/P&gt;&lt;P&gt;      SUBMIT ZRPP032_1 VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;                      WITH S_MATNR EQ ITAB-MATNR&lt;/P&gt;&lt;P&gt;                      WITH S_CHARG EQ ITAB-CHARG&lt;/P&gt;&lt;P&gt;                      AND RETURN .&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;Please tell me how to do that the Report ZRPP032_1  auto run when i call it.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 06:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537112#M245011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T06:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537113#M245012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have just take out the VIA SELECTION-SCREEN from the SUBMIT statement, then the report will be executed directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 06:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537113#M245012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T06:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537114#M245013</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;P&gt;Consider these two programs I have done using both &amp;lt;b&amp;gt;WITH SELECTION-TABLE&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;IMPORT/EXPORT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Program 1(ZZTEST_ARUN_1).&lt;/P&gt;&lt;P&gt;I have two radio buttons. If I select Material the program executes its own code. If I select plant data is fetched and exported to memory. Then it gets the selection parameters of the Program 2(ZZTEST_ARUN_2) through the FM RS_REFRESH_FROM_SELECTOPTIONS. Then I populate the values for selection screen and pass using the &lt;/P&gt;&lt;P&gt;SUBMIT....WITH SELECTION-TABLE option.&lt;/P&gt;&lt;P&gt;&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;REPORT zztest_arun_1.
  TABLES: t001w.
  DATA : it_marc TYPE STANDARD TABLE OF marc WITH HEADER LINE,
         it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.
 
   PARAMETERS material RADIOBUTTON  GROUP  abc.     "Material General Details
 
   PARAMETERS plant RADIOBUTTON GROUP abc DEFAULT 'X'.      "Material Plant Details
 
   START-OF-SELECTION.
 
   IF material EQ 'X'.
   
*If Material selected own code executes   
 
    SELECT * FROM marc INTO TABLE it_marc UP TO 200 ROWS .
     LOOP AT it_marc.
 
     WRITE :/ it_marc-matnr,
            it_marc-werks.
     ENDLOOP.
 
   ENDIF.
 
  IF plant EQ 'X'.
 
*If Plant selected data fetched   
 
    SELECT * FROM t001w INTO TABLE it_werks UP TO 50 ROWS.
    
*Exported to Memory
    
    EXPORT it_werks[] TO MEMORY ID 'TEST'.
 
*Declare on selection table type RSPARAMS
 
    DATA :   stable	LIKE	rsparams OCCURS 0 WITH HEADER LINE.
 
*Call this FM to get the Selection screen details
*of Program ZZTEST_ARUN_2 (it returns Select Options, Parameters..)
 
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
       EXPORTING
         curr_report     = 'ZZTEST_ARUN_2'
      TABLES
         selection_table = stable
      EXCEPTIONS
         not_found       = 1
         no_report       = 2
         OTHERS          = 3.
      
    IF sy-subrc &amp;lt;&amp;gt; 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
 
   stable-sign = 'I'.
   stable-option = 'BT'.
   
* populate some selection condition
   READ TABLE it_werks INDEX 10.
   stable-low = it_werks-werks.
 
   READ TABLE it_werks INDEX 40.
   stable-high = it_werks-werks.
 
   APPEND stable.
 
*Submit it then
   SUBMIT zztest_arun_2
       WITH SELECTION-TABLE stable
       AND RETURN.
 
   ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Second Program.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zztest_arun_2.
TABLES: t001w.
 
DATA : it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.
 
SELECT-OPTIONS : s_werks FOR t001w-werks.
 
 
 
*Import the stored data.
IMPORT it_werks[] FROM MEMORY ID 'TEST'.
 
 
*Display the data based on selection criteria got
*form ZZTEST_ARUN_1
LOOP AT it_werks WHERE werks  IN s_werks.
  WRITE : / it_werks-werks,
            it_werks-name1.
 
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for mpre details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1990904"&gt;&lt;/A&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;Arun Sambargi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 06:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537114#M245013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T06:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537115#M245014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi LIU,&lt;/P&gt;&lt;P&gt;     You can use SUBMIT Statement without VIA SELECTION SCREEN or if any Custom transaction is created for program  ZRPP032_1 then use CALL TRANSACTION &amp;lt;TRANSACTION NAME&amp;gt; AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt; Syntax:&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION &amp;lt;tcod&amp;gt;&lt;/P&gt;&lt;P&gt;                 [AND SKIP FIRST SCREEN] &lt;/P&gt;&lt;P&gt;                 [USING &amp;lt;itab&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calls the transaction &amp;lt;tcod&amp;gt; while retaining the data in the calling program. At the end of the transaction, control returns to the point from which the transaction was called. The additions allow you to skip the first screen of the transaction or pass an internal table for batch input to it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Syntax:&lt;/P&gt;&lt;P&gt;    SUBMIT;&lt;/P&gt;&lt;P&gt;        SUBMIT &amp;lt;rep&amp;gt; [AND RETURN] [VIA SELECTION-SCREEN]&lt;/P&gt;&lt;P&gt;                          [USING SELECTION-SET &amp;lt;var&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [WITH &amp;lt;sel&amp;gt; &amp;lt;criterion&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [WITH FREE SELECTIONS &amp;lt;freesel&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [WITH SELECTION-TABLE &amp;lt;rspar&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [LINE-SIZE &amp;lt;width&amp;gt;]&lt;/P&gt;&lt;P&gt;                          [LINE-COUNT &amp;lt;length&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calls the program &amp;lt;rep&amp;gt;. If you omit the AND RETURN addition, the current program is terminated, otherwise, the data from the current program is retained, and processing returns to the calling program when &amp;lt;rep&amp;gt; has finished running. The other additions control the selection screen and set attributes of the default list in the called program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        The above mentioned Syntax can be used and is self Explanatory.&lt;/P&gt;&lt;P&gt;        Hope this might help you!&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;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 06:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537115#M245014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T06:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537116#M245015</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 guess S_MATNR and S_CHARG in program ZRPP032_1 are defined as select-options. If so, you have to pass it as ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges: r_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_matnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_matnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_matnr-low = itab-matnr.&lt;/P&gt;&lt;P&gt;append r_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- similarly for charg if itz defined as select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit ZRPP032_1&lt;/P&gt;&lt;P&gt;   with s_matnr in r_matnr&lt;/P&gt;&lt;P&gt;   with s_charg in r_charg&lt;/P&gt;&lt;P&gt;   and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Reward for useful replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 06:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537116#M245015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T06:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537117#M245016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhongming,&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;AT LINE-SELECTION&lt;/P&gt;&lt;P&gt;DATA: FNAM(20) TYPE C,&lt;/P&gt;&lt;P&gt;FVAL(20) TYPE C,&lt;/P&gt;&lt;P&gt;GET CURSOR FIELD FNAM VALUE FVAL.&lt;/P&gt;&lt;P&gt;CASE FNAM.&lt;/P&gt;&lt;P&gt;WHEN 'ITAB-CHARG'.&lt;/P&gt;&lt;P&gt;SUBMIT ZRPP032_1 WITH S_MATNR EQ ITAB-MATNR WITH S_CHARG EQ ITAB-CHARG&lt;/P&gt;&lt;P&gt;AND RETURN .&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Statement will call the output screen of Program ZRP032_1 and fill the values in S_MATNR and S_CHARG with values of ITAB_MATNR and ITAB-CHARG respectively and execute it immediately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if found useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 07:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537117#M245016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T07:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537118#M245017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to run the report automatically remove the VIA SELECTION-SCREEN in the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 07:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit/m-p/1537118#M245017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T07:06:25Z</dc:date>
    </item>
  </channel>
</rss>

