cancel
Showing results for 
Search instead for 
Did you mean: 

Disable/grey out delete button in CO02 and CO03

tejaswir_7
Explorer
0 Kudos

Hi all,

I have a requirement that is to disable delete button in production order for t-codes (CO02 and CO03) when status codes are I0045 and I0046 by getting production order details from status_read function module.

Where i need to write logic and which enhancement technique i need to perform can anyone please suggest.

attaching the requirement details and screen for further reference.

Sandra_Rossi
Active Contributor
0 Kudos

I guess your question is not about obtaining the production order status.

How to prevent attachment deletion by user exit: I can find one answer below which seems to be fine.

gos attachment delete user exit site:sap.com

tejaswir_7
Explorer
0 Kudos

Hi sandra.rossi,

Thank you for the blog actually i am new to enhancements and not getting how to proceed with the requirement ,can you please provide step by step solution such that i get clarity on how to do it.

Sandra_Rossi
Active Contributor
0 Kudos

I previously mentioned that you had some solutions, so I don't know "the blog" you're looking at, please clarify.

You may also adapt the query to find better answers, e.g.:

gos attachment disable button site:sap.com site:sap.com

Accepted Solutions (0)

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor
0 Kudos

If you are unsuccesful with (FAQ) BAdI GOS_SRV_SELECT to disable delete option (but would disable edit also?) or GOS_SRV_REQUEST to intercept standard methods execution, you could look for an implicit enhancement in method SET_TOOLBAR of CL_GOS_ATTACHMENTS.