03-29-2018 7:50 AM
Hi,
I have added a custom tab in ME51N with a single field using the exit MEREQ001 .
However, I am unable to hide the custom tab based on conditions. Is there any way it can be achieved ?
I tried hiding it by deactivating the field in the tab, but it does not work.
Any inputs on this please?
Regards,
Vasuki
03-29-2018 8:58 AM
Hello,
Yes, it is possible using the Framework object (CL_FRAMEWORK_MM).
First of all, you have to get the framework instance:
cl_framework_mm=>get_instance(
importing
ex_instance = data(framework) ).
Then, get the view identified by its dynpro number (which I do not remember) and the program:
framework->get_view(
exporting
im_prog = 'SAPLMEGUI'
im_dynnr = '<dynnr>'
importing
ex_view = data(custom_view) ).
You could then hide/unhide the custom tab (view) by calling methods deactivate( )/activate( ).
Best regards,
Nicolas
04-02-2018 9:54 AM
Hi Nicolas,
Where should this be called and I do not find any methods to Deactivate/activate. Can you please let me know.
Regards,
Vasuki
03-21-2023 8:16 AM
Hi vasuki.spatki, Did you get any solution for this. I have the same requirement where i have to hide/disable the custom tab at PO header and PO item based on PO document type.
Thanks in Advance,
Prakash A