06-17-2014 5:53 AM
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.
Thank You.
Sreejith Babu
06-17-2014 6:34 AM
Check the field I_AKTYP in function module EXIT_SAPLMLSR_020 in SRVEUSCR customer exit.
This flag is for editing purpose.
06-17-2014 6:34 AM
Check the field I_AKTYP in function module EXIT_SAPLMLSR_020 in SRVEUSCR customer exit.
This flag is for editing purpose.
06-17-2014 8:15 AM
Hello Amol.
Thank you for the very helpful reply.
I got the status the way you instructed i.e the field I_AKTYP from EXIT_SAPLMLSR_020 in SRVEUSCR customer exit.
From there, I exported the value of I_AKTYP to a Memory ID (Eg. 'SES_EDIT_MODE') so that I could import the status from the Custom Tab (i.e. Additional Tab in SES) screen's PBO.
With this value, I set the screen field (FIELD1) to editable only when the SES is in edit mode.