<?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: Transfer data from screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-data-from-screen/m-p/9000941#M1697934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest, that you implement a MVC-Pattern to handle the communication between the screens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. one class-instance controls the ALV-Grid, another class instance handles another screen. The data between those screens will be shared through a model-class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some kind of documentation: &lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Objects+Design+Patterns+-+Model+View+Controller+%28MVC%29"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Objects+Design+Patterns+-+Model+View+Controller+%28MVC%29&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/2094078"&gt;http://scn.sap.com/thread/2094078&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2012 13:32:31 GMT</pubDate>
    <dc:creator>hendrik_brandes</dc:creator>
    <dc:date>2012-08-13T13:32:31Z</dc:date>
    <item>
      <title>Transfer data from screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-data-from-screen/m-p/9000939#M1697932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently having a program which calls a screen and displays the data in an ALV table of type 'cl_gui_alv_grid' in a custom control. Now once the user selects some rows in this table and presses the enter key. It should get the selected rows from the table and the data selected should be brought back to the previous screen and displayed there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get the selected rows i understand that I should get them using the method CL_GUI_ALV_GRID-&amp;gt;ET_SELECTED_ROWS. Now once I get the selected data in PAI, should I use the ABAP memory to transfer it between screens or can i use some variable which is in scope of both the screens and the program? The input / output tick boxes in the 'Element List' are disabled as this is a Custom Control on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the best way of transferring the data between the screen and original screen and displaying it to the user on the original screen? Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 12:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-data-from-screen/m-p/9000939#M1697932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-13T12:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer data from screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-data-from-screen/m-p/9000940#M1697933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think , later one is much efficient than former one. Because passing data explicitely using abap memory (export/import command) is unnecessary stuff which is not&amp;nbsp; in later case. In this we are sharing the data in variables. No need of exporting and importing data to abap memory.&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;Thanks &lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 13:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-data-from-screen/m-p/9000940#M1697933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-13T13:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer data from screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-data-from-screen/m-p/9000941#M1697934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest, that you implement a MVC-Pattern to handle the communication between the screens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. one class-instance controls the ALV-Grid, another class instance handles another screen. The data between those screens will be shared through a model-class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some kind of documentation: &lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Objects+Design+Patterns+-+Model+View+Controller+%28MVC%29"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Objects+Design+Patterns+-+Model+View+Controller+%28MVC%29&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/2094078"&gt;http://scn.sap.com/thread/2094078&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 13:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-data-from-screen/m-p/9000941#M1697934</guid>
      <dc:creator>hendrik_brandes</dc:creator>
      <dc:date>2012-08-13T13:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer data from screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-data-from-screen/m-p/9000942#M1697935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your "Selected Rows" table is globally defined you should be able to call it in both screens as long as the screens are within the same program, there is no need to export the data to memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 14:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-data-from-screen/m-p/9000942#M1697935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-13T14:27:36Z</dc:date>
    </item>
  </channel>
</rss>

