<?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: hide a field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718458#M630635</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;Use the system field SY-UNAME to find the user name.and then set the no_out property of the field  as 'X' in field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcat-fieldname= 'ITAB-WRBTR'.&lt;/P&gt;&lt;P&gt;If sy-uname = 'VIGNESH'.&lt;/P&gt;&lt;P&gt;fieldcat-no_out = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append fieldcat to it_fieldcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2007 07:34:27 GMT</pubDate>
    <dc:creator>former_member491305</dc:creator>
    <dc:date>2007-08-29T07:34:27Z</dc:date>
    <item>
      <title>hide a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718453#M630630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to hide a field(column) based on the user  in basic or secondary list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 07:27:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718453#M630630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T07:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: hide a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718454#M630631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;No need to retrieve the field from the database if u dont want that field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 07:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718454#M630631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T07:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: hide a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718455#M630632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;enclose the hide statement in if and endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-uname = 'abc'.&lt;/P&gt;&lt;P&gt;hide zvar.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 07:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718455#M630632</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-08-29T07:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: hide a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718456#M630633</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;          After a write stetment write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          &amp;lt;b&amp;gt;hide fieldnaem&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use HIDE technique while creating LIST level to store line -specific information for later use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax: HIDE &amp;lt;variable&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this statement place the contents of the variable &amp;lt;variable&amp;gt; for the current output line(SY-LINNO) into the HIDE area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can think of the HIDE area as a table, in which the system stores the field name, field contents and line number in which field exisisting. as soon as they are needed the system reads the values from the table(HIDE) using READ LINE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind while working with HIDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Allways keep HIDE &amp;lt;variable&amp;gt; statement after WRITE statement for more readable format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) All way keep HIDE &amp;lt;variable&amp;gt; statement inside the LOOP statement, because syatem stores all the hide variable in system genarated table space, we can process table data throug it's work area only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report Zreport_hide.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*table work area&lt;/P&gt;&lt;P&gt;tables: lfa1,ekko,ekpo.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*selection-screen logic&lt;/P&gt;&lt;P&gt;select-options: s_lifnr for lfa1-lifnr obligatory.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*logic for creating internal table&lt;/P&gt;&lt;P&gt;data: begin of it _lfa1 occurs 0,&lt;/P&gt;&lt;P&gt;              it_lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;              name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;       end of it_lfa1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: begin of it _ekko occurs 0,&lt;/P&gt;&lt;P&gt;              it_ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;              aedat like ekko-aedat,&lt;/P&gt;&lt;P&gt;       end of it_ekko.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;logic for genarating basic list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; select lifnr name1 from lfa1 into table it_lfa1   where lifnr  in s_lifnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*processing the data.&lt;/P&gt;&lt;P&gt;loop at it_lfa1.&lt;/P&gt;&lt;P&gt;write:/ it_lfa1-lifnr,&lt;/P&gt;&lt;P&gt;          it_lfa1-name1,'&lt;/P&gt;&lt;P&gt;          HIDE it_lfa1-lifnr.  "here hide the varible lifnr&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*logic for genarating secondary list&lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;case sy-lsind.&lt;/P&gt;&lt;P&gt;when 1.&lt;/P&gt;&lt;P&gt;select ebeln aedat from ekko into table it_ekko   where lifnr = it_lfa1-lifnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*processing seconadry list data.&lt;/P&gt;&lt;P&gt;loop at it_ekko.&lt;/P&gt;&lt;P&gt;write:/ it_ekko-ebeln,&lt;/P&gt;&lt;P&gt;          it_ekko-aedat,&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;&lt;/P&gt;&lt;P&gt;regards,&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;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ASHOK KUMAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 07:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718456#M630633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T07:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: hide a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718457#M630634</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;use HIDE KEYWORD TO HIDE A column as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in end of selection event, after u display clicked item to user use hide statement as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIDE ITAB-MATNR. // MATNR IS THE CLICKED ITEM I THE INTERNAL TABLE ITAB.&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 HELPFUL REWARD SOME POINTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 07:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718457#M630634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T07:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: hide a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718458#M630635</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;Use the system field SY-UNAME to find the user name.and then set the no_out property of the field  as 'X' in field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcat-fieldname= 'ITAB-WRBTR'.&lt;/P&gt;&lt;P&gt;If sy-uname = 'VIGNESH'.&lt;/P&gt;&lt;P&gt;fieldcat-no_out = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append fieldcat to it_fieldcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 07:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-a-field/m-p/2718458#M630635</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-08-29T07:34:27Z</dc:date>
    </item>
  </channel>
</rss>

