<?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: Using LIST_FROM_MEMORY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887236#M1479474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; But if you don't want this kind of option then create same selection screen as your submitted program in your source program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My source program is a global class: I can't create a screen, or a selection-screen, in that source.&lt;/P&gt;&lt;P&gt;I created a zreport only to get a screen for my global class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 15:50:59 GMT</pubDate>
    <dc:creator>former_member1161170</dc:creator>
    <dc:date>2010-05-06T15:50:59Z</dc:date>
    <item>
      <title>Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887234#M1479472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish to use LIST_FROM_MEMORY to exchange parameter calling a program with a selection screen (it's the better system I found).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a Zprogram with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     SUBMIT zconnect VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;            EXPORTING LIST TO MEMORY AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;         listobject = list_tab&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         not_found  = 1&lt;/P&gt;&lt;P&gt;         OTHERS     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "zconnect" program is a simple report with a selection screen e four "write", one for each parameter I put in.&lt;/P&gt;&lt;P&gt;When I put the values and click the "clock" to execute, I get my four values written and I can't go over, I'can't continue my caller program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How have I do to get the values written in the memory, and not (if it is possible) on the screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found several examples to get the list, but no one to put it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I'm doing this because I can't declare a screen in a global class, so I'm trying other ways)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 14:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887234#M1479472</guid>
      <dc:creator>former_member1161170</dc:creator>
      <dc:date>2010-05-06T14:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887235#M1479473</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;When you submit via selection screen, control comes back to selection screen. Just press back button. You can continue to source program. But if you don't want this kind of option then create same selection screen as your submitted program in your source program. Check below sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: lfa1, lfb1.
SELECT-OPTIONS: so_lifnr FOR lfa1-lifnr MATCHCODE OBJECT kred,
                so_bukrs FOR lfb1-bukrs  NO INTERVALS NO-EXTENSION.

DATA list_tab TYPE TABLE OF  abaplist.

SUBMIT zmdm_xx_vendor_report WITH so_lifnr[] IN so_lifnr[]
                             WITH so_bukrs[] IN so_bukrs[]
EXPORTING LIST TO MEMORY AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = list_tab
  EXCEPTIONS
    not_found  = 1
    OTHERS     = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 15:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887235#M1479473</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-05-06T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887236#M1479474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; But if you don't want this kind of option then create same selection screen as your submitted program in your source program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My source program is a global class: I can't create a screen, or a selection-screen, in that source.&lt;/P&gt;&lt;P&gt;I created a zreport only to get a screen for my global class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 15:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887236#M1479474</guid>
      <dc:creator>former_member1161170</dc:creator>
      <dc:date>2010-05-06T15:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887237#M1479475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure to understand: you just want to call a selection screen from a global class and get the entered values? Simply define a routine that exports the entered values, and you call it from your global class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 20:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887237#M1479475</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-06T20:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887238#M1479476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Simply define a routine that exports the entered values, and you call it from your global class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me a simple example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 06:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887238#M1479476</guid>
      <dc:creator>former_member1161170</dc:creator>
      <dc:date>2010-05-07T06:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887239#M1479477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZREPORT.
PARAMETERS param1 TYPE string.
PARAMETERS param2 TYPE string.
FORM selscr CHANGING e_param1 TYPE string e_param2 TYPE string.
CALL SELECTION-SCREEN 1000.
e_param1 = param1.
e_param2 = param2.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the method:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA l_param1 TYPE string.
DATA l_param2 TYPE string.
PERFORM selscr IN PROGRAM zreport CHANGING l_param1 l_param2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 08:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887239#M1479477</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-07T08:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887240#M1479478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;In the method:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;PERFORM selscr IN PROGRAM zreport CHANGING l_param1 l_param2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be perfect, but I'm getting the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Program "Zprogram=======================CP" tried to use screen 1000.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The screen does not exist.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have four parameters and if I watch the program by se38 / se80, I can reach the screen 1000 by double click.&lt;/P&gt;&lt;P&gt;Is there something missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are very kind: thank you for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 10:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887240#M1479478</guid>
      <dc:creator>former_member1161170</dc:creator>
      <dc:date>2010-05-07T10:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887241#M1479479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, 1000 is the default screen, it probably doesn't work with it. Then, just define a specific selection screen 1010:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF SCREEN 1010.
