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

Application Server file being updated by multiple user at the same time?

Former Member
0 Likes
411

Hi,

I have created a program to update a "file in Application Server" using "OPEN DATASET FOR APPENDING" statement. This program can be executed by multiple users. I checked in the debugging mode and found that exception is not raised if the file is already being accessed by another user. Is this the standard functionality of SAP? I can see that the file is updated perfectly by both the user. Do I need to manually handle the locking of file using ENQUEUE_E_TXW_FILE or not required? Is there any impact if I do not handle locking? Please give me your inputs.

Regards,

Vignesh M

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
363

Hi Vignesh

If you read the documentation of this open which clearly states data will always be written to end of file. I dont see any issue .

SAP Help source

"If the file exists and is already open (for read or write access, or for appending), the position is set to the end of the file. SY-SUBRC is always 0."

Nabheet

1 REPLY 1
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
364

Hi Vignesh

If you read the documentation of this open which clearly states data will always be written to end of file. I dont see any issue .

SAP Help source

"If the file exists and is already open (for read or write access, or for appending), the position is set to the end of the file. SY-SUBRC is always 0."

Nabheet