Application Development and Automation 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: 
Read only

Locking text when calling EDIT_TEXT FM

Former Member
0 Likes
822

I'm calling the EDIT_TEXT function module to allow users to add or change texts stored under given text ids. It appears that just using this standard SAPscript text editor (via EDIT_TEXT) doesn't actually lock the text from updates by another user. How would I lock the text, so that only one user can change it at one time?

Is there a specific ENQUEUE function module that is used for texts? I did some searching, but it wasn't clear to me which one to use. ENQUEUE_E_LS_TEXT looked like a possibility, but I'm not sure and searching through OSS and these forums proved unsuccessful.

Thanks in advance for anyone who can help.

Regards,

Angela

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
554

Hello Angela

Table STXH (STXD SAPscript text file header) is assigned to package STXD which contains several lock objects.

Most likely ESSSTXT is the one your are looking for.

Alternatively, you simply edit a text and check the details of the lock entry using transaction SM12 to find the lock object.

Regards

Uwe

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
555

Hello Angela

Table STXH (STXD SAPscript text file header) is assigned to package STXD which contains several lock objects.

Most likely ESSSTXT is the one your are looking for.

Alternatively, you simply edit a text and check the details of the lock entry using transaction SM12 to find the lock object.

Regards

Uwe

Read only

Former Member
0 Likes
554

Thanks very much, Uwe. That answered my question and it worked. I awarded full points.

If I have further related questions, I'll post them in a separate thread.

Regards,

Angela

Read only

0 Likes
554

Hello Angela

You are always welcome. And now I know, too, which lock object to use in case I need it.

Regards

Uwe