<?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 experts doubt again in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/experts-doubt-again/m-p/3835155#M922235</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;What are the steps to create a dynamic ALV ? can some one help me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 12:32:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-21T12:32:54Z</dc:date>
    <item>
      <title>experts doubt again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/experts-doubt-again/m-p/3835155#M922235</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;What are the steps to create a dynamic ALV ? can some one help me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 12:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/experts-doubt-again/m-p/3835155#M922235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T12:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: experts doubt again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/experts-doubt-again/m-p/3835156#M922236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its very simple if you understand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make these declarations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:     L_STRUCTURE   TYPE REF TO DATA,&lt;/P&gt;&lt;P&gt;          L_TABLE    TYPE REF TO DATA,&lt;/P&gt;&lt;P&gt;          STRUC_DESC   TYPE REF TO CL_ABAP_STRUCTDESCR,&lt;/P&gt;&lt;P&gt;          LS_LVC_FIELDCATALOGUE  TYPE LVC_S_FCAT,&lt;/P&gt;&lt;P&gt;          LT_LVC_FIELDCATALOGUE  TYPE LVC_T_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS :&lt;/P&gt;&lt;P&gt;  &amp;lt;IT_TABLE&amp;gt;    TYPE STANDARD TABLE,&lt;/P&gt;&lt;P&gt;  &amp;lt;DYN_STR&amp;gt;         TYPE ANY,&lt;/P&gt;&lt;P&gt;  &amp;lt;STR_COMP&amp;gt; TYPE ABAP_COMPDESCR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we create the structure dynamically,&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dynamic creation of a structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE DATA L_STRUCTURE TYPE (P_TABLE).&lt;/P&gt;&lt;P&gt;  ASSIGN L_STRUCTURE-&amp;gt;* TO &amp;lt;DYN_STR&amp;gt;.* Fields Structure&lt;/P&gt;&lt;P&gt;  STRUC_DESC ?= CL_ABAP_TYPEDESCR=&amp;gt;DESCRIBE_BY_DATA( &amp;lt;DYN_STR&amp;gt; ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We build the fieldcatalog by looping the structure :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT STRUC_DESC-&amp;gt;COMPONENTS ASSIGNING &amp;lt;STR_COMP&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Build Fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LS_LVC_FIELDCATALOGUE-FIELDNAME = &amp;lt;STR_COMP&amp;gt;-NAME.&lt;/P&gt;&lt;P&gt;    LS_LVC_FIELDCATALOGUE-REF_TABLE = P_TABLE.&lt;/P&gt;&lt;P&gt;    APPEND LS_LVC_FIELDCATALOGUE TO LT_LVC_FIELDCATALOGUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Build Fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LS_FIELDCATALOGUE-FIELDNAME = &amp;lt;STR_COMP&amp;gt;-NAME.&lt;/P&gt;&lt;P&gt;    LS_FIELDCATALOGUE-REF_TABNAME = P_TABLE.&lt;/P&gt;&lt;P&gt;    APPEND LS_FIELDCATALOGUE TO LT_FIELDCATALOGUE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we create the dynamic internal table:&lt;/P&gt;&lt;P&gt;&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 = LT_LVC_FIELDCATALOGUE&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      EP_TABLE        = L_TABLE.  ASSIGN L_TABLE-&amp;gt;* TO &amp;lt;IT_TABLE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then its a dynamic select if required we can Use. rest is the same process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will give you a link again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/ALV/DynamicALV/Demo.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/ALV/DynamicALV/Demo.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 12:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/experts-doubt-again/m-p/3835156#M922236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T12:36:28Z</dc:date>
    </item>
  </channel>
</rss>

