Application Development 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: 

Files on application server problem.

Former Member
0 Kudos

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

former_member404244
Active Contributor
0 Kudos

Hi,

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

Regards,

Nagaraj

6 REPLIES 6

Former Member
0 Kudos

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.

former_member404244
Active Contributor
0 Kudos

Hi,

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

Regards,

Nagaraj

0 Kudos

Hi Nagraj,

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

Whta should i do next?

Regards

Rajesh

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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...