<?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 on dynamic assignment? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524534#M1560804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the terminology Internal Session is more accurate - when a SUBMIT is executed a new internal session is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for the confusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jan 2011 06:03:02 GMT</pubDate>
    <dc:creator>alex_cook</dc:creator>
    <dc:date>2011-01-13T06:03:02Z</dc:date>
    <item>
      <title>Problem on dynamic assignment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524530#M1560800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you know, we can use statement like var1 = '(program)objectname', and assign  (var1) to &amp;lt;fs&amp;gt;,&lt;/P&gt;&lt;P&gt;I tried, and succeed in function module, but when I use it in prog2, and in prog1, I submit prog2, it does not work.&lt;/P&gt;&lt;P&gt;can this usage only be available in function module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 01:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524530#M1560800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-13T01:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on dynamic assignment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524531#M1560801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By performing the SUBMIT you are creating a new logical unit of work (LUW) and hence the dynamic assignment will fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve the same result you can utilise techniques like function module global memory, export/import to memory ids or shared memory access (SHMA).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 02:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524531#M1560801</guid>
      <dc:creator>alex_cook</dc:creator>
      <dc:date>2011-01-13T02:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on dynamic assignment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524532#M1560802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your answer.&lt;/P&gt;&lt;P&gt;As the document said, this usage can be access in a same internal session,&lt;/P&gt;&lt;P&gt;and as I know, when use submit/call transaction, both are in a internal session.&lt;/P&gt;&lt;P&gt;so what's 's difference between logical unit of work  and internal session?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 05:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524532#M1560802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-13T05:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on dynamic assignment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524533#M1560803</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;/P&gt;&lt;P&gt;When you SUBMIT a program(PROG2), it will be executed in a &lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;&lt;STRONG&gt;separate internal session&lt;/STRONG&gt;&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can access the global variables of the program loaded in the &lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;&lt;STRONG&gt;same internal session&lt;/STRONG&gt;&lt;/SPAN&gt; via the ASSIGN statement. Hence in case of SUBMIT the ASSIGN will fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of the ABAP memory to EXPORT / IMPORT the values between the calling &amp;amp; the called programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 06:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524533#M1560803</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-01-13T06:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on dynamic assignment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524534#M1560804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the terminology Internal Session is more accurate - when a SUBMIT is executed a new internal session is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for the confusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 06:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524534#M1560804</guid>
      <dc:creator>alex_cook</dc:creator>
      <dc:date>2011-01-13T06:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on dynamic assignment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524535#M1560805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saha,&lt;/P&gt;&lt;P&gt;When you SUBMIT a program(PROG2), it will be executed in a separate internal session. &lt;/P&gt;&lt;P&gt;You means the ABAP Runtime Framework will teminate current session(PROG1), and start a new separate internal session?&lt;/P&gt;&lt;P&gt;How about SUBMIT AND RETURN?&lt;/P&gt;&lt;P&gt;It also teminate the session of PROG2 and back to PROG1?&lt;/P&gt;&lt;P&gt;As I understand, a opened internal session(a window) is always in the same internal session,&lt;/P&gt;&lt;P&gt;so it caused me this question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 11:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524535#M1560805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-13T11:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on dynamic assignment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524536#M1560806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you don't use the RETURN addition the internal session of the calling program(PROG1) is (kind of)overwritten by that of the called program(PROG2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you use SUBMIT ... AND RETURN, the internal session of the calling program(PROG1) is retained. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both these cases the called program(PROG2) is executed in a new internal session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I'll strongly recommend you to read the F1 documentation on SUBMIT. It is very well documented there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 11:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524536#M1560806</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-01-13T11:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on dynamic assignment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524537#M1560807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;As I understand, a opened internal session(a window) is always in the same internal session,&lt;/P&gt;&lt;P&gt;so it caused me this question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence the problem - an internal session is not the same as a user session (eg a window).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 23:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524537#M1560807</guid>
      <dc:creator>alex_cook</dc:creator>
      <dc:date>2011-01-13T23:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on dynamic assignment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524538#M1560808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The addition AND RETURN starts the executable program in a new internal session. The session for the calling program is retained. Once program access is completed, program execution for the calling program continues after the SUBMIT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The label in name can also have the form (PROG)DOBJ for internal use only, where PROG is the name of an ABAP program and DOBJ is the name of a global data object of this program. If the program PROG is loaded during execution of the statement ASSIGN in the same internalmode as the current program, the data object (PROG)DOBJ is searched for in this program, and the field symbol points to this data object after the object has been successfully assigned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conbine the two part, I can get the answer.&lt;/P&gt;&lt;P&gt;So thanks all your information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 07:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-dynamic-assignment/m-p/7524538#M1560808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-14T07:11:23Z</dc:date>
    </item>
  </channel>
</rss>

