<?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 when creating dynamic Z-Transparent table during runtime. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-creating-dynamic-z-transparent-table-during-runtime/m-p/8611016#M1663185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you debugged and checked value of sy-subrc after every FM?&lt;/P&gt;&lt;P&gt;DO you get any error message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Feb 2012 05:24:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-29T05:24:40Z</dc:date>
    <item>
      <title>Problem when creating dynamic Z-Transparent table during runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-creating-dynamic-z-transparent-table-during-runtime/m-p/8611015#M1663184</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;&lt;/P&gt;&lt;P&gt;The below code seems not working when i try to create a Z-transparent table using DDIF_TABL_PUT, with the table structure of SPFLI using DDIF_TABL_GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any mistake there? Please correct me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_dd03p LIKE dd03p OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      wa_dd02v LIKE dd02v,&lt;/P&gt;&lt;P&gt;      wa_dd09l LIKE dd09l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_TABL_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      name          = 'SPFLI'&lt;/P&gt;&lt;P&gt;      state         = 'A'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      dd02v_wa      = wa_dd02v&lt;/P&gt;&lt;P&gt;      dd09l_wa      = wa_dd09l&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dd03p_tab     = t_dd03p&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      illegal_input = 1.         " Value not Allowed for Parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_TABL_PUT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      name              = 'ZNEWTABLE'&lt;/P&gt;&lt;P&gt;      dd02v_wa          = wa_dd02v&lt;/P&gt;&lt;P&gt;      dd09l_wa          = wa_dd09l&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dd03p_tab         = t_dd03p&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      tabl_not_found    = 1          " Table Header could not be Found&lt;/P&gt;&lt;P&gt;      name_inconsistent = 2          " Name in Sources Inconsistent with NAME&lt;/P&gt;&lt;P&gt;      tabl_inconsistent = 3          " Inconsistent Sources&lt;/P&gt;&lt;P&gt;      put_failure       = 4          " Write Error (ROLLBACK Recommended)&lt;/P&gt;&lt;P&gt;      put_refused       = 5.         " Write not Allowed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_TABL_ACTIVATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      name = 'ZNEWTABLE'           " ddobjname Name of the Table to be Activated&lt;/P&gt;&lt;P&gt;      auth_chk = 'X'               " ddbool_d  'X': Perform Author. Check for DB Operations&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found = 1                " Table not Found&lt;/P&gt;&lt;P&gt;      put_failure = 2.             " Table could not be Written&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 04:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-creating-dynamic-z-transparent-table-during-runtime/m-p/8611015#M1663184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T04:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when creating dynamic Z-Transparent table during runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-creating-dynamic-z-transparent-table-during-runtime/m-p/8611016#M1663185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you debugged and checked value of sy-subrc after every FM?&lt;/P&gt;&lt;P&gt;DO you get any error message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 05:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-creating-dynamic-z-transparent-table-during-runtime/m-p/8611016#M1663185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T05:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when creating dynamic Z-Transparent table during runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-creating-dynamic-z-transparent-table-during-runtime/m-p/8611017#M1663186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use the below code. i have emtnioned for creating one internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_tab TYPE TABLE OF dfies,&lt;/P&gt;&lt;P&gt;wa_tab TYPE dfies,&lt;/P&gt;&lt;P&gt;i_fc TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;w_table TYPE dfies-tabname,&lt;/P&gt;&lt;P&gt;wa_fc TYPE lvc_s_fcat,&lt;/P&gt;&lt;P&gt;w_dy_table TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_table&amp;gt; TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH : i_fc, i_tab.&lt;/P&gt;&lt;P&gt;CLEAR: wa_tab, w_dy_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_table = Source table name from selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**get the structure details and fill the field catalogue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DDIF_FIELDINFO_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = w_table&lt;/P&gt;&lt;P&gt;langu = sy-langu&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dfies_tab = i_tab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;not_found = 1&lt;/P&gt;&lt;P&gt;internal_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_tab into wa_tab.&lt;/P&gt;&lt;P&gt;CLEAR : wa_fc.&lt;/P&gt;&lt;P&gt;wa_fc-fieldname = wa_tab-fieldname.&lt;/P&gt;&lt;P&gt;wa_fc-datatype = wa_tab-inttype.&lt;/P&gt;&lt;P&gt;wa_fc-inttype = wa_tab-inttype.&lt;/P&gt;&lt;P&gt;wa_fc-intlen = wa_tab-outputlen.&lt;/P&gt;&lt;P&gt;wa_fc-decimals = wa_tab-decimals.&lt;/P&gt;&lt;P&gt;wa_fc-ref_table = w_table.&lt;/P&gt;&lt;P&gt;wa_fc-ref_field = wa_tab-fieldname.&lt;/P&gt;&lt;P&gt;APPEND wa_fc TO i_fc.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK i_fc[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**if field catalogue is filled, then pass it to method to create the internal table, **which then assign it to field symbol and utilize as required.&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;it_fieldcatalog = i_fc&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ep_table = w_dy_table.&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;UNASSIGN: &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN w_dy_table-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE u2018Error while creating dynamic tableu2019.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 05:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-creating-dynamic-z-transparent-table-during-runtime/m-p/8611017#M1663186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T05:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when creating dynamic Z-Transparent table during runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-creating-dynamic-z-transparent-table-during-runtime/m-p/8611018#M1663187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info..&lt;/P&gt;&lt;P&gt;I have solve my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 09:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-creating-dynamic-z-transparent-table-during-runtime/m-p/8611018#M1663187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T09:40:06Z</dc:date>
    </item>
  </channel>
</rss>

