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

OPEN Dataset - Peculiar problem

former_member198445
Participant
0 Likes
621

Hello experts!

I am facing a peculiar problem with ABAP keyword OPEN DATASET.

I have a directory to which I am adding new files using OPEN DATASET FOR OUTPUT.. this works perfectly fine in the Consolidation system. But the same thing does'nt work in the Production system! It return SY-SUBRC = 8

After reading several other posts on SDN and other forums, the following causes were touted.

1) Path incorrect

2) No Authorization

But upon checking, neither of the wo are possible because the path is maintained properly and the authorizations at OS level are given (R/W) to this folder. Moreover, the user has S_DATASET auth object!!

Then I read somewhere else that having multiple Application Servers could be a possible cause and that running the code as a background job would be afix.. Is it so?

Even if it is, the application is in ABAP Web Dynpro and is launched from the portal.. hence launching it as a background job is not an option... Any solutions?????

Any help on this would be appreciated...

Thanks in advance, Amith

1 ACCEPTED SOLUTION
Read only

nirajgadre
Active Contributor
0 Likes
584

Hi,

Yes this is true that if we are having the multiple application server then this kind of error occures if your specified directory is not mapped on the alll the avaiable sAP application servers.

I guess when ever you are running your application then system will pick the appkication server based on the present load. Hence if your directory is not mapped in that application server then you wil get this kind of issues,

so i guess check with you basis team that spctified path is avaiable in all the application server.

3 REPLIES 3
Read only

nirajgadre
Active Contributor
0 Likes
585

Hi,

Yes this is true that if we are having the multiple application server then this kind of error occures if your specified directory is not mapped on the alll the avaiable sAP application servers.

I guess when ever you are running your application then system will pick the appkication server based on the present load. Hence if your directory is not mapped in that application server then you wil get this kind of issues,

so i guess check with you basis team that spctified path is avaiable in all the application server.

Read only

0 Likes
584

Thank You Niraj,

I just spoke to my Basis team.. And they fixed this issue by mapping the directory!

Thanks..

Amith

Read only

Former Member
0 Likes
584

Hi Amith,

you can check the authority with fm AUTHORITY_CHECK_DATASET before opening the dataset!

Regards,

Klaus