Hiding fields in a screen using BADI

Hi Experts
I want to invisible certain fields  in the screen for certain users and it should be made  visible for certain users,the requirement is to do with badi.Can anyone help me regarding this issue.
Thanks & Regards
Pravitha

Use (or Create) authorization [field|http://help.sap.com/saphelp_nw04/helpdata/en/52/67168c439b11d1896f0000e8322d00/frameset.htm] and [object|http://help.sap.com/saphelp_nw04/helpdata/en/52/6716a6439b11d1896f0000e8322d00/frameset.htm], in the BAdI [check this authorization|http://help.sap.com/abapdocu_70/en/ABAPAUTHORITY-CHECK.htm] and change the INVISIBLE field and not the ACTIVE field in SCREEN structure.
- [Programming Authorization Checks|http://help.sap.com/saphelp_nw04/helpdata/en/52/6712ac439b11d1896f0000e8322d00/frameset.htm]
Inform system admin to manage those new object and field in the user roles. ([SAP Authorization Concept Modules|http://help.sap.com/saphelp_banking463/helpdata/en/5c/deaa74d3d411d3970a0000e82de14a/frameset.htm])
Regards,
Raymond
NB: The "d" of BAdI should always been in lowercase, except in statement GET BADI...

Similar Messages

  • How to add 1 field in T-code FB03 screen using badi???

    hi~
    I need advice...
    How to insert a field in standared screen by BADI??
    I want insert a segment field in AP/AR screen when user create post document(or park document)..
    is it possible??
    AP/AR screen are not using IMG...( right??? )
    please help me...
    thanks...

    Hi Lee,
    Good!
    First we need to find out whether is there any screen exit for that particular screen or not?
    If not we could go for BADI
    Thanks
    Sunil

  • Customer screen using BADI :  ME_GUI_PO_CUST

    Hi
    I am implementing BADI : ME_GUI_PO_CUST to create custom screen at item level.
    Pls tell me the steps to be followed to get custom screen using BADI
    Thanks
    Vinay.

    Hi Vinay,
    go to transaction SE18, then enter your BADI.The in menu go to Goto -> Sample Code -> Display. You will see example of implementation of this BADI. All these examples are very well commented. Basically you will have to create your own function group with your new screen and call this screen from methods of BADI.
    Cheers

  • I want to enhance screen using BADI

    hello sap guru
    i want to enhance screen using BADI.can i enhace screen with out using SPRO transaction? is abap consultant have authorization for SPRO trasaction?

    Hi Swamy,
    You can do the same without SPRO configuration.
    For example for purchase order screen exit there will be no configuration required in SPRO.
    Basically the main difference in scenarios come depending on the type of transactions using.
    For example when using master data transactions such as MM01,XD01 etc we do have configurations do be done in SPRO.
    But while using transactional data transactions such as VA01,ME21 etc we can do directly without any configurations by using customer exits such as MM06E005(for me21n).
    Why this difference occurs i also dont know.I thought it would be of some useful to you to some extent.Do share if you find why this difference occurs.
    Have a nice day.
    Thanks,
    Surya

  • How to insert a field in standared screen by BADI.

    Hi,
    How to insert a field in standared screen by BADI.
    I have a BADI definition name.
    Can anybody send a sample program like this type of scenario.
    Thanks in advance

    see the documentation of the BADI , If it has Screen exit , then u can ?
    Regards
    Prabhu

  • 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

  • Custom Screen using BADI seen in ME23N, ME22N Display, but not in ME21N

    Hi,
    I have developed a custom screen for purchase order using badi ME_PROCESS_PO_CUST and ME_GUI_PO_CUST.
    But, its not visible in ME21N, whereas its dipalyed in ME23N, ME22N .
    Please advise.
    Thanks,
    Shivaa....

    In TC CMOD you can create a new proyect and use the component MEREQ001 with this component you can see adicional tab in those TC.

  • Field restriction for ME22N using BADI

    Dear All,
    i had a requirement in which i had to restrict ME22N transaction for a particular user for a particular document type
    so i used BADI ME_PROCESS_PO_CUST now the requirement has changed and the user wants the restriction only on three fields rather than entire transaction.
    is there any provision in BADi by which i can prevent changes made to a  particular fields the fields are QUANTITY,RATE PER UNIT & PAYMENT TERMS fields,by throwing error message if changes are done and  for other fields changes should be allowed .
    my code is as below
    method IF_EX_ME_PROCESS_PO_CUST~CHECK.
    IF SY-TCODE = 'ME22N'.
      DATA: IT_MEPOHEADER  TYPE MEPOHEADER.
        IT_MEPOHEADER = IM_HEADER->GET_DATA( ).
         IF IT_MEPOHEADER-BSART = 'ZLNB' OR IT_MEPOHEADER-BSART = 'ZLUB' OR IT_MEPOHEADER-BSART = 'ZLS'
            OR IT_MEPOHEADER-BSART = 'ZLC' OR IT_MEPOHEADER-BSART = 'ZLFO' OR IT_MEPOHEADER-BSART = 'ZLLN'
              OR IT_MEPOHEADER-BSART = 'ZLDB'.
           IF SY-SUBRC = 0.
                IF SY-UNAME = 'ABAP05'  .
                        Message 'You are not authorized to use ME22N for the given  document type' type 'E'.
                 ENDIF.
             ENDIF.
          ENDIF.
         ENDIF.
    endmethod.
    can anyone plz help me
    Thanks in advance,
    Ronak

    Dear All,
    plz let me know if there is any other alternative (other than BADI) to restrict based on filteration for user , document type , and the three fields i have mentioned..
    Regards Ronak

  • Populate a value into a field on a screen using userexit

    Hi all,
      I am using a standard program 'RIPLKO10' and a user exit include 'ZXAD2U04' to update a field to the screen. When i run the program the userexit gets triggerred, but i do not know how can i update the field value. Can anyone please tell me how can i achieve this.
    Thanks,
    Rajesh,

    Hi,
    Check if there is an export parameter, through which u can pass/update the field value and most of the exits will have a flag --> is_exit_active , pass 'X' to this field if available, so that the values do not get overwritten in the standard program.
    Rgds,
    Hema

  • Hiding fields in a screen

    Hi All,
    How would u hide a row of fields in a screen based on a condition ?
    Thanks in advance
    Archana.

    Hi Archana,
    All screen modifications are generally done in the PBO. If you have three elements on the screen, say P_ONE, P_TWO and P_THREE, then in the PBO, you will have something like this -
    IF <the condition you want to check>.
      LOOP AT SCREEN.
        IF ( SCREEN-NAME EQ 'P_ONE'  OR
             SCREEN-NAME EQ 'P_TWO'  OR
             SCREEN-NAME EQ 'P_THREE' ).
          SCREEN-ACTIVE = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDIF.
    The PBO for a selection screen would be the AT SELECTION-SCREEN OUTPUT event, while for a normal screen, it can be any of the PBO Modules.
    Regards,
    Anand Mandalika.

  • How to set screen properties for Customer fields in PO(Enhanced using BADI)

    Hi All,
    I have added one custom tab with seven fields in the PO item level using the BADI 'ME_GUI_PO_CUST  and ME_PROCESS_PO_CUST'.
    Now i want to change the screen property dynamically. According to some calculation i need to change the customer fields in display mode and change mode. when ever it is in change mode i need to set the fields as mandatory.
    How can i implement this logic using this BADI. Please help in solving this issue.
    Best regards,
    Kannan. B

    Hi,
    Try adding the code in the PBO part of your custom program used for the custom screen which you have created and added inside the BADI.
    Regards,
    Harish

  • At Selection-screen using BADI

    I have to add validation logic to some fields   (for user inputs ) on the selection screen in transaction MEAN.
    There is a BADI (ADDRESS_UPDATE)which can be used to add something while address update.
    Is it possible in a BADI in general to achive the AT selection Screen functionality.
    let me know if u have any inputs.
    Regards
    Alok Pathak

    Hi Alok,
    In the BADI-ADDRESS_UPDATE, there are 4 methods. You have to find out which method saves the fields for which validation is required. In that method you can write code for the validation. If the validation fails you can give a message like
    MESSAGE <message type> <message number>(<message class)>.
    Hope this is helpful
    Regards,
    Sameena

  • Make a field of transaction mandatory using badi/exits.

    Hi ,
    I'm asked to make a field of transaction CO11 mandatory.when the user enters a value into scrap/rework field, a message has to be displayed saying that reason for variance is mandatory and should allow the user to enter the value into this without exiting from the transaction.
    Please give me the solution other than creating transaction variant thruogh SHD0.

    hai krupa, go to se24 and type CL_EXITHANDLER in this class go to method GET_INSTANCE and put break poitn at CALL METHOD cl_exithandler=>get_class_name_by_interface  and u enter the transaction and ur debug will stop at this point and see the exti name in exit_name field , this is the badi used in particual screen , and where u want to get the message find the badi definition , and go to transaction se19 and implemetn it and here u cna check the condtion and put the message
    afzal

  • During PO creation vendor material no field should be populated using BADI

    Hi,
    I have created on PR and using PR I am trying to create PO. But one field vendor material no  remains blank when giving vendor at the top vendor field.
    So my requirement is the vendor material no field in item overview should be populated regardless filling vendor field at the top.
    So this functionality can be achieved by BADI or User exit.
    So any one give the proper suggestion to get the value in the vendor material no field while creating PO.
    Waiting for quick response.
    Best Regards,
    Bansi

    Hi,
    use the badi ME_PROCESS_PO_CUST in that method PROCESS_ITEM....
    use GET_DATA method like im_item->get_data.
    and modify the value anduse set_data ...
    Thanks,
    Shailaja Ainala.

  • Problem with Hiding fields of selection screen which is called as subscreen

    Hello All,
    I have problem while hiding the selection screen which is called as subscreen.
    Flow of my logic:
    Selection-screen with one field and three buttons CREATE,DISPLAY and CHANGE in application toolbar.
    user enter some value in field and either he press change or dispaly
    When change i need to call selection screen when it is in dispaly i need to stop calling this selection screen.
    Upto my knowledge we can't stop calling selection screen in display mode so there is only one possibility is hiding the fields when it is in display mode.
    How can i hide the fields and where i need to hide fields?
    Please post some codes.
    Regards,
    Lisa

    you can refer the sample code which i mentioned in your previous post. that will solve the problem.

Maybe you are looking for