<?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: Return Dynamic Structure in Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331861#M1919892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dean,&lt;/P&gt;&lt;P&gt;You need to fill the return structure however you want, I left it empty. Add these lines to see data returned in the structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;l_dref_table_workarea &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;data&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;FIELD-SYMBOLS &lt;/SPAN&gt;&amp;lt;fi&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;any&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;FIELD-SYMBOLS &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;any&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;CREATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;l_dref_table_workarea &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;tabname&lt;SPAN class="L0S55"&gt;)&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;ASSIGN &lt;/SPAN&gt;l_dref_table_workarea&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fs&amp;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;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'SPRSL' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fi&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;fi&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;langu&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ARBGB' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fi&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;fi&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Z001'&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;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'MSGNR' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fi&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;fi&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'001'&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;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'TEXT' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fi&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;fi&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Testing'&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; e_tab_struc&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&amp;lt;fs&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/797027" width="450" /&gt;&lt;/P&gt;&lt;P&gt;From calling program the structure is filled as:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/797028" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2015 16:29:20 GMT</pubDate>
    <dc:creator>former_member378318</dc:creator>
    <dc:date>2015-09-24T16:29:20Z</dc:date>
    <item>
      <title>Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331848#M1919879</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 have poured through the discussions and have not found an answer to this particular question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is in a Function Module, is build a structure of a SAP table based on the table name pass to the function module. I do not want to pass back a table nor XML.&amp;nbsp; Just EXPORT the structure like if you were defining the parameter in the Function Module with an Associated Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 22:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331848#M1919879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-23T22:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331849#M1919880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK it's not possible because FM parameters should be defined in dictionary. But you can export fieldcatalog to create your dynamic structure/table later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 05:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331849#M1919880</guid>
      <dc:creator>former_member210008</dc:creator>
      <dc:date>2015-09-24T05:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331850#M1919881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass a ref to data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 07:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331850#M1919881</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2015-09-24T07:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331851#M1919882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or,&amp;nbsp; as I did on a previous project,&amp;nbsp; use a table that contained a structure name and a table of XSEQUENCEs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use CL_ABAP_CONV_OUT_CE to populate that in the FM,&amp;nbsp; and CL_ABAP_CONV_IN_CE to decode it in the calling program using the associated structure name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that way you can pass mutliple tables or structures using just one table parameter and without having to keep the original data hanging around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 07:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331851#M1919882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-24T07:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331852#M1919883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not quite sure what you are trying to achieve but have a look at this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ztest&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;*"*"Local Interface:&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;*"&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFERENCE(TABNAME) TYPE&amp;nbsp; TABNAME DEFAULT 'T100'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;*"&amp;nbsp; CHANGING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFERENCE(ET_TAB1) TYPE&amp;nbsp; ANY TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;l_dref_table &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;TYPE REF TO data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;FIELD-SYMBOLS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;lt;fs_tabnam&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;TYPE STANDARD TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;CREATE DATA &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;l_dref_table &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;TYPE STANDARD TABLE OF &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;tabname&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;l_dref_table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;TO &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;lt;fs_tabnam&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;APPEND INITIAL LINE TO &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;lt;fs_tabnam&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; et_tab1[] &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;lt;fs_tabnam&amp;gt;[]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;ENDFUNCTION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 10:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331852#M1919883</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2015-09-24T10:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331853#M1919884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you elaborate? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331853#M1919884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-24T12:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331854#M1919885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Surbjeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ZTEST&lt;SPAN class="L0S55"&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"*"Local Interface:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFERENCE(I_TABNAME) TYPE TABNAME&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFERENCE(ES_STRUCTURE)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;*-- Create Internal Table Structure&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;perform &lt;/SPAN&gt;create_dynamically&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;* Create dynamic work area and assign to Field Symbol&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;create &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;gdyn_line &lt;SPAN class="L0S52"&gt;like &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;line &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;&amp;lt;gfs_table&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*-- Capture Key Structure&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;assign &lt;/SPAN&gt;gdyn_line&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;&amp;lt;gfs_line&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ES_STRUCTURE &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&amp;lt;gfs_line&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt; ENDFUNCTION.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S31"&gt;&lt;SPAN class="L0S55"&gt;This didn't work. Is only by passing a table the only possibility?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331854#M1919885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-24T12:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331855#M1919886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Ref to data is an object defined as 'Type Ref To Data'.&amp;nbsp; This is populated by a reference to whatever object you like using the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Get Reference Of my_object into o_Ref.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By then DeReferencing that reference into a Field Symbol you can access the orginal object as Normal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Assign o_Ref-&amp;gt;* to &amp;lt;f_Original&amp;gt;.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since Type Ref To Data is just one type you can pass back muitple different 'actual' data types using the same parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331855#M1919886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-24T12:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331856#M1919887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dean,&lt;/P&gt;&lt;P&gt;Which bit is not working? Can you explain you requirement more clearly? If you only want to pass back a structure try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;ztest&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;*"*"Local Interface:&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;*"&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFERENCE(TABNAME) TYPE&amp;nbsp; TABNAME DEFAULT 'T100'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;*"&amp;nbsp; CHANGING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFERENCE(E_TAB_STRUC) TYPE&amp;nbsp; ANY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;l_dref_table_workarea &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;TYPE REF TO data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;FIELD-SYMBOLS &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&amp;lt;fs&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;TYPE any&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;CREATE DATA &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;l_dref_table_workarea &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;tabname&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;).&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;l_dref_table_workarea&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;TO &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&amp;lt;fs&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; e_tab_struc&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&amp;lt;fs&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;ENDFUNCTION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Arial monospaced for SAP';"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331856#M1919887</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2015-09-24T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331857#M1919888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hell Surbjeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do this and test the FM, I am prompted for a value for the E-TAB_STRUC and during execution I get a dump with this error...&lt;/P&gt;&lt;P&gt;Conversion of type "TABLE OF FLAT_STRUCTURE" to type "C LENGTH 200" not&lt;/P&gt;&lt;P&gt; supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 13:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331857#M1919888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-24T13:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331858#M1919889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the second example that I posted the changing parameter &lt;SPAN style="color: #333333; font-family: 'Arial monospaced for SAP'; font-size: 10.6667px;"&gt;E_TAB_STRUC is of TYPE ANY (in the first example it was TYPE ANY TABLE). Make sure you declare this properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second example can be called like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lw_t100 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;t100&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZTEST'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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; tabname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'T100'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CHANGING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_tab_struc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lw_t100&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 14:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331858#M1919889</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2015-09-24T14:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331859#M1919890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I do that I get..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;Error generating the test frame&lt;/H3&gt;&lt;P&gt;Message No. FL819&lt;/P&gt;&lt;P&gt;Diagnosis&lt;/P&gt;&lt;P&gt;The system could not generate a syntactically correct test frame for function module ZTEST You therefore cannot test the function module using the test environment. You have probably used an ABAP feature in the interface definition that is not yet supported in the test environment.&lt;/P&gt;&lt;P&gt;The error message is:&lt;/P&gt;&lt;P&gt;You cannot use generic types for fields. The table types "ANY" and "INDEX" are generic&lt;/P&gt;&lt;P&gt;System Response&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;Check whether you can change the interface of the function module so that it is possible to generate the test frame. If this is not possible,you will have to write your own utility for testing the function module.&lt;/P&gt;&lt;P&gt;Procedure for System Administration&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 15:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331859#M1919890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-24T15:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331860#M1919891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code and the results..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FUNCTION ZTEST &lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"*"Local Interface:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFERENCE(TABNAME) TYPE&amp;nbsp; TABNAME&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp; CHANGING&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REFERENCE(EC_STRUCTURE) TYPE&amp;nbsp; ANY&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;l_dref_table_workarea &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;data&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;any&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;CREATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;l_dref_table_workarea &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;tabname&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;l_dref_table_workarea&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fs&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; EC_STRUCTURE&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&amp;lt;fs&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ENDFUNCTION&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;IMG alt="" class="jiveImage" src="https://community.sap.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Execute...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/796994" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press SAVE and results are..&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/796996" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 15:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331860#M1919891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-24T15:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Return Dynamic Structure in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331861#M1919892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dean,&lt;/P&gt;&lt;P&gt;You need to fill the return structure however you want, I left it empty. Add these lines to see data returned in the structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;l_dref_table_workarea &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;data&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;FIELD-SYMBOLS &lt;/SPAN&gt;&amp;lt;fi&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;any&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;FIELD-SYMBOLS &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;any&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;CREATE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;l_dref_table_workarea &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;tabname&lt;SPAN class="L0S55"&gt;)&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;ASSIGN &lt;/SPAN&gt;l_dref_table_workarea&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fs&amp;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;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'SPRSL' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fi&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;fi&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;langu&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ARBGB' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fi&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;fi&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Z001'&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;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'MSGNR' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fi&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;fi&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'001'&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;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'TEXT' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;&amp;lt;fs&amp;gt; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fi&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;fi&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Testing'&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; e_tab_struc&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&amp;lt;fs&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/797027" width="450" /&gt;&lt;/P&gt;&lt;P&gt;From calling program the structure is filled as:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/797028" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 16:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-dynamic-structure-in-function-module/m-p/11331861#M1919892</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2015-09-24T16:29:20Z</dc:date>
    </item>
  </channel>
</rss>

