<?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: Get value from another program using assign field symbol in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427910#M1647265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zhang, as these tables are with header lines, you need to add &lt;STRONG&gt;[ ]&lt;/STRONG&gt;  after the table name.. and you will be done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2011 04:38:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-13T04:38:46Z</dc:date>
    <item>
      <title>Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427907#M1647262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a user_exit, the FM doesn't pass the value with import parameters. I need to get value from the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know a way to get value by using assign to field-symbol, e.g:&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_AFVGD&amp;gt; TYPE AFVGD.&lt;/P&gt;&lt;P&gt;ASSIGN ('(SAPLCOKO1)AFVGD') TO &amp;lt;FS_AFVGD&amp;gt;.&lt;/P&gt;&lt;P&gt;Then I can get data of structure AFVGD from the program SAPLCOKO1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how can I get data with a internal table? &lt;/P&gt;&lt;P&gt;I need get a table data, and if i use 'Assign ('(program)variant'), will I only get a structure data? Any other ways to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will very appreciated if you can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 03:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427907#M1647262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T03:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427908#M1647263</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;try like this sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ASSIGN ('(SAPLCOKO1)AFVGD[]') TO &amp;lt;FS_AFVGD&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 04:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427908#M1647263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T04:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427909#M1647264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Check this link. I hope its useful &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1518937"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;Ravi Seela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 04:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427909#M1647264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T04:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427910#M1647265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zhang, as these tables are with header lines, you need to add &lt;STRONG&gt;[ ]&lt;/STRONG&gt;  after the table name.. and you will be done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 04:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427910#M1647265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T04:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427911#M1647266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all!&lt;/P&gt;&lt;P&gt;Yes, it is right! Add [] after the variant can pass the internal table exactly.&lt;/P&gt;&lt;P&gt;Now I had another question:&lt;/P&gt;&lt;P&gt;I am using user_exit PPCO0005 with FM:EXIT_SAPLCOSD_001.&lt;/P&gt;&lt;P&gt;I can get the operation data in T-CODE: CO02 with this code:&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_AFVGB&amp;gt; TYPE TABLE.&lt;/P&gt;&lt;P&gt;  ASSIGN ('(SAPLCOBO)AFVG_BT[]') TO &amp;lt;FS_AFVGB&amp;gt;.&lt;/P&gt;&lt;P&gt;Then &amp;lt;FS_AFVGB&amp;gt; will pass the opertaion data to me.&lt;/P&gt;&lt;P&gt;However, when I changed the work center and press enter in CO02, the system  also trigger this user_exit,but I can't get the new work center I had changed in  CO02, &amp;lt;FS_AFVGB&amp;gt; get the old value of operation data, that means, I can only get the old work center.&lt;/P&gt;&lt;P&gt;Can anyone tell me how I can get the current work center?&lt;/P&gt;&lt;P&gt;Maybe the program SAPLCOBO is not right or internal table AFVG_BT[] is not right? But I can't find the right one.&lt;/P&gt;&lt;P&gt;Can anyone advise me? Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 07:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427911#M1647266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T07:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427912#M1647267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can achieve this,&lt;/P&gt;&lt;P&gt;i have tried and it worked perfectly.&lt;/P&gt;&lt;P&gt;try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:  lv_name_xvbap(30)  VALUE   '(SAPMV45A)XVBAP[]'.
 
FIELD-SYMBOLS: &amp;lt;xvbap&amp;gt; TYPE TABLE OF vbap.
 
ASSIGN (lv_name_xvbap) TO &amp;lt;xvbap&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should give the Program name, if you dont know the program name, just inside your exit use this FM to know the Program name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: i_callstack TYPE sys_callst,
        w_callstack TYPE sys_calls.
 
  CALL FUNCTION 'SYSTEM_CALLSTACK'
    IMPORTING
      et_callstack = i_callstack.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in debug mode read the i_callstack for program name,&lt;/P&gt;&lt;P&gt;after yu know the program name exactly use it in above method,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 07:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427912#M1647267</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2011-12-13T07:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427913#M1647268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi playsuji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem to pass internal table has been solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question is to get operation data(work center) from production order in the user_eixt PPCO0005, FM:EXIT_SAPLCOSD_001&lt;/P&gt;&lt;P&gt;I can't get the current work center via:&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_AFVGB&amp;gt; TYPE TABLE.&lt;/P&gt;&lt;P&gt;ASSIGN ('(SAPLCOKO1)AFVG_BT[]') TO &amp;lt;FS_AFVGB&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 08:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427913#M1647268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T08:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427914#M1647269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beware, SAP Labs team members have stated in discussions at ASUG that this "loophole" will soon cease to exist....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 16:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427914#M1647269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T16:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427915#M1647270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's pretty bad as this was available for quite some time and I'm sure many developers used (or should I say, maybe &lt;EM&gt;misused&lt;/EM&gt; ) this "feature". Which means that those programs will now break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you elaborate when did they say this will happen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 01:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427915#M1647270</guid>
      <dc:creator>Tamas_Hoznek</dc:creator>
      <dc:date>2011-12-14T01:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427916#M1647271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats your requirment , wanna put some validation or change values ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PX0005 --&amp;gt;triggers at the time of creation .....better to check its documentation before you start codings ?&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;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 08:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427916#M1647271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-14T08:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427917#M1647272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanna change the issue storage location according to the work center that user maintained in CO02, so I need to get work center first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is PX0005? Could you explain the mean of PX0005?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 08:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427917#M1647272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-14T08:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427918#M1647273</link>
      <description>&lt;P&gt;It's Useful. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 17:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427918#M1647273</guid>
      <dc:creator>former_member850675</dc:creator>
      <dc:date>2020-08-24T17:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427919#M1647274</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Does this apply for copying a value from a Method.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SAP User&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427919#M1647274</guid>
      <dc:creator>former_member806420</dc:creator>
      <dc:date>2023-06-09T16:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get value from another program using assign field symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427920#M1647275</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;pruthvi_raj_kosala&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Use the shared memory object to copy the data across two different classes or programmes. Use the below link for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2012/04/02/shared-memory-enabled-classes-and-create-data-area-handle/"&gt;https://blogs.sap.com/2012/04/02/shared-memory-enabled-classes-and-create-data-area-handle/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 06:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-value-from-another-program-using-assign-field-symbol/m-p/8427920#M1647275</guid>
      <dc:creator>adityaIngale66</dc:creator>
      <dc:date>2023-06-12T06:22:01Z</dc:date>
    </item>
  </channel>
</rss>

