‎2014 May 15 2:03 PM
Hi,
I have created a BADI implementation for XD01/02/03 to add custom screen with additional customer fields using BADI CUSTOMER_ADD_DATA and CUSTOMER_ADD_DATA_CS. Works well, customer master now has a new button that brings me to a screen I defined.
Now I have a requirement to only show this additional screen button for certain Sales Area and I cannot find a way to do it.
I can hide tabs on custom screen by Sales Organization, but activating whole button+screen functionality looks to only be possible before Sales Area data is known during IF_EX_CUSTOMER_ADD_DATA~CHECK_ADD_ON_ACTIVE
Is there something I am missing?
Jurijs
‎2014 May 15 2:32 PM
Hi Jurijs,
Have you checked the method 'SUPPRESS_TAXI_TABSTRIPS' for the BADI definition 'CUSTOMER_ADD_DATA_CS'? It looks like maybe you can use this to suppress the tabs based on your sales area requirement.
Regards,
Ryan Crosby
‎2014 May 15 2:40 PM
Yes, I tried that, but it only hides the tab. So the button is still there, bit goes to empty screen.
‎2014 May 15 2:44 PM
Shouldn't the button only be showing when you actually navigate to the tab? That sounds like you would have edited the standard screen instead of creating a subscreen that gets called based on the BADI stuff.
‎2014 May 15 3:11 PM
Button appears automatically when activating the add-on in CUSTOMER_ADD_DATA-CHECK_ADD_ON_ACTIVE method
But when this is checked, I don't yet have information on Sales Area
‎2014 May 15 3:41 PM
Ahhh, I misread that part and thought you were speaking of the tab and not the button. I'm unaware of a way to hide the button but I'll check to see if I can find anything.