Skip to Content
0
Jan 22, 2009 at 04:06 PM

Add new screen in ME23N with BADI ME_GUI_PO_CUST

122 Views

Hi folks, I have used the BADI ME_GUI_PO_CUST to add a custom tab in transaction ME23N.

So good, sor far, I know how to used BADI and it works very well. I had to subscribe my own subscreen in the method subscribe of the interface, but something is boring me and I don't know if it's possible.

Let's say I want to display my new tab according to the purchasing document type. Right now, my custom tab is always display. There is no method to unsubscribe a screen in the interface. What I could do is to used the get parameter id 'BES' in the subscribe method to get the current purchasing document display, then from there I could decide if I subscribe or not my own screen. The thing with the subscribe method is that it's only called once, when you enter in the transaction, if you stay in the transaction and select another purchasing document, this method will not be called.

thanks

Alex