<?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: problem while using submit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-submit/m-p/4911835#M1146689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sony,&lt;/P&gt;&lt;P&gt;As I understand from your code you want to call ZGUO from ZGUO1 and make use of ZGUO output. In ZGUO you have S_VBELN as obligatory so you need to go with the via selection screen or have passed values to S_VBELN and use variant. &lt;/P&gt;&lt;P&gt;Please have a look at SAP help for using OPTIONS for submit&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db9dd035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db9dd035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nishikant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Dec 2008 17:22:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-26T17:22:05Z</dc:date>
    <item>
      <title>problem while using submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-submit/m-p/4911832#M1146686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to implement a senario . one is to output some data, another is used to execute the former one,   import the result into memory, then read the data.  but I can't get the correct code for submit? could you please give me a hand ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZGUO.

tables: vbak.

types:   begin of w_vbak,
             VBELN     like vbak-VBELN,
             AUART    like vbak-AUART,
           end of w_vbak.

data:  t_vbak type w_vbak occurs 0 with header line.

select-options : S_VBELN FOR vbak-VBELN obligatory.
select-options : S_AUART FOR vbak-VBELN .

select * from vbak into corresponding fields of table t_vbak
 where VBELN in S_VBELN.
*  where VBELN in S_VBELN and AUART in S_AUART.
write: sy-subrc , /.
loop at t_vbak.
  write: t_vbak-VBELN, / t_vbak-AUART , /.
endloop.

*****************************************************
******************program 2*********************
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZGUO1
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  ZGUO1.

DATA: seltab type table of rsparams,
    seltab_wa like line of seltab.

    seltab_wa-selname = 'S_VBELN'.
    seltab_wa-sign = 'I'.
    seltab_wa-option = 'EQ'.
    seltab_wa-low = '4969'.
    append seltab_wa to seltab .

*
**    SUBMIT ZGUO   with selection-table seltab via SELECTION-SCREEN .
*
**SUBMIT ZGUO and return.
** SUBMIT ZGUO via SELECTION-SCREEN .
*submit ZGUO .

DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

DATA: BEGIN OF vlist OCCURS 0,
        filler1(01)   TYPE c,
        field1(06)    TYPE c,
        filler(08)    TYPE c,
        field2(10)    TYPE c,
        filler3(01)   TYPE c,
        field3(10)    TYPE c,
        filler4(01)   TYPE c,
        field4(3)     TYPE c,
        filler5(02)   TYPE c,
        field5(15)    TYPE c,
        filler6(02)   TYPE c,
        field6(30)    TYPE c,
        filler7(43)   TYPE c,
        field7(10)    TYPE c,
      END OF vlist.

*SUBMIT ZGUO EXPORTING LIST TO MEMORY and return with selection-table seltab.
*SUBMIT ZGUO EXPORTING LIST TO MEMORY with selection-table seltab.

SUBMIT zreport EXPORTING LIST TO MEMORY.

CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = itab_list
  EXCEPTIONS
    not_found  = 4
    OTHERS     = 8.

CALL FUNCTION 'LIST_TO_ASCI'
  EXPORTING
    list_index         = -1
  TABLES
    listasci           = vlist
    listobject         = itab_list
  EXCEPTIONS
    empty_list         = 1
    list_index_invalid = 2
    OTHERS             = 3.

IF sy-subrc NE '0'.
  WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
ENDIF.

***************program 2*********************
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some piece of program is copied directly from internet, but as I tried to exceute the second program, I got some error. could you please help to tell where I am wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Dec 26, 2008 10:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 09:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-submit/m-p/4911832#M1146686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T09:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem while using submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-submit/m-p/4911833#M1146687</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;Please be clear of which program you want to &lt;STRONG&gt;submit&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One program is known as &lt;STRONG&gt;Called Program&lt;/STRONG&gt; and the other &lt;STRONG&gt;Calling Program&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a straight forward process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Key word &lt;STRONG&gt;SUBMIT&lt;/STRONG&gt; . For more info take &lt;STRONG&gt;F1&lt;/STRONG&gt; help on the key word&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to pass data from one program to other you can use  key words&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IMPORT&lt;/STRONG&gt; and &lt;STRONG&gt;EXPORT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The Key word help very clear and &lt;STRONG&gt;Self Explanatory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you find any syntax error, the F1 help is always there to help you and moreover the syntax check helps you aswell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramchander Krishnamraju on Dec 26, 2008 10:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 09:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-submit/m-p/4911833#M1146687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T09:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem while using submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-submit/m-p/4911834#M1146688</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;Create variant and pass it to Submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT 'program_name' USING SELECTION-SET 'Variant'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 09:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-submit/m-p/4911834#M1146688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T09:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem while using submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-submit/m-p/4911835#M1146689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sony,&lt;/P&gt;&lt;P&gt;As I understand from your code you want to call ZGUO from ZGUO1 and make use of ZGUO output. In ZGUO you have S_VBELN as obligatory so you need to go with the via selection screen or have passed values to S_VBELN and use variant. &lt;/P&gt;&lt;P&gt;Please have a look at SAP help for using OPTIONS for submit&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db9dd035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db9dd035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nishikant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 17:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-submit/m-p/4911835#M1146689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T17:22:05Z</dc:date>
    </item>
  </channel>
</rss>