PARAMETERS ...
SELECTION-SCREEN END OF SCREEN 1010.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
CALL SELECTION-SCREEN 1010.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 11:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887241#M1479479</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-07T11:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887242#M1479480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; SELECTION-SCREEN BEGIN OF SCREEN 1010.&lt;/P&gt;&lt;P&gt;&amp;gt; PARAMETERS ...&lt;/P&gt;&lt;P&gt;&amp;gt; SELECTION-SCREEN END OF SCREEN 1010.&lt;/P&gt;&lt;P&gt;&amp;gt; ...&lt;/P&gt;&lt;P&gt;&amp;gt; ..&lt;/P&gt;&lt;P&gt;&amp;gt; CALL SELECTION-SCREEN 1010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my zprogram is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF SCREEN 1010.
 SELECTION-SCREEN SKIP 1.

 SELECTION-SCREEN BEGIN OF BLOCK login WITH FRAME TITLE text-000.
   SELECTION-SCREEN BEGIN OF LINE.
     SELECTION-SCREEN COMMENT (32) text-ser.
     PARAMETERS:     p_server(20) TYPE C.
   SELECTION-SCREEN END OF LINE.
......
......
   SELECTION-SCREEN BEGIN OF LINE.
     SELECTION-SCREEN COMMENT (32) text-pwd.
     PARAMETERS:     p_pwd(20) TYPE C LOWER CASE.
   SELECTION-SCREEN END OF LINE.
 SELECTION-SCREEN END OF BLOCK login.
SELECTION-SCREEN END OF SCREEN 1010.

FORM selscr
    CHANGING
        e_server TYPE String
        e_dbase  TYPE String
        e_userid TYPE String
        e_pwd    TYPE String.

  CALL SELECTION-SCREEN 1010.

  e_server = p_server.
  e_dbase  = p_dbase.
  e_userid = p_userid.
  e_pwd    = p_pwd.

ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now my error is almost equal (1010 instead 1000):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Program "Zprogram=======================CP" tried to use screen 1010.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The screen does not exist.&lt;/EM&gt;                                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By a double-click in the editor I can see the screen 1010, of course.&lt;/P&gt;&lt;P&gt;By debug i can arrive until "CALL SELECTION-SCREEN 1010" and after that, the error arrives.&lt;/P&gt;&lt;P&gt;Perhaps the problem would be able to be the previous screens.&lt;/P&gt;&lt;P&gt;I have:&lt;/P&gt;&lt;P&gt;Zreportmain/"SelectionScreen"  -&amp;gt;  Zreportmain/"AlvGridScreen"  -&amp;gt;  ZglobalClass  -&amp;gt; ZreportLogin/"SelectionScreen1010"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 11:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887242#M1479480</guid>
      <dc:creator>former_member1161170</dc:creator>
      <dc:date>2010-05-07T11:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887243#M1479481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I remember this funny behavior (I guess it's a standard bug). That was already discussed in the forum. The only way to make it work is to define the selection-screen in a function group instead of a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION-POOL zzz.
PARAMETERS param1 TYPE string.
PARAMETERS param2 TYPE string.
FORM selscr CHANGING e_param1 TYPE string e_param2 TYPE string.
CALL SELECTION-SCREEN 1000.
e_param1 = param1.
e_param2 = param2.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the calling program, function module or class method, do that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA l_param1 TYPE string.
DATA l_param2 TYPE string.
PERFORM selscr IN PROGRAM saplzzz CHANGING l_param1 l_param2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandra Rossi on May 7, 2010 4:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 14:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887243#M1479481</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-07T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using LIST_FROM_MEMORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887244#M1479482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I remember this funny behavior (I guess it's a standard bug). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Standard bug": I like this fantastic oxymoron!!!&lt;/P&gt;&lt;P&gt;From &lt;A href="http://en.wikipedia.org/wiki/Software_bug" target="test_blank"&gt;http://en.wikipedia.org/wiki/Software_bug&lt;/A&gt; :&lt;/P&gt;&lt;P&gt;"A software bug is the common term used to describe an error, flaw, mistake, failure, or fault in a computer program or system that produces an incorrect or unexpected result".&lt;/P&gt;&lt;P&gt;If the result is "unexpected", it can't be standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; That was already discussed in the forum. The only way to make it work is to define the selection-screen in a function group instead of a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all right!&lt;/P&gt;&lt;P&gt;The function-pool works excellently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much: your help has been precious.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 08:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-list-from-memory/m-p/6887244#M1479482</guid>
      <dc:creator>former_member1161170</dc:creator>
      <dc:date>2010-05-10T08:45:10Z</dc:date>
    </item>
  </channel>
</rss>

