2021 Jan 22 10:56 AM
Hi guys,
I need to view my button additional data only to screen of purchasing data of the XK01/02/03. Now i see the button to all screen view. Can you help me?
2021 Jan 22 11:25 AM
Could this answer be also useful to you?
Yes, it's XD vs XK but the BADIs are similar
2021 Jan 22 11:52 AM
Hi Andrea,
thanks for your answer but I already try this solution and it isn't suitable because the method SUPPRESS_TAXI_TABSTRIPS is triggered after clicking on the button.
I think I have to act on the standard or on customizing but I don't know exactly where. 😞
Can you help me?
thanks
2021 Jan 22 1:32 PM
Unfortunately I don't have a readymade example for your case and my own work did so far did not have that requirement; could it be acceptable to your situation to leave the button visible but simply do nothing if conditions are not met? That should be doable.
2021 Jan 22 3:05 PM
yes, this could be a solution, thanks Andrea. If anyone knows the solution I kindly ask if they can help me, please.
2021 Jan 25 3:09 PM
This method of the BAdI will only prevent the display of some customer dynpros after the click,
AFAIK there is no standard option to hide the function in the main screen (VENDOR_ADD_DATA~CHECK_ADD_ON_ACTIVE is only called once)
METHOD if_ex_vendor_add_data_cs~suppress_taxi_tabstrips.
* If no code or not allowed at least in view - disable the general data tab.es
AUTHORITY-CHECK OBJECT 'F_LFA1_GEN'
ID 'ACTVT' FIELD '03'.
IF sy-subrc NE 0.
APPEND 'Z1-LFA1' TO e_not_used_taxi_fcodes.
ENDIF.
* If no code or not allowed at least in view - disable company tab
IF i_bukrs IS INITIAL.
APPEND 'Z1-LFB1' TO e_not_used_taxi_fcodes.
ELSE.
AUTHORITY-CHECK OBJECT 'F_LFA1_BUK'
ID 'BUKRS' FIELD i_bukrs
ID 'ACTVT' FIELD '03'.
IF sy-subrc NE 0.
APPEND 'Z1-LFB1' TO e_not_used_taxi_fcodes.
ENDIF.
ENDIF.
* etc.
2021 Jan 27 11:06 AM