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

create a file in Application server

Former Member
0 Likes
309

Hi,

I am trying to create a file in application server with the following code

OPEN DATASET F_NAME FOR OUTPUT IN TEXT MODE MESSAGE MESS.

IF SY-SUBRC <> 0.

WRITE MESS.

ELSE.

LOOP AT I_EKKO.

TRANSFER I_EKKO TO F_NAME.

ENDLOOP.

CLOSE DATASET F_NAME.

IT is giving an error message like no such file or directory.

if the file is not there then it has to create but why it is giving that message.

Thanks in Advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
281

Please make sure you are using the right Path of the directory.

Also check for CASE-SENSITIVE characters.

Kind Regards

Eswar

1 REPLY 1
Read only

Former Member
0 Likes
282

Please make sure you are using the right Path of the directory.

Also check for CASE-SENSITIVE characters.

Kind Regards

Eswar