<?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: Using field symbol on export parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254023#M1631372</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;did you try to create a macro (local or in db table TRMAC) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&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, 05 Oct 2011 12:15:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-05T12:15:30Z</dc:date>
    <item>
      <title>Using field symbol on export parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254022#M1631371</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 using this logic In few methods of mine and I wonder if there is option the create one method&lt;/P&gt;&lt;P&gt;and every time that I need it just call it.&lt;/P&gt;&lt;P&gt;The issue is that &amp;lt;lt_output&amp;gt; is not assign yet (this need to happen in the method itself )so And I need to export it &lt;/P&gt;&lt;P&gt;and if I am creating method with exporting field type any I put the field symbol there I am getting dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea ?&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;PRE&gt;&lt;CODE&gt;ASSIGN COMPONENT lv_table_out
            OF STRUCTURE is_response TO &amp;lt;lt_output&amp;gt;.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    READ TABLE it_map INTO ls_map INDEX 1.
    lv_out = ls_map-left.
    ASSIGN COMPONENT lv_out
    OF STRUCTURE is_response TO &amp;lt;lt_output&amp;gt;.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 11:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254022#M1631371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T11:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using field symbol on export parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254023#M1631372</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;did you try to create a macro (local or in db table TRMAC) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&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, 05 Oct 2011 12:15:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254023#M1631372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T12:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using field symbol on export parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254024#M1631373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would you need to export a field symbol that is not assigned yet?&lt;/P&gt;&lt;P&gt;In my opinion only the component name (lv_table_out) and structure name (is_response)  have to be passed... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 12:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254024#M1631373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T12:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using field symbol on export parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254025#M1631374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that Macro is obsolete ..&lt;/P&gt;&lt;P&gt;In OO&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;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 12:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254025#M1631374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T12:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using field symbol on export parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254026#M1631375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that the the only thing that I need to use after i call to this method  is &amp;lt;lt_output&amp;gt; ... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 12:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254026#M1631375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T12:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using field symbol on export parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254027#M1631376</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;Ok, then you will have to use a data object to reference your field symbol and use a returning parameter I guess:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lo_data TYPE REF TO data.
FIELD-SYMBOLS: &amp;lt;lt_output&amp;gt; TYPE ANY.

CLASS lcl_main DEFINITION.
  PUBLIC SECTION.
    CLASS-METHODS: get RETURNING value(r_val) TYPE REF TO data.
ENDCLASS.                    

CLASS lcl_main IMPLEMENTATION.
  METHOD get.
    FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE ANY.
    ASSIGN COMPONENT 1 OF STRUCTURE is_response TO &amp;lt;fs&amp;gt;.
    GET REFERENCE OF &amp;lt;fs&amp;gt; INTO r_val.
  ENDMETHOD.                    "get
ENDCLASS.                   
 
START-OF-SELECTION.

  lo_data = lcl_main=&amp;gt;get( ).       
  ASSIGN lo_data-&amp;gt;* TO &amp;lt;lt_output&amp;gt;.  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manu D'Haeyer on Oct 5, 2011 2:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 12:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-field-symbol-on-export-parameter/m-p/8254027#M1631376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T12:38:15Z</dc:date>
    </item>
  </channel>
</rss>

