‎2013 Dec 10 9:37 AM
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
‎2013 Dec 10 9:46 AM
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
‎2013 Dec 10 9:46 AM
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