‎2007 Dec 24 6:51 AM
Hi,
I'm trying to read a file from AL11 which is written by a standard program. I want to ensure that file is completely written on Appl. server by the standard program before I start reading that file from my Custom Program.
Kindly Tell me the method
Regards
Jiku
‎2007 Dec 24 7:08 AM
Hi,
As standard program is writing to the application server file, it is not possible to know whether data transfer is completed or not.
If you know the total size of the file, then there is a possibility to find whether whole data is placed or not. Use
OPEN DATASET ..... AT POSITION p
‎2007 Dec 24 6:55 AM
Hi,
after writing data to Appl. Server Check the Sy-subrc value. Then you know the status.
- Selva
‎2007 Dec 24 6:58 AM
Hi,
It is a standard SAP program, that writes the AL11 File, so we cant check the sy-subrc.
Regards,
....
‎2007 Dec 24 6:58 AM
Hi,
I hope you are using 'TRANSFER rec TO '/usr/test.dat'.
' to write the file on application server.
Check sy-subrc after TRANSFER statement, if SY-SUBRC <> 0, it means data is not written on application server.
if there is no error, it means data is transferd.
Regards,
Pankaj
‎2007 Dec 24 7:06 AM
Any unix commands to check the status of the file in application server???
‎2007 Dec 24 7:11 AM
we Can check the file status only after writing to the application server. after that it is not possible.
- Selva
‎2007 Dec 24 7:08 AM
Hi,
As standard program is writing to the application server file, it is not possible to know whether data transfer is completed or not.
If you know the total size of the file, then there is a possibility to find whether whole data is placed or not. Use
OPEN DATASET ..... AT POSITION p