Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Copied Menu Painter Not working

0 Kudos

Hi Experts,

I need to add 2 buttons in application toolbar for a standard transaction. I searched for exit and found one BADI which is single implementation BADI and allows for only one button with Fcode +CUS1. So, I have copied menu painter of a standard program to a custom one and implemented an explicit enhancement through which i have assigned my custom menu painter to standard program.

I have implemented the BADI for 1st custom button and added 2nd button on my custom GUI Status.

Issue is, only my 2nd button is visible in standard transaction. 1st button which is created via BADI menu enhancement is not visible. BADI implemented is badi_eam_riaufk20_fcode_cus1.

is it possible to bring that badi implemented custom button to be visible via custom menu painter?

5 REPLIES 5

former_member208149
Participant
0 Kudos

How come you are having two GUI status at the same time? One which you have enhanced by means of BAdI and another custom one which you have copied from the std. one. If you are calling the custom GUI Status after the std. program by means of any enhancement, it will overwrite the first GUI Status and this could be the reason you are able to see only the 2nd button which is in your custom copied GUI Status.

Please note there could only be one active GUI Status at a time, specifically the one mentioned in the last SET STATUS. You can NOT use both the statuses simultaneously.

0 Kudos

yes that is exactly why those buttons which are implemented via BADI is not visible. I'm just wondering if it is possible to bring them in my custom GUI status via same BADI implementation, because i do see few more + function codes which are from BADI marked as "Can only be implemented by SAP internally". If i manage to bring them up then in future if SAP implements those, they will automatically appear in my custom GUI status. But i think its not possible for now.

0 Kudos

Yes, it is not possible. You cannot have a mix of two GUI status. You can keep only one or the other.

DoanManhQuynh
Active Contributor
0 Kudos

If you can copy the standard gui to your custom gui why dont you add both button in custom gui? why you need 1 in custom gui, 1 in badi

0 Kudos

Because in the standard GUI status there were few more buttons which may be implemented via BADI which are marked as "Can only be implemented by SAP - Internally". So just wondering if i they decide to implement it in future i don't need to change my custom GUI status to make them as button.