<?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: Dynamic assignment of variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590773#M1861065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried as per your suggestion but am still receiving the same dump.&lt;/P&gt;&lt;P&gt;Even if I change the field-symbol to type any the dump continues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 11:42:23 GMT</pubDate>
    <dc:creator>DominikKraemer</dc:creator>
    <dc:date>2014-10-01T11:42:23Z</dc:date>
    <item>
      <title>Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590766#M1861058</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;I am currently investigating a dump which was occuring in our productive system in one of our BTE's while doing rebates with T-Code VBOF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current ABAP program "SAPLV60A" had to be terminated because it has&lt;/P&gt;&lt;P&gt;come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 27&amp;nbsp;&amp;nbsp; ASSIGN ('(SAPMV60A)XVBRK') TO &amp;lt;ls_vbrk&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 28&amp;nbsp;&amp;nbsp; IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASSIGN ('(SAPLV60A)XVBRK') TO &amp;lt;ls_vbrk&amp;gt;. " Invoice creation in BG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got an idea on why we are receiving a dump saying "Field symbol has not yet been assigned."?&lt;/P&gt;&lt;P&gt;I was expecting in case the assignment was not working correctly that sy-subrc would be set to 4 as it is happening in line 27.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 08:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590766#M1861058</guid>
      <dc:creator>DominikKraemer</dc:creator>
      <dc:date>2014-10-01T08:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590767#M1861059</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;Yes it should work as you says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried your code and it works as you expect....which is your basis release?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 08:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590767#M1861059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-01T08:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590768#M1861060</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;The code is executed succesfully via VF01 in foreground or also during invoice creation in background. This however as it seems that the variable XVBRK is correctly filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During rebate changes with T-Code VBOF the above dump occures. However I cannot find SAPMV60A nor SAPLV60A in the call stack.&lt;/P&gt;&lt;P&gt;Dump is partially attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temporary workaround for the moment is to check the call stack prior to the ASSIGN and in case both programs are not in the stack to ignore the statements completly. However I am still wondering why the first assign works as expected and the second returns a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basis release: SAP_BASIS 700 0025 SAPKB70025&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 09:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590768#M1861060</guid>
      <dc:creator>DominikKraemer</dc:creator>
      <dc:date>2014-10-01T09:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590769#M1861061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to read full dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway I've tried to run that code in a program where the both main programs (&lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;SAPMV60A and SAPLV60A) are not loaded in call stack&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any dump occurs.....so it's strange&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 09:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590769#M1861061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-01T09:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590770#M1861062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached the full dump. Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590770#M1861062</guid>
      <dc:creator>DominikKraemer</dc:creator>
      <dc:date>2014-10-01T11:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590771#M1861063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dominik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read your whole dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of line:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ls_vbrk&amp;gt; TYPE vbrkvb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ls_vbrk&amp;gt; LIKE vbrkvb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Swati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590771#M1861063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-01T11:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590772#M1861064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;SAPLV60A is not active but was active (look in &lt;SPAN&gt;the "List of ABAP programs affected"&lt;/SPAN&gt;) and so XVBRK is no longer active (I suppose some FM of the group was called) -&amp;gt; &lt;EM&gt;Note that the documentation of this statement syntax mentions a "For internal use only,"&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;SAPMV60A wasn't active, so no problem arose.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590772#M1861064</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-10-01T11:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590773#M1861065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried as per your suggestion but am still receiving the same dump.&lt;/P&gt;&lt;P&gt;Even if I change the field-symbol to type any the dump continues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590773#M1861065</guid>
      <dc:creator>DominikKraemer</dc:creator>
      <dc:date>2014-10-01T11:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590774#M1861066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually you are somewhat right. I've also seen SAPLV60A however a call to FM 'SYSTEM_CALLSTACK' from within VBOF returns me the following:&lt;/P&gt;&lt;P&gt;1 SAPLY_QTC_TRANSMIT_DATA LY_QTC_TRANSMIT_DATAU03 29 FUNCTION Y_QTC_844_TRANSMIT_INV_DATA&lt;/P&gt;&lt;P&gt;2 SAPLBFFM LBFFMU37 52 FUNCTION OPEN_FI_PERFORM_00001050_E&lt;/P&gt;&lt;P&gt;3 SAPLFACI LFACIF57 381 FORM FI_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;4 SAPLFACI LFACIU05 25 FUNCTION FI_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;5 SAPLRWCL LRWCLF01 608 FORM DOCUMENT_POST&lt;/P&gt;&lt;P&gt;6 SAPLRWCL LRWCLU02 42 FUNCTION AC_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;7 SDBONT06 SDBONT06 1323 FORM BONUS_FI_POST&lt;/P&gt;&lt;P&gt;8 SDBONT06 SDBONT06 722 FORM FAKTUREN_ABARBEITEN&lt;/P&gt;&lt;P&gt;9 SDBONT06 SDBONT06 343 EVENT START-OF-SELECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However from VF01 I see the following:&lt;/P&gt;&lt;P&gt;1 SAPLY_QTC_TRANSMIT_DATA LY_QTC_TRANSMIT_DATAU03 29 FUNCTION Y_QTC_844_TRANSMIT_INV_DATA&lt;/P&gt;&lt;P&gt;2 SAPLBFFM LBFFMU37 52 FUNCTION OPEN_FI_PERFORM_00001050_E&lt;/P&gt;&lt;P&gt;3 SAPLFACI LFACIF57 381 FORM FI_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;4 SAPLFACI LFACIU05 25 FUNCTION FI_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;5 SAPLRWCL LRWCLF01 608 FORM DOCUMENT_POST&lt;/P&gt;&lt;P&gt;6 SAPLRWCL LRWCLU02 42 FUNCTION AC_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;7 SAPLV60A J3GD_SAPLV60A=================E 149 FUNCTION RV_INVOICE_DOCUMENT_ADD&lt;/P&gt;&lt;P&gt;8 SAPMV60A /NFM/SD_SAPMV60A==============E 2 FORM BELEG_SICHERN&lt;/P&gt;&lt;P&gt;9 SAPLV00F LV00FF0F 90 FORM FCODE_BEARBEITEN&lt;/P&gt;&lt;P&gt;10 SAPLV00F LV00FU02 44 FUNCTION SCREEN_SEQUENCE_CONTROL&lt;/P&gt;&lt;P&gt;11 SAPMV60A MV60AF0F_FCODE_BEARBEITEN 154 FORM FCODE_BEARBEITEN&lt;/P&gt;&lt;P&gt;12 SAPMV60A MV60AI0F_FCODE_BEARBEITEN 8 MODULE (PAI) FCODE_BEARBEITEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I guess I will continue with the check to the CallStack to see if I can go ahead with my assign or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Long story short:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'SYSTEM_CALLSTACK'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;-&amp;gt; IF &lt;/SPAN&gt;&lt;/SPAN&gt;SAPMV60A or SAPLV60A is found in the stack, go ahead and try the assign, else skip completly.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590774#M1861066</guid>
      <dc:creator>DominikKraemer</dc:creator>
      <dc:date>2014-10-01T11:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590775#M1861067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dominik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the below code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_TABLE&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF vbrkvb&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;lt;ls_vbrk&amp;gt;&amp;nbsp; LIKE LINE OF I_TABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Swati&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590775#M1861067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-01T11:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590776#M1861068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But in a FM like RV_INVOICE_DOCUMENT_ADD, XVBRK is a parameter of the FM and not a data defined in the global area (TOP) if the main program (SAPLV60A) so cannot be assigned from another program, only "global data object" of the program are allowed. (Here XVBRK is defined in include VBRKDATA at start of program SDBONT06 so an assignment in this program should not dump)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 11:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590776#M1861068</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-10-01T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590777#M1861069</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;XVBRK is not globally defined in SAPLV60A, it is only an interface parameter of some function modules and only known there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to access it, you have to define a globally defined internal table of same structure, which you can fill fill thru enhancement or userexit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can access this new table with ASSIGN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gruß&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590777#M1861069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-01T12:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590778#M1861070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand what you need to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have developed a BTE triggered while FI document is beeing posted ....I've had a problem like yours, so I've developed the following code for a fm for BTE 1050&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;MY_BSEG &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;BSEG_T &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;HEADER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;T_BKPF&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;MY_BSEG[]&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;MY_BSEG&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;T_BSEG &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;MY_BSEG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;BUKRS &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;T_BKPF&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;BUKRS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;BELNR &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;T_BKPF&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;BELNR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;GJAHR &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;T_BKPF&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;GJAHR&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;MY_BSEG&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Z_ACM_COMMISSION_CREATE_OPEN'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I_BKPF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;T_BKPF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I_BSEG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;MY_BSEG[]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I_UPDATE_TASK &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'X'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My fm &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.63636302948px;"&gt;Z_ACM_COMMISSION_CREATE_OPEN belongs to a function group where I've defined other fms in order to get all data from billing, those fms are placed in the user-exit of the bill, like, for example, the user-exit of interface SD-FI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it doesn't need to use field-symbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590778#M1861070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-01T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590779#M1861071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;I agree with &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-weight: normal;"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/people/klaus.babl"&gt;Klaus&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;, you could try to use some FM in a Billing Exit/BAdI to store data in global area of a function group, oe export it to memory. Then in your BTE, you could try to get this data back with a FM reading in global data or from memory, if not found then you could&amp;nbsp; access information from database&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;For User-exits for Billing, read &lt;/SPAN&gt;&lt;A href="http://help.sap.com/saphelp_erp60_sp/helpdata/en/8c/5ece53118d4308e10000000a174cb4/content.htm?current_toc=/en/ba/5ece53118d4308e10000000a174cb4/plain.htm&amp;amp;show_children=true"&gt;Billing&lt;/A&gt; → , &lt;A href="http://help.sap.com/saphelp_erp60_sp/helpdata/en/26/71b6535fe6b74ce10000000a174cb4/content.htm?frameset=/en/29/71b6535fe6b74ce10000000a174cb4/frameset.htm&amp;amp;current_toc=/en/ba/5ece53118d4308e10000000a174cb4/plain.htm&amp;amp;node_id=126"&gt;Working with User Exits&lt;/A&gt; and &lt;A href="http://help.sap.com/saphelp_erp60_sp/helpdata/en/29/71b6535fe6b74ce10000000a174cb4/content.htm?frameset=/en/29/71b6535fe6b74ce10000000a174cb4/frameset.htm&amp;amp;current_toc=/en/ba/5ece53118d4308e10000000a174cb4/plain.htm&amp;amp;node_id=127"&gt;User-defined Enhancements of the Billing Interface&lt;/A&gt; or &lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/72/23ee347a34d111a4620060b03c3b0e/content.htm?current_toc=/en/64/72369adc56d11195100060b03c6b76/plain.htm&amp;amp;show_children=true"&gt;System Modifications&lt;/A&gt; → &lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fc/f52c7dd435d1118b3f0060b03ca329/content.htm?frameset=/en/18/f62c7dd435d1118b3f0060b03ca329/frameset.htm&amp;amp;current_toc=/en/64/72369adc56d11195100060b03c6b76/plain.htm&amp;amp;node_id=25&amp;amp;show_children=false"&gt;User Exits&lt;/A&gt; → &lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/18/f62c7dd435d1118b3f0060b03ca329/content.htm?frameset=/en/18/f62c7dd435d1118b3f0060b03ca329/frameset.htm&amp;amp;current_toc=/en/64/72369adc56d11195100060b03c6b76/plain.htm&amp;amp;node_id=40"&gt;User Exits For Billing&lt;/A&gt; and &lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/19/f62c7dd435d1118b3f0060b03ca329/content.htm?frameset=/en/18/f62c7dd435d1118b3f0060b03ca329/frameset.htm&amp;amp;current_toc=/en/64/72369adc56d11195100060b03c6b76/plain.htm&amp;amp;node_id=41"&gt;User Exits For General Billing Interface&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;Else you should be required to identify the main program whereXVBRK[] is defined, e.g. SAPMV60A (VF01, etc.) or SDBONT06 (VBOF),&amp;nbsp; SAPLVBRK (BAPI), etc.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;Raymond&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 06:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590779#M1861071</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-10-02T06:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic assignment of variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590780#M1861072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your input. As of now this is the way I am going forward, checking the call stack and go ahead with the ASSIGN to the corresponding program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to consider this as a lessons learned to not do an assign without making sure that the variable was previously available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 06:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-assignment-of-variable/m-p/10590780#M1861072</guid>
      <dc:creator>DominikKraemer</dc:creator>
      <dc:date>2014-10-02T06:55:52Z</dc:date>
    </item>
  </channel>
</rss>

