<?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 ALV Table Ouput in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791527#M651293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply .&lt;/P&gt;&lt;P&gt;Tats okey, but in that case I've to code 5 different field catalog merge. I was thinking of writing only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean , if radiobutton  1 is selected then,&lt;/P&gt;&lt;P&gt;             field catalog for first radiobutton.&lt;/P&gt;&lt;P&gt;            if radiobutton  2 is selected then,&lt;/P&gt;&lt;P&gt;             field catalog for second radiobutton.&lt;/P&gt;&lt;P&gt;It becomes lenghty coding?&lt;/P&gt;&lt;P&gt;Is it could be resolved in any other way?waiting for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Sep 2007 09:51:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-01T09:51:02Z</dc:date>
    <item>
      <title>Dynamic ALV Table Ouput</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791525#M651291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one final table(assume it contains 25 fields)  for final output in ALV report.&lt;/P&gt;&lt;P&gt;I've 5 different radiobuttons on my selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending upon the radiobutton selected , user needs 5 different report outputs &lt;/P&gt;&lt;P&gt;from this one table.&lt;/P&gt;&lt;P&gt;I mean if he selected first radiobutton , he needs some 15 fields only to be displayed out of 25 fields.&lt;/P&gt;&lt;P&gt;Similarly if he select 3rd radiobutton then he needs some 10 fields only to be displayed out of 25 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display the reuired fields only from my final table ?Otherwise I've create 5 more int.tables and move the contents depending upon the radibutton selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me, point for sure..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ponraj.s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 09:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791525#M651291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T09:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Table Ouput</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791526#M651292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ponraj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no need to Create 5 internal Tables.&lt;/P&gt;&lt;P&gt;Declare the Final internal table with All the 25 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the Radio button selection you have to Hide some fields using the FIELD CATALOG attribute NO_OUT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 09:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791526#M651292</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-01T09:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Table Ouput</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791527#M651293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply .&lt;/P&gt;&lt;P&gt;Tats okey, but in that case I've to code 5 different field catalog merge. I was thinking of writing only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean , if radiobutton  1 is selected then,&lt;/P&gt;&lt;P&gt;             field catalog for first radiobutton.&lt;/P&gt;&lt;P&gt;            if radiobutton  2 is selected then,&lt;/P&gt;&lt;P&gt;             field catalog for second radiobutton.&lt;/P&gt;&lt;P&gt;It becomes lenghty coding?&lt;/P&gt;&lt;P&gt;Is it could be resolved in any other way?waiting for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 09:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791527#M651293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T09:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Table Ouput</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791528#M651294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have to write some logical coding like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose u have alv with five fields f1,f2...so on  f5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rb1(radio button 1) is selected then u want to display first three fields,&lt;/P&gt;&lt;P&gt;if rb2 is selected then u want to display last three fields&lt;/P&gt;&lt;P&gt;and if rb3 is selected then u want to display middle three fields of alv in display,&lt;/P&gt;&lt;P&gt;so u have to write ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rb2 = 'x' or rb3 = 'x'.&lt;/P&gt;&lt;P&gt;no_out = 'x' for the f1 field.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if rb3 = 'x'.&lt;/P&gt;&lt;P&gt;no_out = 'x' for f2&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt;third field is displaying for all the radio button selection so if condition for it.&lt;/P&gt;&lt;P&gt;simply write the code for it.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt;if rb1 = 'x'.&lt;/P&gt;&lt;P&gt;no_out = 'x' for f4&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if rb2 = 'x' or rb1 = 'x'.&lt;/P&gt;&lt;P&gt;no_out = 'x' for the f5 field.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is helpful for u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 10:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791528#M651294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T10:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Table Ouput</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791529#M651295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dharmishta,&lt;/P&gt;&lt;P&gt;I agree what you are saying, this think i 've to do it in my field catalog, but i dont want this lenghty coding to be doen. since i've 25 fields and with 5 radiobutton it makes me to do 5 different field catalogs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something has to be doen dynamicall?Please think of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ponraj.s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 10:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791529#M651295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-01T10:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Table Ouput</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791530#M651296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM build_fieldcat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF itab[] IS INITIAL.&lt;/P&gt;&lt;P&gt;  MESSAGE 'No Values exist for the Selection.' TYPE 'S'.&lt;/P&gt;&lt;P&gt;  STOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DEFINE m_fieldcat.&lt;/P&gt;&lt;P&gt;    itfieldcat-fieldname = &amp;amp;1.&lt;/P&gt;&lt;P&gt;    itfieldcat-col_pos = &amp;amp;2.&lt;/P&gt;&lt;P&gt;    itfieldcat-seltext_l = &amp;amp;3.&lt;/P&gt;&lt;P&gt;    itfieldcat-do_sum = &amp;amp;4.&lt;/P&gt;&lt;P&gt;    itfieldcat-outputlen = &amp;amp;5.&lt;/P&gt;&lt;P&gt;    append itfieldcat to itfieldcat.&lt;/P&gt;&lt;P&gt;    clear itfieldcat.&lt;/P&gt;&lt;P&gt;  END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  m_fieldcat 'LFBNR' '' 'GR NO' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'BELNR' '' 'MIRO NO' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'BUZEI' '' 'MIRO LN ITM' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'LIFNR' '' 'VENDOR CODE' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'NAME1' '' 'VENDOR NAME'  '' 14.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'STR_SUPPL1' '' 'VENDOR ADDRESS' '' '15'  .&lt;/P&gt;&lt;P&gt;  m_fieldcat 'POST_CODE1' '' 'PINCODE' '' 6.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'XBLNR' '' 'VEN INV NO' '' 16.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'BLDAT' '' 'VEN INV DATE' '' 8.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'EBELN' '' 'PUR ORD NO' '' 10.&lt;/P&gt;&lt;P&gt;*Start of Insertion by Kiran.K to display PO Doc. Type dated 060707.&lt;/P&gt;&lt;P&gt;*m_fieldcat 'BSART' '' 'PUR ORD DOC.TYPE' '' 5.   "Pur.Doc Type&lt;/P&gt;&lt;P&gt; m_fieldcat 'BATXT' '' 'PUR ORD DOC.TYPE' '' 20.  "Pur Doc. Type Description&lt;/P&gt;&lt;P&gt;*End of Insertion by Kiran.K to display PO Doc. Type dated 060707&lt;/P&gt;&lt;P&gt;  m_fieldcat 'EBELP' '' 'PUR LN ITM' '' 5.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'WERKS' '' 'PLANT' '' 8.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'MATNR' '' 'MAT NO' '' 18.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'MAKTX' '' 'MAT DESC' '' 15.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'MATKL' '' 'MAT CC' '' 7.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'MENGE' '' 'QTY' '' 13.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'WRBTR' '' 'VAL. OF GOODS' '' 11.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'WAERS' '' 'CURR' '' 5.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'INRVAL' '' 'INR VALUE' '' 13.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'BED' '' 'BED' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'CVD' '' 'CVD' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'ECVD' '' 'CESS ON CVD' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'ECED' '' 'CESS ON DUTIES' '' 13.&lt;/P&gt;&lt;P&gt;*Bill of Lading Removed and Bill of Entry Added.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; m_fieldcat 'FRBNR' '' 'BILL OF LADING' '' 13.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  m_fieldcat 'BELNR1' '' 'BILL OF ENTRY' '' 13.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'REVERSE' '' 'Reversed' '' 2.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'FIDOC' '' 'FI DOC NO' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'MWSKZ' '' 'TC' '' 2.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'BKLAS' '' 'VL CLS' '' 4.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'CITY1' '' 'VENDOR CITY' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'QTR_MTH' '' 'MONTH' '' 10.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'QTR_YR' '' 'YEAR' '' 4.&lt;/P&gt;&lt;P&gt;  m_fieldcat 'REMARKS' '' 'REMARKS' '' 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " build_fieldcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the fieldcatalog in the above said way,so that there won't be lengthy coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 10:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791530#M651296</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-09-01T10:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Table Ouput</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791531#M651297</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;you will find a solution below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create an internal table wt_not_out_fields. This internal table will have 6 fields :&lt;/P&gt;&lt;P&gt;1/fieldname,&lt;/P&gt;&lt;P&gt;2/radio_button_number_01 TYPE char01&lt;/P&gt;&lt;P&gt;3/radio_button_number_02 TYPE char01&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;6/radio_button_number_05 TYPE char01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to fill the table :&lt;/P&gt;&lt;P&gt;fieldname                       : name of field of the alv table&lt;/P&gt;&lt;P&gt;radio_button_number_01 : 'X' if the field has to be hidden if the radio button 1 is on.&lt;/P&gt;&lt;P&gt;radio_button_number_02 : 'X' if the field has to be hidden if the radio button 2 is on.&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use the table?&lt;/P&gt;&lt;P&gt;Sort and read the table to move 'X' to the FIELD CATALOG attribute NO_OUT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 10:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791531#M651297</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2007-09-01T10:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV Table Ouput</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791532#M651298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One another thing u can do is,&lt;/P&gt;&lt;P&gt;Declare 5 diif internal table having fields &lt;/P&gt;&lt;P&gt;     tablename,&lt;/P&gt;&lt;P&gt;     fieldname&lt;/P&gt;&lt;P&gt;     seltext&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;ok and fill the data into all the five tables according to your requirement of radiobutton selection,&lt;/P&gt;&lt;P&gt;now do the coding in this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rb1='x'.&lt;/P&gt;&lt;P&gt;loop at it1.&lt;/P&gt;&lt;P&gt;  wa_fcat-tabname = it1-tablename.&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = it1-fieldname.&lt;/P&gt;&lt;P&gt;  wa_fcat-seltext_m = it1-seltext.&lt;/P&gt;&lt;P&gt;  APPEND wa_fcat TO temp_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fcat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if rb5='x'.&lt;/P&gt;&lt;P&gt;loop at it5.&lt;/P&gt;&lt;P&gt;  wa_fcat-tabname = it5-tablename.&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = it5-fieldname.&lt;/P&gt;&lt;P&gt;  wa_fcat-seltext_m = it5-seltext.&lt;/P&gt;&lt;P&gt;  APPEND wa_fcat TO temp_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fcat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will definately help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 05:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-table-ouput/m-p/2791532#M651298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T05:51:59Z</dc:date>
    </item>
  </channel>
</rss>

