<?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 Dynamically changing ALV grid output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528983#M241929</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;   i have a selection screen on which there are 6&lt;/P&gt;&lt;P&gt;   checkboxes. depending on the combination of check &lt;/P&gt;&lt;P&gt;   boxes selected the no of colums in the ALV grid output&lt;/P&gt;&lt;P&gt;   should change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  for eg.  if check box 3 , check box 5 , and check box 6 &lt;/P&gt;&lt;P&gt;  are selected then a fieldcatalog should be created which&lt;/P&gt;&lt;P&gt;  will have fields corresponding to check box 3, then 5 &lt;/P&gt;&lt;P&gt; and then 6 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if only 5 ,6 are selected columns corresponding to only &lt;/P&gt;&lt;P&gt;  them should be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i cant write the code to populate fieldcat for each&lt;/P&gt;&lt;P&gt;  of the combination of the 6 chkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  is there any other way to do it??&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; Tarang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2006 07:46:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-21T07:46:45Z</dc:date>
    <item>
      <title>Dynamically changing ALV grid output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528983#M241929</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;   i have a selection screen on which there are 6&lt;/P&gt;&lt;P&gt;   checkboxes. depending on the combination of check &lt;/P&gt;&lt;P&gt;   boxes selected the no of colums in the ALV grid output&lt;/P&gt;&lt;P&gt;   should change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  for eg.  if check box 3 , check box 5 , and check box 6 &lt;/P&gt;&lt;P&gt;  are selected then a fieldcatalog should be created which&lt;/P&gt;&lt;P&gt;  will have fields corresponding to check box 3, then 5 &lt;/P&gt;&lt;P&gt; and then 6 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if only 5 ,6 are selected columns corresponding to only &lt;/P&gt;&lt;P&gt;  them should be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i cant write the code to populate fieldcat for each&lt;/P&gt;&lt;P&gt;  of the combination of the 6 chkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  is there any other way to do it??&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; Tarang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 07:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528983#M241929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T07:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing ALV grid output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528984#M241930</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 &amp;lt;b&amp;gt;'NO_OUT'&amp;lt;/b&amp;gt; option to hide columns depending on selection. In this way you have to build only one field catalog.&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;HRA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 07:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528984#M241930</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-08-21T07:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing ALV grid output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528985#M241931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try like this. When u r populating the field catalog, U check for the checkbox values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_CHK1 = 'X' and P_CHK2 = 'X' and P_CHK3 = 'X'.&lt;/P&gt;&lt;P&gt;Populate the fieldcatalog values for the particular field.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 07:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528985#M241931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T07:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing ALV grid output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528986#M241932</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;&lt;/P&gt;&lt;P&gt;Based on your Check box selection , use the Fieldcat option &amp;lt;b&amp;gt;TECH = 'X'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if check = 'X'.
fieldcat-tech = 'X'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TECH = 'X' will not show the column in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 07:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528986#M241932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T07:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing ALV grid output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528987#M241933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi HRA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   but this way also i will have to write&lt;/P&gt;&lt;P&gt;   several if statements like.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  1. if chk1 = 'X' &lt;/P&gt;&lt;P&gt;  2. if chk1 = 'X' and Chk3 = 'X'&lt;/P&gt;&lt;P&gt;  3. if chk3 = 'X' and chk 7 = 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; so there will be (2 raise to 6 )i.e 64 combinations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; any other way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 07:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528987#M241933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T07:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing ALV grid output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528988#M241934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ya that's true that you can't write statment for all but you can proceed in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make one internal table,&lt;/P&gt;&lt;P&gt;data: begin of it_col occurs 0,&lt;/P&gt;&lt;P&gt;check(10),&lt;/P&gt;&lt;P&gt;field(10),&lt;/P&gt;&lt;P&gt;end of it_col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill this table as,&lt;/P&gt;&lt;P&gt;it_col-check = 'CHK1'.&lt;/P&gt;&lt;P&gt;it_col-field = 'FLD11'.&lt;/P&gt;&lt;P&gt;append it_col.&lt;/P&gt;&lt;P&gt;it_col-check = 'CHK1'.&lt;/P&gt;&lt;P&gt;it_col-field = 'FLD12'.&lt;/P&gt;&lt;P&gt;append it_col.&lt;/P&gt;&lt;P&gt;it_col-check = 'CHK2'.&lt;/P&gt;&lt;P&gt;it_col-field = 'FLD13'.&lt;/P&gt;&lt;P&gt;append it_col.&lt;/P&gt;&lt;P&gt;it_col-check = 'CHK2'.&lt;/P&gt;&lt;P&gt;it_col-field = 'FLD11'.&lt;/P&gt;&lt;P&gt;append it_col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, &lt;/P&gt;&lt;P&gt;depending upon your selection of checkboxes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if chk1 = 'X'.&lt;/P&gt;&lt;P&gt;loop at it_col where check = 'CHK1'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;populate your field catalog.  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if chk2 = 'X'.&lt;/P&gt;&lt;P&gt;loop at it_col where check = 'CHK2'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;populate your field catalog.  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last you will be having your fields in catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naimesg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 09:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-alv-grid-output/m-p/1528988#M241934</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-08-21T09:20:31Z</dc:date>
    </item>
  </channel>
</rss>

