<?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: Creating a database table dynamically with different structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-database-table-dynamically-with-different-structure/m-p/6384961#M1403764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I think you should use another FM DD_CREATE_TABLE instead of DDIF_TABL_PUT.&lt;/P&gt;&lt;P&gt;DDIF_TABL_PUT is needed to create the TECHNICAL SETTINGS for what i can see &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Nov 2009 10:27:07 GMT</pubDate>
    <dc:creator>SimoneMilesi</dc:creator>
    <dc:date>2009-11-26T10:27:07Z</dc:date>
    <item>
      <title>Creating a database table dynamically with different structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-database-table-dynamically-with-different-structure/m-p/6384960#M1403763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a database table dynamically with the content of table details stored in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTAB1	MANDT&lt;/P&gt;&lt;P&gt;ZTAB1	F1&lt;/P&gt;&lt;P&gt;ZTAB1	F2&lt;/P&gt;&lt;P&gt;ZTAB1	F3&lt;/P&gt;&lt;P&gt;ZTAB1	F4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTAB2	MANDT&lt;/P&gt;&lt;P&gt;ZTAB2	F1&lt;/P&gt;&lt;P&gt;ZTAB2	F2&lt;/P&gt;&lt;P&gt;ZTAB2	F3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above structure will be dynamic, it can be of any structure. so, i need to create these ztables i.e. ztab1,ztab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this, i am using fm:DDIF_TABL_PUT but how can i identify that the first set of fields in ztab1 should be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requesting for a prompt solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Rohith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 09:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-database-table-dynamically-with-different-structure/m-p/6384960#M1403763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T09:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a database table dynamically with different structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-database-table-dynamically-with-different-structure/m-p/6384961#M1403764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I think you should use another FM DD_CREATE_TABLE instead of DDIF_TABL_PUT.&lt;/P&gt;&lt;P&gt;DDIF_TABL_PUT is needed to create the TECHNICAL SETTINGS for what i can see &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 10:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-database-table-dynamically-with-different-structure/m-p/6384961#M1403764</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2009-11-26T10:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a database table dynamically with different structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-database-table-dynamically-with-different-structure/m-p/6384962#M1403765</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;U can do that easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just pass the refrence tablename and refrence field names to the parameter tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'DDIF_TABL_PUT'
  EXPORTING
    NAME                    = 
*   DD02V_WA                = ' '
*   DD09L_WA                = ' '
* TABLES
*   DD03P_TAB               =
*   DD05M_TAB               =
*   DD08V_TAB               =
*   DD35V_TAB               =
*   DD36M_TAB               =&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in your case ,&lt;/P&gt;&lt;P&gt;pass Ztab1 and F!, F2, F3 fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Abhishak Arora on Nov 26, 2009 11:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 10:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-database-table-dynamically-with-different-structure/m-p/6384962#M1403765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T10:45:09Z</dc:date>
    </item>
  </channel>
</rss>

