Hide a field

how to hide a field(column) based on the user  in basic or secondary list

hi,
          After a write stetment write
          <b>hide fieldnaem</b>
We can use HIDE technique while creating LIST level to store line -specific information for later use.
syntax: HIDE <variable>.
this statement place the contents of the variable <variable> for the current output line(SY-LINNO) into the HIDE area.
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.
Keep in mind while working with HIDE.
1) Allways keep HIDE <variable> statement after WRITE statement for more readable format.
2) All way keep HIDE <variable> 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.
Sample Program.
Report Zreport_hide.
*table work area
tables: lfa1,ekko,ekpo.
*selection-screen logic
select-options: s_lifnr for lfa1-lifnr obligatory.
*logic for creating internal table
data: begin of it _lfa1 occurs 0,
              it_lifnr like lfa1-lifnr,
              name1 like lfa1-name1,
       end of it_lfa1.
data: begin of it _ekko occurs 0,
              it_ebeln like ekko-ebeln,
              aedat like ekko-aedat,
       end of it_ekko.
logic for genarating basic list
start-of-selection.
select lifnr name1 from lfa1 into table it_lfa1   where lifnr  in s_lifnr.
*processing the data.
loop at it_lfa1.
write:/ it_lfa1-lifnr,
          it_lfa1-name1,'
          HIDE it_lfa1-lifnr.  "here hide the varible lifnr
endloop.
*logic for genarating secondary list
at line-selection.
case sy-lsind.
when 1.
select ebeln aedat from ekko into table it_ekko   where lifnr = it_lfa1-lifnr.
*processing seconadry list data.
loop at it_ekko.
write:/ it_ekko-ebeln,
          it_ekko-aedat,
endloop.
regards,
Regards
Message was edited by:
        ASHOK KUMAR

