<?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 with a SUBMIT exporting results to memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049904#M722059</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 must be a query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of the S_ALR_* are queries. Just check what is the t-code assigned to it and go to SE93 you will get the query details for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2007 09:39:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-30T09:39:09Z</dc:date>
    <item>
      <title>Problem with a SUBMIT exporting results to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049900#M722055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;B&gt;Edit 30/10/2007&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I'am having some difficulties launching the report for S_ALR_87013611 through a submit.&lt;BR /&gt;&lt;BR /&gt;I want to know if it's possible to launch the report without opening it in SAP. All the results stored in Memory so i can retrieve it with my main program.&lt;BR /&gt;I have tried the option EXPORTING LIST TO MEMORY AND RETURN, but still, it opens the report as an excel sheet.&lt;BR /&gt;Is there a way to disable this opening ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More details below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- When i execute my program, it opens à popup to enable or disable macros in excel and the it opens the results of the report in a excel sheet SAP.&lt;/P&gt;&lt;P&gt;What i want is to disable the popup and the opening of the sheet. I want to store the results in the memory and then retrieve what i need.&lt;/P&gt;&lt;P&gt;Here are some screenshots :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- After closing the sheet, my program continues processing. I'm trying to read the data in memory but the sy-subrs is different from 0. I don't understand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help if anybody as any idea on how i can resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample of code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

******** ......... ******

  IF sy-mandt EQ '030'.
    SUBMIT GP4QLQKH46VZJ3P1A40A23S3HJG030
         WITH 
DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

******** ......... ******

  IF sy-mandt EQ '030'.
    SUBMIT GP4QLQKH46VZJ3P1A40A23S3HJG030
         WITH $1KOKRE  EQ p_kokrs           
         WITH $1GJAHR   EQ p_gjhar             
         WITH $1PERIV    EQ '1'
         WITH $1PERIB    EQ '9'
         WITH $1VERP     EQ '0'
         WITH $1KOSET   EQ 'GFGGNX'
         WITH $1KSTAR    EQ 'NCPR'
         EXPORTING LIST TO MEMORY
         AND RETURN.
  ENDIF.

  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = itab_list
    EXCEPTIONS
      not_found  = 4
      OTHERS     = 8.

  IF sy-subrc NE '0'.
    WRITE:/ 'Erreur de lecture LIST_FROM_MEMORY',
             sy-subrc.
  ENDIF.


  REFRESH vlist.

  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:/ 'Erreur reprise memory LIST_TO_ASCI. ',
            sy-subrc.
  ENDIF.



KOKRE  EQ p_kokrs           
         WITH 
DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

******** ......... ******

  IF sy-mandt EQ '030'.
    SUBMIT GP4QLQKH46VZJ3P1A40A23S3HJG030
         WITH $1KOKRE  EQ p_kokrs           
         WITH $1GJAHR   EQ p_gjhar             
         WITH $1PERIV    EQ '1'
         WITH $1PERIB    EQ '9'
         WITH $1VERP     EQ '0'
         WITH $1KOSET   EQ 'GFGGNX'
         WITH $1KSTAR    EQ 'NCPR'
         EXPORTING LIST TO MEMORY
         AND RETURN.
  ENDIF.

  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = itab_list
    EXCEPTIONS
      not_found  = 4
      OTHERS     = 8.

  IF sy-subrc NE '0'.
    WRITE:/ 'Erreur de lecture LIST_FROM_MEMORY',
             sy-subrc.
  ENDIF.


  REFRESH vlist.

  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:/ 'Erreur reprise memory LIST_TO_ASCI. ',
            sy-subrc.
  ENDIF.



GJAHR   EQ p_gjhar             
         WITH 
DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

