<?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: Problem in creating structure programatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-structure-programatically/m-p/8879138#M1687887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 11px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://answers.sap.com/people/shambu.vs3" id="jive-40193412753196833098292" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; text-decoration: underline !important; color: #3778c7;"&gt;Shambu VS&lt;/A&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks a lot.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought there are no FM to create new structure / table. I searched and debugged structure creation process, but did not find this FM. Even i randomly tried in SE37 DD_TABL&lt;STRONG&gt;E&lt;/STRONG&gt;_PUT coz i thought as DD_DTEL_PUT is there so there might be a chance that for structure and table also it will be there. But only difference is i wrote extra E. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/843/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Between how you found this FM, i mean DD_TABL_PUT ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2012 11:20:13 GMT</pubDate>
    <dc:creator>ankur_sharma16</dc:creator>
    <dc:date>2012-08-02T11:20:13Z</dc:date>
    <item>
      <title>Problem in creating structure programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-structure-programatically/m-p/8879135#M1687884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to rename the structure, but as there is no direct method or FM to do so, am creating a new structure and copying all the contents to the new one and deleting old one. And i want to do this programatically.&lt;/P&gt;&lt;P&gt;So for creating new structure i ran the SAP process of creating structure in DEBUG mode and found 2 things, one FM '&lt;STRONG&gt;RS_DD_ADD'&lt;/STRONG&gt; and one method '&lt;STRONG&gt; call method cl_wb_ddic=&amp;gt;access_ddic_via_manager'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both are creating the structure, but both are taking me to the screen of the newly created structure to enter fields and all, which i dont want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for this any suggestion ?&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;Ankur Sharma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 07:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-structure-programatically/m-p/8879135#M1687884</guid>
      <dc:creator>ankur_sharma16</dc:creator>
      <dc:date>2012-08-02T07:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating structure programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-structure-programatically/m-p/8879136#M1687885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of renaming the structure, from SE11 you can copy the structure with a new name and can delete the old structure. That would be the easiest option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have any restrictions in doing that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Velayutham A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 09:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-structure-programatically/m-p/8879136#M1687885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-02T09:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating structure programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-structure-programatically/m-p/8879137#M1687886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can rename using combination of DD_TABL* functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;P&gt;DATA: lt_dd03p TYPE TABLE OF dd03p,&lt;/P&gt;&lt;P&gt;ls_dd03p TYPE dd03p,&lt;/P&gt;&lt;P&gt;ls_dd09l TYPE dd09l,&lt;/P&gt;&lt;P&gt;ls_dd02v TYPE dd02v.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DD_TABL_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabl_name = 'YYMARC_S'&lt;/P&gt;&lt;P&gt;WITHTEXT = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;dd02v_wa_a = ls_dd02v&lt;/P&gt;&lt;P&gt;dd09l_wa_a = ls_dd09l&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dd03p_tab_a = lt_dd03p&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;access_failure = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&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;LOOP AT lt_dd03p INTO ls_dd03p.&lt;/P&gt;&lt;P&gt;ls_dd03p-tabname = 'YYMARC_S_NEW'.&lt;/P&gt;&lt;P&gt;MODIFY lt_dd03p FROM ls_dd03p.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ls_dd02v-tabname = 'YYMARC_S_NEW'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RS_DD_DELETE_OBJ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;no_ask = 'X'&lt;/P&gt;&lt;P&gt;objname = 'YYMARC_S'&lt;/P&gt;&lt;P&gt;objtype = 'S'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;not_executed = 01&lt;/P&gt;&lt;P&gt;object_not_found = 02&lt;/P&gt;&lt;P&gt;object_not_specified = 03&lt;/P&gt;&lt;P&gt;permission_failure = 04.&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DD_TABL_PUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;dd02v_wa = ls_dd02v&lt;/P&gt;&lt;P&gt;dd09l_wa = ls_dd09l&lt;/P&gt;&lt;P&gt;put_state = 'A'&lt;/P&gt;&lt;P&gt;tabl_name = 'YYMARC_S_NEW'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dd03p_tab = lt_dd03p&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;db_access_failure = 1&lt;/P&gt;&lt;P&gt;object_inconsistent = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&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;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shambu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 10:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-structure-programatically/m-p/8879137#M1687886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-02T10:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating structure programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-structure-programatically/m-p/8879138#M1687887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 11px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://answers.sap.com/people/shambu.vs3" id="jive-40193412753196833098292" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; text-decoration: underline !important; color: #3778c7;"&gt;Shambu VS&lt;/A&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks a lot.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought there are no FM to create new structure / table. I searched and debugged structure creation process, but did not find this FM. Even i randomly tried in SE37 DD_TABL&lt;STRONG&gt;E&lt;/STRONG&gt;_PUT coz i thought as DD_DTEL_PUT is there so there might be a chance that for structure and table also it will be there. But only difference is i wrote extra E. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/843/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Between how you found this FM, i mean DD_TABL_PUT ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 11:20:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-structure-programatically/m-p/8879138#M1687887</guid>
      <dc:creator>ankur_sharma16</dc:creator>
      <dc:date>2012-08-02T11:20:13Z</dc:date>
    </item>
  </channel>
</rss>