Similar Messages

  • In ALV report.The user wants to hide specfic fields

    Hi
    In ALV report.The user wants to hide specfic fields  but the user must be able to add these fields to the report:
    can any one give the suggestions

    in reuse alv list display or grid
    i_save  = 'A'.
    now user can choose the layout.
    for hiding
    in fieldcat
    wfieldcat-No_out = 'X'.
    regards
    shiba dutta

  • How to add and hide more fields in PPM?

    Hello,
    Im new to this tool and I would like to know how to add and/or hide customized fields. I've only know that Its somewhere under SPRO > Global Enhancements to Project Elements but Im a little bit lost there. Can somebody explain to me with details how to do this and also, does this need a specific access of developer to do this customization?
    As this is a basic need for all, anybody that is new on the tool and search for this will have a good reference on this thread.
    Thanks in advance.
    Many regards!

    The path is SPRO > Global Enhancements to Project Elements > Setup field control.Herein,once you select the field control you may proceed towards defining the conditions that influence the same. A step by step approach is explained in the below article  that will aid you to change properties of custom fields.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3053cee2-4bca-2d10-38ae-efff39ad248e
    Regards,
    Pradeepkumar Haragoldavar

  • Hide a field in ALV "Display Details" list

    Hi Experts,
    I have a requirment where I have to hide a field in ALV output, as well as in "Details display".  I already put NO_OUT = 'X' for that field in fieldcatalog itself. It is hidden in the ALV output anyway, but the problem is when user selects a row and clicks on "Details" button in toolbar of ALV, it still displays the hidden fields of that ALV list with/out headings there. 
    Hope you understood my problem, pls respond soon if you hav any solution for this?
    Thanks
    Sarav

    Use TECH = 'X' in field catalog.
    Regards,
    Raymond

  • How to hide the field from the view in the webdynpro application?

    Hi Gurus,
    I got a requirement where in which ,default layout has the field name Time.......To......... which is (2 input box ) and one lable assigned to the container.........
    Now my requirement is to hide this field from the layout for all cases of leave......(all types of leave)....
    I got a few inputs from forum that we can achieve this by implementing the following steps..........
    Create In context => Value attribute => Say Visibility
    Go to its properties
    Select com.sap.ide.webdynpro.uielementdefinitions.Visibility
    In View Layout
    Select UI Element Set Visible property to this context variable Visibility.
    In wdDoModifyView() You can set this property to false
    wdContext.currentContextElement().setVisibility(false);
    Can you people tell me where to create the value attribute........
    In the view context or in the component context...........
    and field that am talking about is assign to the container you want me to assign this context variable property to all ......Like to input box ,label and the container..........
    Please calrify this ASAP...........
    Thanks in Advance,
    Dharani

    Hi Manoj......
    Hi Murutuza,
    As per your guidelines I have created the value attribute in View context (which has the field..... which needs to be hide)inside the value node say FieldVisibility.......and attribute name OldTimeDuration......and I set this value with uidefeneitions Visibility .......
    and I bind this vaule with the field property visible(Time.......To..........)which I need to hide...........
    Now in the view implementation tab ..........I have coded in the doinit method(since my requirement to hide the field from the layout in all cases).........
    wdContext.currentFieldVisibilityElement().setOldTimeDuration(WDVisibility.NONE);
    But if I deploy the application and see still am getting the same field dispalying in the screen.........
    I even tried putting this code in wdmodifyview method.........same results........
    Kindly tell me how to hide the field permenantly from the screen............(without any conditions.)
    Thanks in Advance,
    Dharani

  • How i hide a field of a custom view in OAF 11

    Hi, im a new developer of OAF11.
    What should I do, to customize the Purchase Order screen, if then the requirement is to hide the field that i insert from extended VO.
    What I did was modify the XML of the page to add the field and then extended the original AM.
    I added the extended view into the custom AM to prevent that fail with the field that i insert.
    I must clarify that I modify the path of AM default for the path of the custom AM in the XML, then i upload the XML with the command import, and i see it the field in the page.
    I tried to hide another field that i created by customizing the page, but I couldnt do. That´s why i insert directly the field in the XML original.
    I Try to customize the driver involved with the page, but nothing happened.
    First try it on the controller Father and after the son.
    The page is in the POS module (iSupplier), and is POSVIEWPOG (PO Details).
    The code that attempts to hide the field is:
    OAApplicationModule am = paramOAPageContext.getApplicationModule(paramOAWebBean);
    OAViewObject oaviewobject1 =(OAViewObject)am.findViewObject("PosViewHeadersVO");
    if (oaviewobject1 != null)
    OARow row = (OARow)oaviewobject1.getCurrentRow();
    String vCustomType = (String)row.getAttribute("TypeName");
    if (vCustomType.equals("Blanket Agreement"))
    OAMessageStyledTextBean vHideField = (OAMessageStyledTextBean)paramOAWebBean.findChildRecursive("drbQuantity");
    vHideField.setRendered(true);
    else
    OAMessageStyledTextBean vHideField = (OAMessageStyledTextBean)paramOAWebBean.findChildRecursive("drbQuantity");
    vHideField.setRendered(true);
    Can anyone help me?
    If im grong other solution that i think is:
    How I can put a field on a page with code and how to hide the field with conditions?, consider that the field is from the VO extended.
    Thanks!!!

    Hi Yichao,
    Chk these links
    https://help.sap.com/saphelp_nw04/helpdata/en/5a/0c889a4d5911d2a5fb0000e82deaaa/content.htm
    http://help.sap.com/saphelp_45b/helpdata/en/cf/21ec5d446011d189700000e8322d00/frameset.htm
    thanks and regards
    srikanth.p

  • How to hide a field from table maintenance view?

    Hi,
    How to hide a field from table maintenance view? 
    The field is used for data created date. I need to hide it from display.
    Thanks

    Chk this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
    Maintenance Attributes
    You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be  H (hidden)
    H (hidden)
    A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
    The system writes R and H fields to the database like all other fields when a new data record is saved.

  • Can we hide the field in Shopping Cart of SRM

    Hi..
    Can we hide the field in Shopping Cart of SRM??
    I have to hide some of the fields from SRM shopping cart screen. is it possible to hide the fields??
    Please suggest me
    Thanks.
    Regards,
    Manoj Tiwari

    Hy,
    For screen variants, just go to transaction SHD0.
    The only screen variants available in SRM 4.0 are:
    Item data overview in an invoice without purchase order reference: BBP_IV_NON_PO
    Item data overview in the invoice with purchase order reference: BBP_IV
    Item data overview in the confirmation: BBP_CF
    Item data overview in the confirmation for time recording: BBP_CF_TIMEREC
    Item data overview in the purchase order: BBP_PO;
    Item data overview for contracts: BBP_CTR_ITEMLIST
    Item data overview for selection of contracts: BBP_CTR_ITEM_SELLIST
    Search results for entering an invoice and/or confirmation: BBP_SEARCH_PO
    Search results for entering a purchase order: BBP_SEARCH_SC
    Search results for displaying/processing an invoice: BBP_CHANGE_IV
    Search results for displaying/processing a confirmation: BBP_CHANGE_CF
    Search results for entering/displaying/processing/status of a shopping cart: BBP_SC;
    Worklist for Sourcing: BBP_SOCO_WL
    Work area in Sourcing: BBP_SOCO_GA
    This is very light, and most of the SRM project have to make Templates, or ABAP screens repairs, to Hide/Show fields.
    Regards.
    Vadim

  • Problem with hidding Search fields used to pass IDs to the table

    Hello,
    I have a problem which may be trivial but I cannot find the solution for quite a long time.
    Please help
    I have created a standard Search Panel with CustomSimpleSearch
    I have LOVs to search for manager and organizations. You simply choose the a manager of an organization from the list.
    Then I would like to put the values back on the original form
    in two fields (in case of manager)
    Manager name - visible for users so they know what they selected
    Manager ID - to use to search the records in the table I have
    SO I have defined mappings and the values are passed and then
    the records are found based on Manager ID. The only problem is
    I don;t want the ID to be displayed on the screen. I would like to hide this
    messageTextInput
    but I cannot
    I tried setting the following attributes:
    Rendered = false -> searching does not work
    Secret = true -> searching does not work
    Length = 0 - > lenght does not change
    How to hide this field so that the ID is passed to it transparently and then the value is used for searching ?
    Thank You in advance for Your help
    This forum is great
    Michael

    Use formValue bean instead of messageTextInput. It is used for the very same purpose which you are looking for.
    --Shiv                                                                                                                                                                                                                                                   

  • How to hide selection fields when using logical database PNP

    hi.
    i m using a logical database PNP and report catagory 1PY_DEF in my program.
    but when i execute it , it shows to selection box. one name is period and second is selections.
    but i just want to show only period box selection fields , not the selection box fields.
    how it iz possible.

    HI,
    In my case i haved used the PNP logical database..in the selection box i don't wnat to display Contorling area,Cost Center & Organizational Unit. i have written this code to hide those fields..
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name CS 'PNPKOKRS' OR
           screen-name CS 'PNPKOSTL' OR
           screen-name CS 'PNPORGEH'.
          screen-active = '0'.
          screen-invisible = '1'.
          MODIFY SCREEN.
          CLEAR screen.
        ENDIF.
      ENDLOOP.
    Try modify hide the total block instead of individual fields in that block.

  • How to hide Incoterms field in CRM Internet Sales/E-Commerce 5.0

    Good morning !
            I´m customizing the Web/java part of the CRM E-Commerce 5.0(Internet Sales), and I need to hide the field Incoterms, that is visible in the Order screen, inside the Additional Order Data.
    Looking at the page order.jsp(that is the page of the Order screen), I saw that the Incoterms are visible when the method showIncoterms() from class BasketUI returns true, and, seeking for this method, I was found that it belong to class SalesDocumentUI and, at this class, this method returns true when both the methods isBackendR3() and isSoldToChangeable(), returns false.
            The E-Commerce, is connected to CRM, so, the method isBackendR3() will return false, so, I need to found what I need to do to the method isSoldToChangeable() returns false too. Looking in it´s definition, I found that it´s result is get from the method isSoldToSelectable() from the class Shop.
            I think that the method isSoldToSelectable(), will return true or false depending on some parametrization of the CRM, or the webshop, but I´m not finding what the parameter I need to set.
            Done somebody already this ?
            Thank you in advance !
            Wilson

    Good Morning !
            I solved this changing the code in the JSP responsible to show the incoterms fields.
            Best regards,
            Wilson

  • Hide selection fields in SAP PS Report (TCode:S_ALR_87013533)

    Dear Friends,
    We are implementing EP. In that i have to take one report of PS which tcode is S_ALR_87013533.
    In this report having various selection parameters field in 1st screen.But i want only Project defination field to be displayed and remaing fields i wanted to be hide.
    So EP user will put only Project Defination and will acess the ps releated report.
    What is the way to hide remaing field in that report.Is their any screen layout avail. for the reporting t codes in customizing.
    If any other way is avail. pls let me know.
    Thanks & Regards,
    Sandeep N.Theurkar

    Dear Hemant,
    Firstly thanks for your helpful answer.
    I have created new db profile using tcode optx & given selection criteria proj definition.also i have given plan version "0"
    But problem is system is showing following error " No costs, revenues or finances were selected".
    Pls tell me how to come out from this problem.
    Regards,
    Sandeep N.Theurkar

  • Show/Hide JSF field based on SelectOnceChoice using Model Driven List

    Hello All,
    I have a use case where I want to show or hide fields based on values populated in SelectOneChoice. I have View master and View Lookup, master has a field named product which displayed selectiononechoice of product name built using lookup view as accessor. I am storing id of lookup type inside product column. Based on a product name say "abc" I want to hide subsequent fields. Can anyone please tell me how to implement this?
    I am using ADF 11g version 11.1.2.
    Thanks,
    Dipal

    If I understand you correctly, you are trying to show/hide subsequent fields based on the value selected from a selectonechoice?
    Did you try using partial triggers and EL for setting the rendered attribute on subsequent fields and setting autosubmit to true on selectonechoice?
    Kristjan

  • How to hide two fields in SharePoint list when a dropdown value selected?

    Hi all,
    I have a SharePoint list which have four columns 1 Title 2.Type (Dropdown: option1:Issues Option2:Risk) 3.Risk Name and 4.Risk type. If 'type' value is 'Issues' then I need to hide field 3 and 4. In other words, default value in dropdown should be 'Issue'
    and want to hide field 3 and 4 are onload without using InfoPath.
    How to achieve this? Thanks in advance!

    You can make use of jquery for the same. Add script editor webpart on the page and access the dropdown value and based on the value you get, show or hide the fields. Below are some pointers.
    http://sachinvkatkar.blogspot.in/2013/02/hide-fields-from-sharepoint-newform.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/50aa6f8d-f742-4400-82f3-7949ab1c215e/need-help-manipulating-form-fieldsrows-using-jquery?forum=sharepointdevelopmentprevious#802d9d4d-c19b-4752-a4fb-e38f40f50c51
    http://social.technet.microsoft.com/wiki/contents/articles/21730.sharepoint-2010-conditionally-hide-fields-on-standard-list-forms-using-jquery.aspx
    http://sharepointnadeem.blogspot.in/2013/09/sharepoint-showhide-list-column-based.html
    Geetanjali Arora | My blogs |

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • PO requisition personalization Query_Want to hide Supplier field

    My client requirement is to hide supplier field in the po requisition form because requstor would not view the list of suppliers names in the LOV.
    I have tried to hide the SUPPLIER field but folder menu option is not active, without that i cannot hide the field.
    Can any one advise me how to disable the supplier field using form personalization
    Quick responses is higly appreciated.
    Thanks in advance

    Hi,
    Following personalization steps will hide the supplier field.
    Seq - 10
    Description - Hide supplier field
    Level - Function
    Enabled - Checked
    Condition tab
    Trigger Event - WHEN-NEW-FORM-INSTANCE
    Actions tab
    Seq - 10
    Type - Property
    Description - Hide Supplier field
    Object Type - Item
    Target Object - LINES.SUGGESTED_VENDOR_NAME
    Property Name - Displayed
    Value - False
    Finally apply the changes and re-open the form.
    Let me know how you go.
    Thanks,
    PS.

Maybe you are looking for

  • How to overcome the Memory leakage issue in crystal report 2008 SP2 setup.

    I have developed the small windows based application tool with help of  Visual studio 2008 for identify the memory consumption of crystal report object. It helps to load the crystal report objects in the memory and then released the object from the m

  • Replacing Hard drive in macbook

    Hello, I recently bought an imac g5 running Leopard on ebay, long story short, this computer no longer works. Since then I have bought a macbook on ebay. This computer is refurbished and is running Tiger 10.4.11 i believe. This hard drive can only ho

  • Axes values on XY graph

    Hi, I want to have an option so that I can fix the maximum values on the axes of XY graph. This code is supposed to create trajectory for XY stepper motors. If you will run this code (please download the code in the next message, which is a subvi), y

  • Embedding skype into a webpage

    HI Not sure if this is the right board. I am wondering if it is possible to get the skype application to open within a web page I have created a button for a site that launches the skype app separately which works fine, but I want to be able to have

  • Receiver Database Down

    Hi everyone, I have a doubt regrading JDBC receiver.Suppose if the database is down due to some unplanned acitivity ,will the JDBC Adapter at PI receiver side go down?I mean as per my knowledge the JDBC adapter will be trying to reconnect to the data