******** ......... ******

  IF sy-mandt EQ '030'.
    SUBMIT GP4QLQKH46VZJ3P1A40A23S3HJG030
         WITH $1KOKRE  EQ p_kokrs           
         WITH $1GJAHR   EQ p_gjhar             
         WITH $1PERIV    EQ '1'
         WITH $1PERIB    EQ '9'
         WITH $1VERP     EQ '0'
         WITH $1KOSET   EQ 'GFGGNX'
         WITH $1KSTAR    EQ 'NCPR'
         EXPORTING LIST TO MEMORY
         AND RETURN.
  ENDIF.

  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = itab_list
    EXCEPTIONS
      not_found  = 4
      OTHERS     = 8.

  IF sy-subrc NE '0'.
    WRITE:/ 'Erreur de lecture LIST_FROM_MEMORY',
             sy-subrc.
  ENDIF.


  REFRESH vlist.

  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:/ 'Erreur reprise memory LIST_TO_ASCI. ',
            sy-subrc.
  ENDIF.



PERIV    EQ '1'
         WITH 
DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

******** ......... ******

  IF sy-mandt EQ '030'.
    SUBMIT GP4QLQKH46VZJ3P1A40A23S3HJG030
         WITH $1KOKRE  EQ p_kokrs           
         WITH $1GJAHR   EQ p_gjhar             
         WITH $1PERIV    EQ '1'
         WITH $1PERIB    EQ '9'
         WITH $1VERP     EQ '0'
         WITH $1KOSET   EQ 'GFGGNX'
         WITH $1KSTAR    EQ 'NCPR'
         EXPORTING LIST TO MEMORY
         AND RETURN.
  ENDIF.

  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = itab_list
    EXCEPTIONS
      not_found  = 4
      OTHERS     = 8.

  IF sy-subrc NE '0'.
    WRITE:/ 'Erreur de lecture LIST_FROM_MEMORY',
             sy-subrc.
  ENDIF.


  REFRESH vlist.

  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:/ 'Erreur reprise memory LIST_TO_ASCI. ',
            sy-subrc.
  ENDIF.



PERIB    EQ '9'
         WITH 
DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

******** ......... ******

  IF sy-mandt EQ '030'.
    SUBMIT GP4QLQKH46VZJ3P1A40A23S3HJG030
         WITH $1KOKRE  EQ p_kokrs           
         WITH $1GJAHR   EQ p_gjhar             
         WITH $1PERIV    EQ '1'
         WITH $1PERIB    EQ '9'
         WITH $1VERP     EQ '0'
         WITH $1KOSET   EQ 'GFGGNX'
         WITH $1KSTAR    EQ 'NCPR'
         EXPORTING LIST TO MEMORY
         AND RETURN.
  ENDIF.

  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = itab_list
    EXCEPTIONS
      not_found  = 4
      OTHERS     = 8.

  IF sy-subrc NE '0'.
    WRITE:/ 'Erreur de lecture LIST_FROM_MEMORY',
             sy-subrc.
  ENDIF.


  REFRESH vlist.

  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:/ 'Erreur reprise memory LIST_TO_ASCI. ',
            sy-subrc.
  ENDIF.



VERP     EQ '0'
         WITH 
DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

******** ......... ******

  IF sy-mandt EQ '030'.
    SUBMIT GP4QLQKH46VZJ3P1A40A23S3HJG030
         WITH $1KOKRE  EQ p_kokrs           
         WITH $1GJAHR   EQ p_gjhar             
         WITH $1PERIV    EQ '1'
         WITH $1PERIB    EQ '9'
         WITH $1VERP     EQ '0'
         WITH $1KOSET   EQ 'GFGGNX'
         WITH $1KSTAR    EQ 'NCPR'
         EXPORTING LIST TO MEMORY
         AND RETURN.
  ENDIF.

  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = itab_list
    EXCEPTIONS
      not_found  = 4
      OTHERS     = 8.

  IF sy-subrc NE '0'.
    WRITE:/ 'Erreur de lecture LIST_FROM_MEMORY',
             sy-subrc.
  ENDIF.


  REFRESH vlist.

  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:/ 'Erreur reprise memory LIST_TO_ASCI. ',
            sy-subrc.
  ENDIF.



