Hide customer fields

Hi all,
I am new in programming Badi's. Does anybody got an example code for hiding customer fields in a shopping cart?
I know i need to use badi: BBP_CUF_BADI_2, method "modify screen".
My customer field is "ztempleet" and is maintaint as a component in structure BBP_PDS_SC_ITEM_ICU.
Regards
Jordi

Hi Jordi,
Here is the sample code :
CASE lf_doc_type.
WHEN 'object_type'
LOOP AT et_fields INTO ls_fields.
          IF ls_fields-fieldname = 'ztempleet'
            ls_fields-xinput = ' '.
            ls_fields-xdisplay = ' '.
            MODIFY et_fields FROM ls_fields TRANSPORTING xinput xdisplay.
          ENDIF.
ENDLOOP.
ENDCASE.
Thanks,
Pradeep.

Similar Messages

  • How to hide custom fields in Shopping cart depening on user role

    Hi,
    We have some custom fields in shopping cart for basic view. Every thing works fine. Now client is asking to hide all the custom fields based on user role.
    I found some function module to fund roles. now my main problem is unable to find the cusotm filed screen field name.
    When I tryed to find the screen field name using BBPSC02/03, its giving 'GT_DISPLAY_100-FIELD'. If I try to use this field, its not working.
    Could you pls tell me how to find custom screen filed name to hide in shopping cart.
    Thanks,
    Ram

    Hi Ram,
    As Laurent suggested,to hide the custom fields based on the user role,you need to implement the logic in BADi "BBP_CUF_BADI_2".
    You have the importing parameter IV_USER in this BADI.
    Pass this parameter to tables AGR_USERS and AGR_USERT  to get the user role
    OR
    Use FM: BAPI_USER_GET_DETAIL
    with USERNAME= user id and can retrieve Table: ACTIVITYGROUPS Field:AGR_NAME
    if you want the otherway around
    you can also use FM: RSRA_USERS_OF_AGR_GET
    with I_AGR_NAME= role and you can retieve Table: ACTIVITY_GROUPS_USERS Field: UNAME(usr Id)
    Then check the value for the User role as obtained using the above steps and accordingly set the property for the custom fields to hide them.
    BR,
    Deepti.

  • Hide custom fields in checklist item depending on checklist type

    Hi,
    My requirement is that I want to hide some custom fields on a checklistitem depending on a checklist type.
    Can this be done at configuration or programming level?
    How can it be done?
    Thanks

    HI hemant vaidya ,
    It may be possible to realize it via cProject field control functionality. You can define the condition using a so called schemata,   and set the visible depend on the condition.
    More details see note 947936
    especially the section 'Create and use customer-specific conditions '
    Kind regards,
    Zhenbo

  • WDA Leave Request -- Hide Customer Field in Confirmation Popup

    Hello folks,
    System Information:
    NW AS 7.03 ABAP Stack 731 Level 11, ECC 606 (EHP 6) with SAP_HR 604 Level 73 and EA_HR 607 (HR-Renewal 1) Level 24
    Background:
    For Our WDA Leave Request application, our special department has requested to provide certain additional fields for particular Leave Types, all in all these are three check boxes and one Link-To-URL-UI. I have created these fields, or rather configured them via IMG Customizing Tables V_PT_FIELD_SEL / V_PT_FIELD_SEL_C, using the ten standard customer fields provided by SAP CUSTOMER01 - CUSTOMER10.
    After making the subsequential customizing configurations, I have enhanced the WDA OVP-FPM CC "HRESS_CC_GUIBBF_LEAVREQ" to change the respective fields' UI-Type from "Inputfield" to "Checkboxgroup" and "LinkToAction". So far so good; it's nothing fancy and everything works out the way it should.
    Problem:
    Our special department has recently noted, that the Link-To-Action provided is also taken into account by the Confirmation Dialogue Popup-Box and correctly set read-only like any other field as well. However, the fact that this read-only-link is then also shown in the Popup-Box is confusing to some users and should therefore be hidden. My plan was to enhance the WDA OVP-FPM CC "HRESS_CC_GUIBBF_LEAVREQDIALOG" and simply set the field CUSTOMER01(that's the one field I use for the Link-To-Action-UI) invisible and that's exactly what I did. But look what the effect is:
    You can see behind the lightbox in the Form, how the field is usually displayed in the Form-UIBB. What I "achieved" now, though, is, that only the lable is hidden in the Popup-Box through my enhancement in "HRESS_CC_GUIBBF_LEAVREQDIALOG" and the LinkText is still visible.
    What I did so far / Question:
    So... I went ahead and debugged the feeder class CL_HRESS_PTARQ_LEAVREQ_GUIBBF. I found out that in the Methods "FIELDS_SHOW_HIDE_CLEAR" and "FIELD_SETTING_BY_CUSTOMIZING" I would theoretically be able to manipulate the visibility, but:
    This would mean I'd have to create overwrite-exits, which I would like to avoid, because maintenance is a pain.
    Manipulating the process flow here probably has side effects on the field control of the overall application which must not happen. If I'm extremely unlucky it might even effect the data flow.
    This brings me to my ultimate question: How do I make a field from this Confirmation Dialogue Popupbox cleanly disappear/invisible in a super-duper-elegant way without using a sledgehammer? Maybe there is a customizing-way I have overlooked so far? (please?)
    Cheers, Lukas

    Hi Samuli/Yugandhar,
    what you suggest is exactly what I did:
    My plan was to enhance the WDA OVP-FPM CC "HRESS_CC_GUIBBF_LEAVREQDIALOG" and simply set the field CUSTOMER01(that's the one field I use for the Link-To-Action-UI) invisible and that's exactly what I did.
    The only derivation from your suggestions is that I didn't make a deep copy but an enhancement instead, which Creates a delegation Object that automatically inherits from the standard CC. Technically a copy or an enhancement do exactly the same but maintenance is a lot smoother for enhancements, that's why.
    Cheers, Lukas
    P.S. @ Yugandhar, nice to see you are still around! Indeed I'm primarily occupied with the module FI-TV, that's why I'm only wandering around the ESS/MSS subforums now and then.
    Message was edited by: Lukas Weigelt

  • 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

  • Hiding Customized fields through Config - T88M

    Hi,
    My system parameter is : ECC 6.0.
    As per requirement in my project, I have customized IT7 and added a new field - Annual Time . I am populating that field by default using some logic which wrote in the PBO of the newly created module pool and everything is working fine !!
    Query :
    Business wants this field to be displayed only for Ausy employees and not for Indonesian employees AND they want this to be done through config only. How can I do that ?
    What I have tried :
    I can very well go to the PBO and hide this screen reading the WERKS from PA1 for that employee but this is not what is reqd.
    They require to hide this using Infotype screen modification.
    When I go to SM30 and maintain the Infotype screen modification view : V_T88M and give the newly created module pool name : ZMPA0007 ...it doesnt list down the new;y created fields in this screen !! :-s
    So my query is - Is T88M can Only be used to hude standard fields and Not custom fields ?? If it can be used for custom fields also, please let me know how can I see my field there in the list ??
    Note : After creating the new field in PM01, I have assigned it to the standard MP00007 screen 2000. So now for all employees this std screen is getting displayed and also my little field at the end.
    I tried to modify the feature for this std screen and then I tried to create a new variable based on WERKS and assign some other screen 3000 for all employees and 2000 only for Indonesian employees, but it is not working ... at all the times the screen 2000 with my newly added field is getting displayed.
    What am I doing wrong or what do I need to do extra ?? or is it not possible to hide custom fields through Config I have to do it using coding only ??
    Experts, please put some light !!
    Many Thanks,
    Cheers.

    Hi Sourav,
    In table T588M create two entries for MP000700 with different variable key say according to the molga of the country one aus(xx) and other bagladesh(yy).
    Now make the field visible/invisible depending on the country req.
    Now go inside the entry, click on feature and give feature name as P0007. Now change the feature according and return the variable key what you assigned to the module pool.
    Take the help of functional people to change the feature.
    Br/Manas

  • 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 custom metadata field in custom profies ??

    hi,
    how to hide custom metadata dropdown list in a custom profile based on choosing the security group.
    ex: if i choose xxx security group, custom metadata dropdown should not appeared, for remaining security groups it should be visible.
    so, Based on criteria, custom metadata should be hidden in custom profiles..
    how to achieve it ?? where and how to configure ??
    Detail guidance should be required
    Thanks in advance

    You cannot do this through profiles alone if I understand you correctly.
    If I load a check in page, choose a security group and at this moment want a custom metadata field to disappear then you are beyond what profiles offers.
    Rules evaluation can only be based on information that is know at the time the page is requested. That means in order for this to work you would need to make security group an non editable field and have a set of profiles for each security group.
    The alternative is to customize the UI with soem DHTML or AJAX
    Tim

  • Remove / Hide CUP Custom Field

    GRC Experts,
    I am wondering. Ho
    w can I modify, hide, or delete a custom field that has been a part of our request workflow in production. We get the error: "Updating custom field to non-workflow field failed because it has been used as a workflow field".
    I havenu2019t tested but if I close all requests in the workflow and archive does anyone know if it will work?
    Thanks,
    Kyle

    Hi Kyle,
    I faced a similar issue when I tried to change the "company ID" under CUP-> Configuration ->Roles->Attributes->Company.
    In this case, this field is not modifiable, so I decided to delete it and create a new one. But when I tried to delete the old company, I couldn't do it because this value was used in requests. Then, I canceled the open requests, archive and delete all the corresponding request and after that I was able to delete the company and to create a new one.
    Please, note this (config guide):
    "Archiving Requests is a way to view only the current periodu2019s requests during normal viewing.
    All requests for access are stored in the Compliant User Provisioning database. The system closes the requests after they are approved or rejected. The Archiving Requests functionality
    helps you archive the closed requests. The archived requests remain in the database but are not visible when the users run searches or reports."
    After I performed the archiving I tried to delete the company name again, but I couldn't until I deleted the request. Note that you have the option to download the request before delete them.
    Here you'll also find a thread regarding another problem deleting fields: Re: CUP - Cannot delete since referred in request data header
    Perhaps if you contact SAP Support they can give you a better option. The option to download and save the request before deleting them was OK in my case but maybe it isn't a nice option for your situation. If you open a support message to SAP, please let us know if they suggest you another option...I'm looking forward to know it
    Cheers,
    Diego.

  • Reading T588M hide fields for MOLGA/feature/variable key & HIDE custom flds

    Hi
        I have requirement to  read hide fields from  T588M . As we can hide filed in T588m and we already have written a program in which it called certain feature from PE03 for IT0002  and hide the filed based on the user authorization . Now I have introduce another field which some how the same as in SAP standard screen , for some good reason and according to business process it was not full filling the requirements . So I introduce another field.  Now what we want  in PBO of IT enhancement  it stop certain users to see that fields using feature ( Tr.Pe03 Feature “p0002” ) . In feature we have programmed that it call our customized program and check the authorization  as mention earlier .
    Here’re my questions
    -     Do you guys have any other good option to control that?
    -     If some how I manage to read feature using FM “HR_FEATURE_BACKFIELD” in PBO
    -      After reading feature I am accessing the table T588m to make sure for certain feature which field is hide or not  as in table T588m I can see the fields like ‘’’+’-‘’’,’ , how can I make sure which field is refer to what …  I also find the FMS
    -      HRPAD00SCREENCONTROL           
    -      HR_READ_T588M_WITH_PME04       
    -      HR_T588M_CUSTOMIZING           
    -      HR_T588M_GET_DYNPRO            
    -      HR_T588M_GET_FIELDATTRIBUTES   
    -      HR_T588M_SAVE   
    -     But the above Fm also not fulfilling my requirement.  As I was thinking that I read the fields , SAY if standard  field is hide in  the feature , I can loop at my screen and  hide the custom field which I enhanced in IT0002.
    Right now I’m debugging the  standard code how its reads the T558M , and I got some clue .. But it looks like long path I mean reading some screen fields..  Include program is L0PXVF01….
    Now my question is do you guys have any good solution, it might possible I’m doing it using the short path .. ( Cuz I wna use my security program as its using feature ) 
    Let me know if u have some idea…
    Thanks
    Saquib Khan

    1- Well I’m thinking that I have to compare T558M on the base of Feature and variable key . And see that standard field is hidden... if it is .. I want to also HIDE my custom field ....
    2- For our feature "p0002" , we have developed a custom code in which on the basis of variable key and user profile it get executed and also see wther that person has authorization to see that standard field or not . if say that person doesn’t have authorization for that field I can also hide mine custom field. 
    I just got the test login and I’m going to test it by add/removing security roles .
    <b>
    I tried that out but if I’m looping at screen , its behaving same for both users . Cuz there is nothing which tells ok for this user fild is hidden in T558m and its open for other one..
    Also, is there any FM if I pass Dynpro # , molga and variable key , it return me T588M hidden fields ...
    I already tried the above FM
    This looks like to work but not working for field
    HR_T588M_GET_FIELDATTRIBUTES</b>
    Thanks for valuable input!!
    Saquib

  • Custom Field in Work Area of SOCO

    Hi,
    I have to add custom fields in 'CARRY OUT SOURCING-WORK AREA' frame. Is there any standard structure available for this? i know there are standard structures available for shopping cart and others,  but i am not sure whether any structure is available to add custom field in 'CARRY OUT SOURCING-WORK AREA' frame. Please help me in finding out the exact Include structure, which is relevant for my requirement. Also let me know if i have to implement a BADI for this.
    Thanks in Advance,
    Suresh

    Hi Suresh,
    It seems that we are looking for the same answer but i haven't found yet the exact BADI to work with it...
    Here there is some approach:
    In the BBP_SCREENVARIANT BADI there's a method called GET_SCREENVARIANT_SOCO where you can modify the standard screen call from the 0300 dynpro to a 0301 or whatever number dynpro you want to, but the problem it's that i don't know where to generate this new screen and the logic to retrieve the information to fill the new fields that i need....
    So i wish this helps you a lil' bit and if you get something please let me know, i get also a post:
    Can we hide the 'Create Contract' button in SOCO ?
    If you can post any help there i will reward points...
    BR
    Gerardo.

  • 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

  • How to add a new custom field to one set of employees within one country?

    Hi,
    I am thinking of a scenario where a new custom field is dispayed in PA30 for IT0006
    only for one set of employees in US (such as for a employee group or employee sub group).
    Other employees should not have this custom field.
    All employees in this scenario is for US country only.
    Is this possible? Do we need ABAP for this or only IMG will do?
    Any details on how to implement this etc..
    Thanks for any help.

    Thanks for everyone for the responses.
    I really liked the decoupling infotype solution.
    However, since some work has been done in the old way, I will try to describe the problem in detail.
    Our ABAPer already created a new screen 0200 as a sub-screen in ZP000600 module (I am assuming it is a module pool) using PM01 and assigned to 2010 screen; an alternate screen specified in IMG for country 10 as key (instead of standard screen 2000 for IT0006).
    This new screen 0200 is assigned to 2010 in PM01 transaction.
    These steps displays the 0200 sub-screen with added fields to all the US employees hiring in the respective personal action.
    I want to create a new scenario to suppress these additional fields for some US employees (say company code BKUS)
    I placed a new entry in T588M for module pool as ZP000600 , key is 10, alternate screen as 0200 and hide all the fields
    But, these additional fields are still displayed always for US employees for whom I want to hide.
    Did I miss any thing?
    I do not want to hard code in ABAP whom to display and who not to.
    Is there a IMG way to do this so that I can change the criteria later as we go.
    Thanks

  • 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

  • Service Reuqest Custom Fields on Reports

    Hi,
    I Added 3 new custom fields of type "Integer" to Service Reuqest.
    Now, when I come to combine them in an analysis (Going to Reports -> Design Analysis -> under REPORTING choosing "Service Reuqests" I can't see these fields, when looking in "Service Request Custom Feilds".
    When I added custom fields to PRODUCT I didn't run into this issue.
    Is it possible that in Service Reuqest reports I can create analysis based only on indexed fields of the serivce requests?
    Or did I do something wrong?
    What do I have to do in order to use fields I am adding in analysis?
    Thanks!
    Guy

    Guy,
    Check under Service Request metrics at the bottom, I often find number or percent custom fields hide down the bottom.
    cheers
    Alex

Maybe you are looking for

  • Statement caching and batch update

    Can these 2 JDBC features work together ? Is it possible while statement is cached to be reparsed (soft) if used in batch update ? I am asking this questions because i have a sitution where an insert is cached using implicit statement caching and the

  • Ipod classic won't restore due to other apps

    I recently bought a used ipod classic from the pawn shop.  my prior two were done in by my need to be to close to water.  i tried to restore it, but it claims another app won't allow it.

  • Creating page in Portal

    Hi all, I have to create a page in portal with one folder and inside folder i have to include few reports or report links. The folder should be in favorites, apart from this, nothing should be displayed in that page. Can anyone tell me how to create

  • PSE 9.0 rollback please help

    Hi I cannot get PSE 9.0 to install. It keeps failing on the shared technologies installation. I have read loads of posts on here but still cannot find a fix. Can somebody please take a look at the log file for me? Thanks Alan

  • Problem with Tomcat 4.1

    Hello everybody, I can't have my application working on Tomcat 4.1.18 while it was working on Tomcat 4.0. Why is it ? I did no changes. I suppose I have to do configurations before starting the server. But what configurations ? Please help me, I spen