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

Files on application server problem.

Former Member
0 Likes
1,447

Hi Gurus,

I am facing a problem in creadting dataset whose details is as below.

Dataset path:

idir = '/usr/DEV/local/tmp/200/brcd/idir/odr00023.txt'.

OPEN DATASET idir FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

This command is giving sy-subrc = 8.

because of this file is not opening in write mode but available for reading.

What may be the problem.

right solution will be awarded with points.

Regards

Rajesh

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
1,407

Hi,

Use the tcode CG3Z and try to transfer the file to application server..see what happens

Regards,

Nagaraj

6 REPLIES 6
Read only

Former Member
0 Likes
1,407

1 possibility is that the space will be full and so more data cannot be saved in that path.

Also check if there is any dump related to this in ST22.

Read only

former_member404244
Active Contributor
0 Likes
1,408

Hi,

Use the tcode CG3Z and try to transfer the file to application server..see what happens

Regards,

Nagaraj

Read only

0 Likes
1,407

Hi Nagraj,

I Used T Code given by you. it is giving error 'Cannot open file'

Whta should i do next?

Regards

Rajesh

Read only

0 Likes
1,407

Hi,

that means u r unable to write in application server the path u mentioned...try with other path and see....

basically the below code is used ,whcih u have done.plz have a look ..Try with other path and see if it is working for u..

  • Download internal table to Application server file(Unix)

DATA: e_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.

open dataset e_file for output in text mode.

lOOP AT it_datatab......

transfer it_datatab to e_file.

ENDLOOP.

close dataset e_file

Regards,

Nagaraj

Read only

0 Likes
1,407

Discuss the same with your basis consultant,

There are three categories of rights i.e Read (R)Write(W) Execute(X) access, for each resource on the UNIX server.

Give him your user id and the apps directory name, also tell him your system details. Ask him to check the access provided and let him do the needful.

Regards,

Mayank.

PS: Hope your problem is solved and its points time.

Read only

Former Member
0 Likes
1,407

Rajesh,

I think you don't have write permision in that directory.

check with basis person (OR)

use tcode cg3z and try to upload in application server if you can not meams you don't have permision.

Don't forget to reward if useful...