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: 

How to find whether edit mode is activated in SES (Service Entry Sheet)?

0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check the field I_AKTYP in function module EXIT_SAPLMLSR_020 in SRVEUSCR customer exit.

This flag is for editing purpose.

2 REPLIES 2

Former Member
0 Kudos

Check the field I_AKTYP in function module EXIT_SAPLMLSR_020 in SRVEUSCR customer exit.

This flag is for editing purpose.

0 Kudos

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.