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: 

Supress/disable the custom tab under PO header and PO item based on the PO document type.

Prakashmvit07
Explorer
0 Kudos

I have a requirement to supress/disable the custom tab under PO header and PO item based on the PO document type.

8 REPLIES 8

NaveenKumarC
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

0 Kudos

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

NaveenKumarC
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

raymond_giuseppi
Active Contributor

0 Kudos

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


0 Kudos

With Enhancement MM06E005 you could add the logic to hide every field in the PBO of the subsrceen dynpro.

0 Kudos

Hi raymond.giuseppi, I am able to hide the fields ,but tab is not getting hidden.

0 Kudos

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.