<?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: when using alv, Optional column in structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502617#M232558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the Fieldcatalog, you will find a field NO_OUT, so when you are building the fieldcatalog, what ever the fields you do not want to show in the output, then FIELDCATALOG-NO_OUT = 'X'. so those fileds will not appear in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Sep 2006 05:56:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-06T05:56:48Z</dc:date>
    <item>
      <title>when using alv, Optional column in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502614#M232555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;I'm using 'reuse_alv_list_display'.&lt;/P&gt;&lt;P&gt;I'm using structure in 'reuse_alv_list_display'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRUCTURE_NAME = 'ZTS001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       I_INTERFACE_CHECK        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         I_CALLBACK_PROGRAM       = PGM&lt;/P&gt;&lt;P&gt;         I_CALLBACK_PF_STATUS_SET = 'SET_STATUS'&lt;/P&gt;&lt;P&gt;         I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;         I_STRUCTURE_NAME         = STRUCTURE_NAME&lt;/P&gt;&lt;P&gt;         IS_LAYOUT                = LAYOUT&lt;/P&gt;&lt;P&gt;         IT_FIELDCAT              = FIELDCAT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       IT_EXCLUDING             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to display not all of structure columns but the structure columns partially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what should I do..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 05:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502614#M232555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T05:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: when using alv, Optional column in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502615#M232556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   ALV gives a facility of choosing layout when the report is displayed. The report will list out all the colums, but you can chnage the layout and can choose which ever columns you want to display. So in this way you can manipulate the format of the report by changing the layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 05:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502615#M232556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T05:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: when using alv, Optional column in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502616#M232557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Hi James,

  You can declare an internal table with those fields and pass that internal table name as structure.

data: begin of itab occurs 0,
        bukrs like t001-bukrs,
        ......
      end of itab.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
I_CALLBACK_PROGRAM = PGM
I_CALLBACK_PF_STATUS_SET = 'SET_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
&amp;lt;b&amp;gt;I_STRUCTURE_NAME = 'ITAB'&amp;lt;/b&amp;gt;
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT
* IT_EXCLUDING =&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 05:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502616#M232557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T05:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: when using alv, Optional column in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502617#M232558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the Fieldcatalog, you will find a field NO_OUT, so when you are building the fieldcatalog, what ever the fields you do not want to show in the output, then FIELDCATALOG-NO_OUT = 'X'. so those fileds will not appear in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 05:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502617#M232558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T05:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: when using alv, Optional column in structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502618#M232559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM : REUSE_ALV_FIELDCATALOG_MERGE and pass the structure 'ZTS001' and get the fieldcatalog into an internal table T_FIELDCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say you dont want to display field 'MATNR' isn ZTS001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T_FIELDCAT WITH KEY FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;T_FIELDCAT-No_OUT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now instead of passing Structure name to REUSE_ALV_GRID_DISPLAY, pass the field catalog T_FIELDCAT in the fieldcatalog tables parameter.&lt;/P&gt;&lt;P&gt;modify t_fieldcat index sy-tabix.&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;Message was edited by: Sharath kumar R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 05:59:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-using-alv-optional-column-in-structure/m-p/1502618#M232559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T05:59:14Z</dc:date>
    </item>
  </channel>
</rss>

