2023 Mar 21 3:20 AM
I have a requirement to supress/disable the custom tab under PO header and PO item based on the PO document type.
2023 Mar 21 6:15 AM
Hello Prakash,
Please check the link.
https://answers.sap.com/questions/12286933/hiding-custom-tab-in-me21nme22n-and-me23n-based-on.html
Regards,
Naveen Kumar Chikkanna.
2023 Mar 21 8:31 AM
Hi chikkanna, followed steps mentioned there, but the break point is not triggering in Method FIELDSELECTION_HEADER. However its triggering for FIELDSELECTION_ITEM but its not working as expected.
I tried following the solution mentioned in below link, but solution was not mentioned fully.
https://answers.sap.com/questions/470872/hiding-custom-tab-in-me51n.html
2023 Mar 21 10:36 AM
Hello Prakash,
Can you please check answer.
https://answers.sap.com/questions/217345/hiding-customer-tab-in-me21n-based-on-conditions.html
Regards,
Naveen Kumar Chikkanna.
2023 Mar 21 12:43 PM
Check my answer at HIDING CUSTOM TAB IN ME21N,ME22N and ME23N based on PO Document types
2023 Mar 21 1:34 PM
Hi raymond.giuseppi, I checked this solution aswel. SAP Note says if a BADI ME_GUI_PO_CUST is used to add the custom tab, then BADI ME_PROCESS_PO_CUST and Method FIELDSELECTION_ITEM can be used to change the field status.
Since we are using MM06E005 to add the TAB i am not sure if we can use this method. I tried from my end but i was not able to.
Thanks & Regards,
Prakash A
2023 Mar 21 4:37 PM
With Enhancement MM06E005 you could add the logic to hide every field in the PBO of the subsrceen dynpro.
2023 Mar 22 10:33 AM
Hi raymond.giuseppi, I am able to hide the fields ,but tab is not getting hidden.
2023 Mar 22 3:24 PM
As you used the old technology of customer-exit, I suppose the main program is not aware that 'every field is hidden' so it wont hide the tab (or analyze/debug the pbo logic of the dynpro with the tabs)
Seems you are required to use ME_PROCESS_PO_CUST to assign a field status to the customer-specific fields that are provided for this purpose (compare the sample source code of the method FIELDSELECTION_ITEM) even if your dynpro doesn't actually us those.