<?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 Call Methods using FIELD-SYMBOLS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485849#M838089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon, i have this problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, i used a field Symbol to call an object that has been initialized in another program. Then, i want to use this field symbol to call a method of this object, but i have the following message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&amp;lt;FS&amp;gt; is not a reference variable".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code that have the error in the last line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA ls_object(30) TYPE C.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_object = '(SAPLTB4E)g_oref_ftr_appl_ctrl'.&lt;/P&gt;&lt;P&gt;  ASSIGN (ls_object) TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  CALL METHOD  &amp;lt;fs&amp;gt;-&amp;gt;action_pbo_before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The assign returns a sy-subrc = 0. In the program SAPLTB4E,  the variable 'g_oref_ftr_appl_ctrl' is define like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    g_oref_ftr_appl_ctrl TYPE REF TO cl_ftr_appl_ctrl.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 17:51:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-03T17:51:34Z</dc:date>
    <item>
      <title>Call Methods using FIELD-SYMBOLS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485849#M838089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon, i have this problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, i used a field Symbol to call an object that has been initialized in another program. Then, i want to use this field symbol to call a method of this object, but i have the following message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&amp;lt;FS&amp;gt; is not a reference variable".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code that have the error in the last line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA ls_object(30) TYPE C.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_object = '(SAPLTB4E)g_oref_ftr_appl_ctrl'.&lt;/P&gt;&lt;P&gt;  ASSIGN (ls_object) TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  CALL METHOD  &amp;lt;fs&amp;gt;-&amp;gt;action_pbo_before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The assign returns a sy-subrc = 0. In the program SAPLTB4E,  the variable 'g_oref_ftr_appl_ctrl' is define like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    g_oref_ftr_appl_ctrl TYPE REF TO cl_ftr_appl_ctrl.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 17:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485849#M838089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T17:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Call Methods using FIELD-SYMBOLS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485850#M838090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you try this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zaRs.
data : g_oref_ftr_appl_ctrl TYPE REF TO cl_ftr_appl_ctrl.

perform set_otcdata_to_appl
                  changing
                     g_oref_ftr_appl_ctrl.

form set_otcdata_to_appl changing p_g_oref_ftr_appl_ctrl
                                    type ref to cl_ftr_appl_ctrl.
  call method p_g_oref_ftr_appl_ctrl-&amp;gt;action_pbo_before.

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 18:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485850#M838090</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-03-03T18:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Call Methods using FIELD-SYMBOLS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485851#M838091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, that will work as you have coded as long as that program, SAPLTB4E, is in the call stack.  But in order for it to work, you must type your FS correctly.  Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE REF TO cl_ftr_appl_ctrl.


&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;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS.  Be careful with what you are doing here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 18:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485851#M838091</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-03-03T18:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call Methods using FIELD-SYMBOLS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485852#M838092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;gt; 
&amp;gt; FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE REF TO cl_ftr_appl_ctrl.
&amp;gt; 
&amp;gt; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Rich for new info &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 19:00:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485852#M838092</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-03-03T19:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Call Methods using FIELD-SYMBOLS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485853#M838093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help !! &lt;SPAN __jive_emoticon_name="grin"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 21:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-methods-using-field-symbols/m-p/3485853#M838093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T21:08:03Z</dc:date>
    </item>
  </channel>
</rss>

