<?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 program and return in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-return/m-p/3417110#M820673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The standard program sends its output to list and while you are submitting the standard progam you have mentioned to export the list output to memory. And in your Z-program you are importing the same in a list object by calling the FM 'LIST_FROM_MEMORY' . After that your Z-program&lt;/P&gt;&lt;P&gt;calls the LIST_TO_ASCII FM to get the list object in ASCII format (vlist1 internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies your Q.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 21, 2008 10:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2008 15:42:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-21T15:42:21Z</dc:date>
    <item>
      <title>submit program and return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-return/m-p/3417108#M820671</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;   I have a scenario, where i will call standard R/3 report from my zreport. &lt;/P&gt;&lt;P&gt;    in my zreport, i will get the standard R/3 report name as user input, and i have to call that standard report 'with no display'  to the user.&lt;/P&gt;&lt;P&gt;  after the execution of standard report, i need the results of standard report in my zreport.&lt;/P&gt;&lt;P&gt;here is the piece of code what i have written, but i am unable to understand, whats in I_LIST, and how to convert to understandable table data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT (WD_COMP_CONTROLLER-&amp;gt;obj_name)&lt;/P&gt;&lt;P&gt;          EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;          WITH SELECTION-TABLE  lt_rtparams&lt;/P&gt;&lt;P&gt;    WITH dy_selm  = 'D'&lt;/P&gt;&lt;P&gt;  AND RETURN.&lt;/P&gt;&lt;P&gt;data: i_list type table of abaplist.&lt;/P&gt;&lt;P&gt;types: BEGIN OF vlist ,&lt;/P&gt;&lt;P&gt;        filler1(01)   TYPE c,&lt;/P&gt;&lt;P&gt;        field1(06)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler(08)    TYPE c,&lt;/P&gt;&lt;P&gt;        field2(10)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler3(01)   TYPE c,&lt;/P&gt;&lt;P&gt;        field3(10)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler4(01)   TYPE c,&lt;/P&gt;&lt;P&gt;        field4(3)     TYPE c,&lt;/P&gt;&lt;P&gt;        filler5(02)   TYPE c,&lt;/P&gt;&lt;P&gt;        field5(15)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler6(02)   TYPE c,&lt;/P&gt;&lt;P&gt;        field6(30)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler7(43)   TYPE c,&lt;/P&gt;&lt;P&gt;        field7(10)    TYPE c,&lt;/P&gt;&lt;P&gt;      END OF vlist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data: vlist1 type table of vlist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Use the function module to get the data from memory.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      LISTOBJECT = I_LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Use the function module to convert raw data to asci format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'LIST_TO_ASCI'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    list_index         = -1&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      LISTASCI           = vlist1&lt;/P&gt;&lt;P&gt;      LISTOBJECT         = I_LIST&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      EMPTY_LIST         = 1&lt;/P&gt;&lt;P&gt;      LIST_INDEX_INVALID = 2&lt;/P&gt;&lt;P&gt;      OTHERS             = 3.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE '0'.                                       "#EC *&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE E056."Unable to convert data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 10:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-return/m-p/3417108#M820671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T10:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: submit program and return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-return/m-p/3417109#M820672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amarender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have some 4 lines for header in the internal table and you will have the detailed output. Each set of output will be separated by -&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt; etc. The only way I do convert it is by seeing the format in the debugging mode and getting the field values identifying the offset.&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;Regards&lt;/P&gt;&lt;P&gt;Farzan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-return/m-p/3417109#M820672</guid>
      <dc:creator>former_member137336</dc:creator>
      <dc:date>2008-02-21T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: submit program and return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-return/m-p/3417110#M820673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The standard program sends its output to list and while you are submitting the standard progam you have mentioned to export the list output to memory. And in your Z-program you are importing the same in a list object by calling the FM 'LIST_FROM_MEMORY' . After that your Z-program&lt;/P&gt;&lt;P&gt;calls the LIST_TO_ASCII FM to get the list object in ASCII format (vlist1 internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies your Q.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 21, 2008 10:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 15:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-and-return/m-p/3417110#M820673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T15:42:21Z</dc:date>
    </item>
  </channel>
</rss>

