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 Status

Former Member
0 Likes
857

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
732

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

6 REPLIES 6
Read only

Former Member
0 Likes
732

Hi,

after writing data to Appl. Server Check the Sy-subrc value. Then you know the status.

- Selva

Read only

0 Likes
732

Hi,

It is a standard SAP program, that writes the AL11 File, so we cant check the sy-subrc.

Regards,

....

Read only

Former Member
0 Likes
732

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

Read only

0 Likes
732

Any unix commands to check the status of the file in application server???

Read only

0 Likes
732

we Can check the file status only after writing to the application server. after that it is not possible.

- Selva

Read only

Former Member
0 Likes
733

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