In the Vendor Master, we have a custom push button which displays two fields upon clicking the push button. We want to make a change such that the pushbutton should be visible only to a particular company code. Vendor belonging to other company code should not be able to view the pushbutton.
I tried adding the code in the method IF_EX_VENDOR_ADD_DATA_CS~SUPPRESS_TAXI_TABSTRIPS( in the BADI vendor_add_data). by restricting the code based on a particular company code. But with this, entire vendor master data is hidden. I want to hide the custom pushbutton only.
Can anyone suggest as to how this can be implemented?