KOSET   EQ 'GFGGNX'
         WITH 
DATA  BEGIN OF itab_list OCCURS 0.
        INCLUDE STRUCTURE abaplist.
DATA  END OF itab_list.

******** ......... ******

  IF sy-mandt EQ '030'.
    SUBMIT GP4QLQKH46VZJ3P1A40A23S3HJG030
         WITH $1KOKRE  EQ p_kokrs           
         WITH $1GJAHR   EQ p_gjhar             
         WITH $1PERIV    EQ '1'
         WITH $1PERIB    EQ '9'
         WITH $1VERP     EQ '0'
         WITH $1KOSET   EQ 'GFGGNX'
         WITH $1KSTAR    EQ 'NCPR'
         EXPORTING LIST TO MEMORY
         AND RETURN.
  ENDIF.

  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = itab_list
    EXCEPTIONS
      not_found  = 4
      OTHERS     = 8.

  IF sy-subrc NE '0'.
    WRITE:/ 'Erreur de lecture LIST_FROM_MEMORY',
             sy-subrc.
  ENDIF.


  REFRESH vlist.

  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:/ 'Erreur reprise memory LIST_TO_ASCI. ',
            sy-subrc.
  ENDIF.



KSTAR    EQ 'NCPR'
         EXPORTING LIST TO MEMORY
         AND RETURN.
  ENDIF.

  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = itab_list
    EXCEPTIONS
      not_found  = 4
      OTHERS     = 8.

  IF sy-subrc NE '0'.
    WRITE:/ 'Erreur de lecture LIST_FROM_MEMORY',
             sy-subrc.
  ENDIF.


  REFRESH vlist.

  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:/ 'Erreur reprise memory LIST_TO_ASCI. ',
            sy-subrc.
  ENDIF.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Helder&lt;/P&gt;&lt;P&gt;        Helder  Da Costa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 09:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049900#M722055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T09:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a SUBMIT exporting results to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049901#M722056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot the screens :&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://http://img142.imageshack.us/img142/48/popupcx4.jpg"&amp;gt;Pop up macros&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://http://img524.imageshack.us/img524/6339/submitresultsik3.jpg"&amp;gt;Submit results as a sheet&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 09:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049901#M722056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T09:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a SUBMIT exporting results to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049902#M722057</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;You are calling a Query using your program.&lt;/P&gt;&lt;P&gt;There must be default output set as the excel sheet in the query through SQ01.&lt;/P&gt;&lt;P&gt;Go to SQ01 and check that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 09:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049902#M722057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T09:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a SUBMIT exporting results to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049903#M722058</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;In fact it's not a query, it's a report automaticly generated. How, i don't know.&lt;/P&gt;&lt;P&gt;The report informations header is like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
*         Executable for report group 1SIP                             *
*----------------------------------------------------------------------*
*         report group   : 1SIP Centres: Réel/P-bdgt/Ecart             *
*         program class  : RW_EXECUTION                                *
*         program version: 00000001                                    *
*         client         : 030                                         *
*----------------------------------------------------------------------*
*         user      :  PIL03                                           *
*         date      :  18.07.04                                        *
*         time      :  10:03.24                                        *
*         release   :  620                                             *
*----------------------------------------------------------------------*
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program for S_ALR_87013611 is generated (Report painter) with a name like : GP4QLQKH46VZJ3P1A40A23S3HJG and they add the client (in my example 030)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Helder  Da Costa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 09:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049903#M722058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T09:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a SUBMIT exporting results to memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049904#M722059</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 must be a query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of the S_ALR_* are queries. Just check what is the t-code assigned to it and go to SE93 you will get the query details for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 09:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-a-submit-exporting-results-to-memory/m-p/3049904#M722059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T09:39:09Z</dc:date>
    </item>
  </channel>
</rss>

