<?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: What is the wrong in the below code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-wrong-in-the-below-code/m-p/3386204#M813050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This time i am getting an error name inconsistent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 16:55:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T16:55:35Z</dc:date>
    <item>
      <title>What is the wrong in the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-wrong-in-the-below-code/m-p/3386202#M813048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a DDIC table dynamically through a program.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  zbc_create_table2.

TABLES: dd02l.

PARAMETER: tab_name TYPE tabname OBLIGATORY VISIBLE LENGTH 18 .
SELECT-OPTIONS s_table FOR dd02l-tabname.

DATA: gs_cl_bc_dyn TYPE REF TO zcl_bc_dyn.
DATA rc TYPE sy-subrc.
DATA: ls_dd02v TYPE dd02v.
DATA: gt_fields TYPE TABLE OF dd03p,
      gs_field TYPE dd03p,
      gs_progname TYPE trdir-name,
      ls_dd05m TYPE dd05m,
      ls_dd08v TYPE dd08v.
ls_dd05m-tabname = tab_name.
ls_dd08v-tabname = tab_name.

TRANSLATE gs_progname TO UPPER CASE.

CREATE OBJECT gs_cl_bc_dyn.


gs_field-tabname = 'TEST'. gs_field-fieldname = 'MANDT'.
gs_field-position = '1'. gs_field-keyflag = 'X'.
gs_field-rollname = 'CHAR1'.

APPEND gs_field TO gt_fields.


ls_dd02v-tabname = tab_name.
ls_dd02v-contflag = 'A'.
ls_dd02v-mainflag = 'X'.


CALL FUNCTION 'DDIF_TABL_PUT'
  EXPORTING
    name                    = tab_name
 dd02v_wa                = ls_dd02v
*   DD09L_WA                = ' '
 TABLES
   dd03p_tab               = gt_fields
*   DD05M_TAB               = ls_DD02V
*   DD08V_TAB               = ls_DD08v
*   DD35V_TAB               =
*   DD36M_TAB               =
 EXCEPTIONS
   tabl_not_found          = 1
   name_inconsistent       = 2
   tabl_inconsistent       = 3
   put_failure             = 4
   put_refused             = 5
   OTHERS                  = 6
          .

IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'DDIF_TABL_ACTIVATE'
  EXPORTING
    name        = tab_name
*      auth_chk    = 'X'
*      prid        = -1
  IMPORTING
    rc          = rc
  EXCEPTIONS
    not_found   = 1
    put_failure = 2
    OTHERS      = 3.
IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting an error message 'tabl_inconsistent' in FM  'DDIF_TABL_PUT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 16:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-wrong-in-the-below-code/m-p/3386202#M813048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T16:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the wrong in the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-wrong-in-the-below-code/m-p/3386203#M813049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Lisa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all you have to add the following lines (before the FM is called to create the table):&lt;/P&gt;&lt;P&gt;ls_dd02v-tabclass = 'TRANSP'.&lt;/P&gt;&lt;P&gt;this will create a transparent table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but there could be more errors, you just have to debug the FM if it still does not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps some&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 16:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-wrong-in-the-below-code/m-p/3386203#M813049</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-19T16:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is the wrong in the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-wrong-in-the-below-code/m-p/3386204#M813050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This time i am getting an error name inconsistent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 16:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-wrong-in-the-below-code/m-p/3386204#M813050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T16:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is the wrong in the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-wrong-in-the-below-code/m-p/3386205#M813051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that the name of the table in TABNAME is in the customer namespace, meaning that it begins with "Z" or "Y".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 16:57:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-wrong-in-the-below-code/m-p/3386205#M813051</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-02-19T16:57:07Z</dc:date>
    </item>
  </channel>
</rss>

