<?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: Dynamic columns..... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531148#M1263633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a dyanamic column is not a tough task .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the time of designing the fieldcatalog you can fix the columns and its text on the basis of condition you want to show in the Grid display .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not clear please do reply .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds ankit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 04:54:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-15T04:54:37Z</dc:date>
    <item>
      <title>Dynamic columns.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531142#M1263627</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;I have a requirement that we must have a report with grid display with the number of columns which will be known during the run time ( dynamic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to acheive the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 04:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531142#M1263627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T04:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531143#M1263628</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;This can be achieved by using the concept of FIELD SYMBOLS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surya kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 04:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531143#M1263628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T04:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531144#M1263629</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;You can use a dynamic table and display the same in the ALV grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Rajat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 04:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531144#M1263629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T04:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531145#M1263630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This question answered several times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/search.jspa?threadID=&amp;amp;q=dynamic" target="test_blank"&gt;https://forums.sdn.sap.com/search.jspa?threadID=&amp;amp;q=dynamic&lt;/A&gt;&lt;EM&gt;AND&lt;/EM&gt;internal&lt;EM&gt;AND&lt;/EM&gt;table&amp;amp;objID=f50&amp;amp;dateRange=all&amp;amp;numResults=15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 04:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531145#M1263630</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-04-15T04:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531146#M1263631</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;Here is another sample code which might help you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  YTEST_R19&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  ytest_r19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mara .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_makt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          matnr type matnr,&lt;/P&gt;&lt;P&gt;          maktx type maktx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        end of ty_makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_makt type ty_makt,&lt;/P&gt;&lt;P&gt;       it_makt type table of ty_makt.&lt;/P&gt;&lt;P&gt;data : wa_lvc_cat  type lvc_s_fcat,&lt;/P&gt;&lt;P&gt;       lt_lvc_cat  type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_mara,&lt;/P&gt;&lt;P&gt;         matnr type matnr,&lt;/P&gt;&lt;P&gt;         aenam type aenam,&lt;/P&gt;&lt;P&gt;         vpsta type vpsta,&lt;/P&gt;&lt;P&gt;         pstat type pstat_d,&lt;/P&gt;&lt;P&gt;        end of ty_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_mara type ty_mara,&lt;/P&gt;&lt;P&gt;       it_mara type standard table of ty_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:    l_col    type sy-tabix,&lt;/P&gt;&lt;P&gt;         l_structure   type ref to data,&lt;/P&gt;&lt;P&gt;         l_dyntable    type ref to data,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        lt_fieldcatalogue     TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         wa_fieldcat type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt;         lt_fieldcat type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;         lt_layout   type slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_text,&lt;/P&gt;&lt;P&gt;         text type string,&lt;/P&gt;&lt;P&gt;        end of ty_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_text type ty_text,&lt;/P&gt;&lt;P&gt;      it_text type table of ty_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_text-text = 'MAterial'.&lt;/P&gt;&lt;P&gt;append wa_text to it_text.&lt;/P&gt;&lt;P&gt;wa_text-text = 'Name of Person'.&lt;/P&gt;&lt;P&gt;append wa_text to it_text.&lt;/P&gt;&lt;P&gt;wa_text-text = 'Maintenance status '.&lt;/P&gt;&lt;P&gt;append wa_text to it_text.&lt;/P&gt;&lt;P&gt;wa_text-text = 'Maintenance '.&lt;/P&gt;&lt;P&gt;append wa_text to it_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Field symbols declarations&lt;/P&gt;&lt;P&gt;field-symbols :&lt;/P&gt;&lt;P&gt;  &amp;lt;header&amp;gt;    type any,&lt;/P&gt;&lt;P&gt;  &amp;lt;dynheader&amp;gt; type any,&lt;/P&gt;&lt;P&gt;  &amp;lt;dyndata&amp;gt;   type any,&lt;/P&gt;&lt;P&gt;  &amp;lt;ls_table&amp;gt;      type any,&lt;/P&gt;&lt;P&gt;  &amp;lt;dynamictable&amp;gt;      type standard table,&lt;/P&gt;&lt;P&gt;  &amp;lt;it_table&amp;gt; type standard table,&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_mara1&amp;gt; type  ty_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Initialization event&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;*Start of selection event&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select matnr maktx from makt into table it_makt where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select matnr&lt;/P&gt;&lt;P&gt;         aenam&lt;/P&gt;&lt;P&gt;         vpsta&lt;/P&gt;&lt;P&gt;         pstat&lt;/P&gt;&lt;P&gt;    from mara&lt;/P&gt;&lt;P&gt;    into table it_mara&lt;/P&gt;&lt;P&gt;    for all entries in it_makt&lt;/P&gt;&lt;P&gt;    where matnr eq it_makt-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_lvc_cat-fieldname = 'COLUMNTEXT'.&lt;/P&gt;&lt;P&gt;  wa_lvc_cat-ref_table = 'LVC_S_DETA'.&lt;/P&gt;&lt;P&gt;  append wa_lvc_cat to lt_lvc_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table it_makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  do sy-tfill times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write sy-index to wa_lvc_cat-fieldname left-justified.&lt;/P&gt;&lt;P&gt;    concatenate 'VALUE' wa_lvc_cat-fieldname&lt;/P&gt;&lt;P&gt;           into wa_lvc_cat-fieldname.&lt;/P&gt;&lt;P&gt;    wa_lvc_cat-ref_field = 'VALUE'.&lt;/P&gt;&lt;P&gt;    wa_lvc_cat-ref_table = 'LVC_S_DETA'.&lt;/P&gt;&lt;P&gt;    append wa_lvc_cat to lt_lvc_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      it_fieldcatalog = lt_lvc_cat&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      ep_table        = l_dyntable.&lt;/P&gt;&lt;P&gt;  assign l_dyntable-&amp;gt;* to &amp;lt;dynamictable&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create structure as structure of the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create data l_structure like line of &amp;lt;dynamictable&amp;gt;.&lt;/P&gt;&lt;P&gt;  assign l_structure-&amp;gt;* to &amp;lt;header&amp;gt;.&lt;/P&gt;&lt;P&gt;  create data l_structure like line of it_mara.&lt;/P&gt;&lt;P&gt;  assign l_structure-&amp;gt;* to &amp;lt;wa_mara1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table it_makt.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the internal to display &amp;lt;dynamictable&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  do sy-tfill times.&lt;/P&gt;&lt;P&gt;    if sy-index = 1.&lt;/P&gt;&lt;P&gt;      read table it_text into wa_text index 1.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  For each field of it_table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    assign component 1 of structure &amp;lt;header&amp;gt; to &amp;lt;dynheader&amp;gt;.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0. exit .endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table it_text into wa_text index sy-index.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Fill 1st column&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &amp;lt;dynheader&amp;gt; = wa_text-text.&lt;/P&gt;&lt;P&gt;    if &amp;lt;dynheader&amp;gt; is initial.&lt;/P&gt;&lt;P&gt;      &amp;lt;dynheader&amp;gt; = wa_text-text.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Filling the other columns&lt;/P&gt;&lt;P&gt;    loop at it_mara into &amp;lt;wa_mara1&amp;gt;.&lt;/P&gt;&lt;P&gt;      l_col = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;      assign component sy-index of structure &amp;lt;wa_mara1&amp;gt; to &amp;lt;dyndata&amp;gt;.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0. exit .endif.&lt;/P&gt;&lt;P&gt;      assign component l_col of structure &amp;lt;header&amp;gt; to&lt;/P&gt;&lt;P&gt;&amp;lt;dynheader&amp;gt;.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0. exit .endif.&lt;/P&gt;&lt;P&gt;      write &amp;lt;dyndata&amp;gt; to &amp;lt;dynheader&amp;gt; left-justified.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    append &amp;lt;header&amp;gt; to &amp;lt;dynamictable&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;surya kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 04:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531146#M1263631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T04:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531147#M1263632</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; FIELD-SYMBOLS: &amp;lt;L_TABLE&amp;gt; TYPE TABLE,&lt;/P&gt;&lt;P&gt;               &amp;lt;L_FIELD&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;               &amp;lt;L_LINE&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NEW_TABLE TYPE REF TO DATA,&lt;/P&gt;&lt;P&gt;      NEW_LINE  TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IS_LVC_CAT TYPE LVC_S_FCAT,&lt;/P&gt;&lt;P&gt;      IT_LVC_CAT TYPE LVC_T_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Assign the structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IS_LVC_CAT-FIELDNAME = 'NFMAT'.&lt;/P&gt;&lt;P&gt;  IS_LVC_CAT-INTLEN = '18'.&lt;/P&gt;&lt;P&gt;  APPEND IS_LVC_CAT TO IT_LVC_CAT.&lt;/P&gt;&lt;P&gt;&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 = IT_LVC_CAT&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      EP_TABLE        = NEW_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN  NEW_TABLE-&amp;gt;* TO &amp;lt;L_TABLE&amp;gt;.&lt;/P&gt;&lt;P&gt;  CREATE DATA NEW_LINE LIKE LINE OF &amp;lt;L_TABLE&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN NEW_LINE-&amp;gt;* TO &amp;lt;L_LINE&amp;gt;.&lt;/P&gt;&lt;P&gt;  CLEAR COUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way u can create a dynamic table where in u can define ur fields in the fieldcatalog which creates a refrence ponter by referring to which u can create a work area and in turn define the table by using field symbol of type table.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ajit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 04:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531147#M1263632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T04:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531148#M1263633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a dyanamic column is not a tough task .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the time of designing the fieldcatalog you can fix the columns and its text on the basis of condition you want to show in the Grid display .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not clear please do reply .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds ankit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 04:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531148#M1263633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T04:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531149#M1263634</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;I have all the data in a internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the Rows must become columns and columns as rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats is I need a Pivot table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531149#M1263634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T06:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic columns.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531150#M1263635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   For dynamically displaying the output , build your fieldcatalog  in a dynamic way , so  when you display with Grid or List it will display according to your fieldcatalog. For Eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In FieldCatalog I have declared the field according to there values.&lt;/P&gt;&lt;P&gt;Here I have used Flags in fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF socity_interest_flag = 'X'.&lt;/P&gt;&lt;P&gt;htab-fieldname   = 'SOCIETY_LOAN'.&lt;/P&gt;&lt;P&gt;  htab-seltext_m   = 'SOC.LOAN INT.'.&lt;/P&gt;&lt;P&gt;  htab-outputlen   = '15'.&lt;/P&gt;&lt;P&gt;  htab-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;  append htab to vtab .&lt;/P&gt;&lt;P&gt;  clear  htab.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF lic_flag = 'X'.&lt;/P&gt;&lt;P&gt;htab-fieldname   = 'LIC'.&lt;/P&gt;&lt;P&gt;  htab-seltext_m   = 'LIC'.&lt;/P&gt;&lt;P&gt;  htab-outputlen   = '15'.&lt;/P&gt;&lt;P&gt;  htab-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;  append htab to vtab .&lt;/P&gt;&lt;P&gt;  clear  htab.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if socity_interest_flag or lic_flag have values than only there fieldcatalog will built and according to that we will get the dynamic output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-columns/m-p/5531150#M1263635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T06:17:21Z</dc:date>
    </item>
  </channel>
</rss>

