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

Directory path on the Application Server

Former Member
0 Kudos
573

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.

4 REPLIES 4
Read only

Former Member
0 Kudos
374

U can give Ur own path which alrady have an directory cretad in Application server.

Read only

Former Member
0 Kudos
374

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

Read only

0 Kudos
374

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.

Read only

jayanthi_jayaraman
Active Contributor
0 Kudos
374

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.