2006 Oct 11 7:56 AM
Hi friends,
I have to upload some data to Application server through my program and My apllication server using UNIX operating system. But when I am giving the file path which I found in Tcode AL11 it is giving me dump result. But if I give other than that the file will be created in logical path DIR_HOME . So while I am using Open Dataset stmt for UNIX OS can I give the file path as my own or I should give only DIR_HOME.
Sathish.
2006 Oct 11 8:00 AM
U can give Ur own path which alrady have an directory cretad in Application server.
2006 Oct 11 8:06 AM
Hi,
U can give ur own path. In fact u can alos search the no of files also in that directory.
use FM : RZL_DIR_READ for finding the files in drectory specified in the director that u wanna write file .
Then use Open data set in output mode to write the file.
Hope this suffices ur pupose.
Rgds,
Akhil
2006 Oct 11 8:28 AM
When I have given the file path other than DIR_HOME that is existing in AL11 it is giving me dump. If I give any invalid path like XYZ,ABC.. then the file be created in DIR_HOME.Please let me know if anything else I have to do before I am going to use the directory other than DIR_HOME.
2006 Oct 11 8:58 AM
Hi,
Just find out the error thro' the follg. code.
If an error occurs while the file is being opened, the corresponding operating system message is placed in field msg.
Example
DATA: dsn(20) VALUE '/usr/test.dat',
msg(100).
OPEN DATASET dsn FOR INPUT MESSAGE msg.
IF sy-subrc <> 0.
WRITE / msg.
STOP.
ENDIF.