My requirement is to add a custom field in the header data of Service Entry Sheet (SES).
There is a user exit provided by SAP, named 'SRVEUSCR', through which you could add custom fields and it will appear in an additional tab in SES as shown below.
(You can check the user exit 'SRVEUSCR' through SMOD transaction.)
As you can see in the picture above, the field is editable even when the SES is in display mode.
I want to make the field 'FIELD1' editable only when the SES is in edit mode.
I couldn't find any global variable or system variable which tells me the edit status of the SES. I tried checking the SY-UCOMM to check whether the Edit Button has been pressed or not. But, it didn't have any value.
And there is not documentation for the exit 'SERVEUSCR', which further adds to my worries.
If anyone knows how to find the edit status, kindly reply.