<?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 Structure Creation !! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077836#M96824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thanks&lt;/P&gt;&lt;P&gt; But caller function module is passing the values to my function module . &lt;/P&gt;&lt;P&gt; so how to do that &amp;gt;&lt;/P&gt;&lt;P&gt;that is how to use that data from caller fm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2005 09:25:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-16T09:25:54Z</dc:date>
    <item>
      <title>dynamic Structure Creation !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077834#M96822</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; I have two function Module with different structute with the same Table name parameter&lt;/P&gt;&lt;P&gt; Like in  FM1 : &lt;/P&gt;&lt;P&gt;            Tables : I_Tab Like Structure1&lt;/P&gt;&lt;P&gt;  And Second FM2 Program2 : &lt;/P&gt;&lt;P&gt;            Tables : I_Tab Like Structure2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; And this two FM will call my Function module which i need to built with the same processing for both.&lt;/P&gt;&lt;P&gt; So, Can i create a dynamic structure based on the caller FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; That is if FM1 Calls then I create I_Tab with Stru1 &lt;/P&gt;&lt;P&gt; and if FM2 Calls then I create I_Tab with Stru2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i m clear to present my problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 08:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077834#M96822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T08:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic Structure Creation !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077835#M96823</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;You can try to use this solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GT_FIELDCAT TYPE LVC_T_FCAT.&lt;/P&gt;&lt;P&gt;DATA: MY_TABLE TYPE REF TO DATA,&lt;/P&gt;&lt;P&gt;      MY_WORKAREA TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;TABLE&amp;gt; TYPE TABLE,&lt;/P&gt;&lt;P&gt;               &amp;lt;WA&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STRACTURE_NAME LIKE DD02L-TABNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FM = FM1&lt;/P&gt;&lt;P&gt;  STRACTURE_NAME = .....&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  STRACTURE_NAME = .....&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME = STRUCTURE_NAME&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_CLIENT_NEVER_DISPLAY = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_BYPASSING_BUFFER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;  CT_FIELDCAT = GT_FIELDCAT&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;  INCONSISTENT_INTERFACE = 1&lt;/P&gt;&lt;P&gt;  PROGRAM_ERROR = 2&lt;/P&gt;&lt;P&gt;  OTHERS = 3&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_STYLE_TABLE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IT_FIELDCATALOG = GT_FIELDCAT&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;  EP_TABLE = MY_TABLE&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E_STYLE_FNAME =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;  GENERATE_SUBPOOL_DIR_FULL = 1&lt;/P&gt;&lt;P&gt;  OTHERS = 2&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  ASSIGN MY_TABLE-&amp;gt;* TO &amp;lt;TABLE&amp;gt;.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create work area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE DATA MY_WORKAREA LIKE LINE OF &amp;lt;TABLE&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN MY_WORKAREA-&amp;gt;* TO &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB1 LIKE STANDARD TABLE OF &amp;lt;STRUCTURE1&amp;gt;,&lt;/P&gt;&lt;P&gt;      ITAB2 LIKE STANDARD TABLE OF &amp;lt;STRUCTURE2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;TABLE&amp;gt; TYPE TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FM = FM1&lt;/P&gt;&lt;P&gt;  ASSIGN ITAB1 TO &amp;lt;TABLE&amp;gt;. &lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  ASSIGN ITAB2 TO &amp;lt;TABLE&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 09:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077835#M96823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T09:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic Structure Creation !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077836#M96824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thanks&lt;/P&gt;&lt;P&gt; But caller function module is passing the values to my function module . &lt;/P&gt;&lt;P&gt; so how to do that &amp;gt;&lt;/P&gt;&lt;P&gt;that is how to use that data from caller fm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 09:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077836#M96824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T09:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic Structure Creation !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077837#M96825</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;Your fm should have a parameter table without reference, so it'll have the structure of the table transfered from caller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me your code where you manage this calling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 10:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077837#M96825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T10:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic Structure Creation !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077838#M96826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks yaar it has been solved &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 11:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077838#M96826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-16T11:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic Structure Creation !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077839#M96827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;very useful thread.&lt;/P&gt;&lt;P&gt;it work fine for me.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 02:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-creation/m-p/1077839#M96827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T02:16:49Z</dc:date>
    </item>
  </channel>
</rss>

