on 04-12-2007 3:45 PM
Hi everyone, we have a requirement to disable 2 buttons, or links on the order status screen. The buttons are called "Create Confirmation" and "Create Invoice". I know I can modify the HTML service template SAPLBBP_PDH_SEARCH_4001 for BBPSEARCH to get rid of them, but I would like to find a cleaner way without performing a MOD. I've tried making them invisible using SHD0 and copying the screen variant BBP_SEARCH_SC to ZBBP_SEARCH_SC and (making the pushbuttons Wareneingang and Rechnung invisible), then activating the new screen variant in BBP_SCREENVARIANT method GET_SCREENVARIANT_SEARCH. This doesn't appear to have any effect on the screen icons/buttons at all, but in debug mode I can see it's utilizing the new screen variant.
Does anyone have any other suggestions/examples of how this could be done, or should I go back to the reliable core MOD..?
Thanks,
Marty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've read all the posts, multiple times and I've followed the rules for BBP_SCREENVARIANT, still no luck. I've copied screenvariant BBP_SEARCH_SC to ZBBP_SEARCH_SC, within it I can see the 2 pushbuttons I want to make invisible they are in german and they are called (Wareneingang and Rechnung) or Create Invoice, Create confirmation. I check the box to make them invisible, test it and it works. Then I created an implementation with BBP_SCREENVARIANT, and in the method get_screenvariant_search, I added the code:
IF iv_progname EQ 'SAPLBBP_PDH_SEARCH'
AND iv_dynnr EQ '4100'
AND flt_val EQ 'BUS2121'.
IF iv_scvariant EQ 'BBP_SEARCH_SC'.
ev_scvariant = 'ZBBP_SEARCH_SC'.
ENDIF.
ENDIF.
I activated the badi, and I can see it performing my code in debug, but when I try it out, the order status screen still shows the 2 icons/pushbuttons for Create Invoice and Create confirmation...
Any ideas?
Hi,
Try using the BADI "BBP_UI_CONTROL_BADI".
BR,
Disha.
Pls reward points for useful answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.