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

Return code 8 on OPEN DATASET

Former Member
0 Likes
5,954

Hi All,

i try to migrate a file with ISU-Migration workbench.

in the Display option I can see the file. All looks fine.

When I press IMPORT I got the message "migration executed" but actually it did not read anysthing. So I debugged and came to the OPEN DATASET.

There I get a sy-subrc of 8.

Do not remember what this means...probably the directory is protected or something...

Who knows?

Thanks in advance

Thomas

4 REPLIES 4
Read only

ferry_lianto
Active Contributor
0 Likes
2,504

Hi Thomas,

It seems you have permission denied on the open dataset.

Before the open dataset, please use the function module 'AUTHORITY_CHECK_DATASET' to see if you really have the authorization.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
2,504

hi Thomas,

hi thomas u can do authority check as stated below..

if sy-subrc is 8 it means too many parameters (fields, values). Maximum allowed is 10. I have also added the other sy-subrc condition so that u can benifit...

AUTHORITY-CHECK OBJECT object

ID name1 FIELD f1

ID name2 FIELD f2

...

ID name10 FIELD f10.

object

Field which contains the name of the object for which the authorization is to be checked.

name1 ...

Fields which contain the names of the

name10

authorization fields defined in the object.

f1 ...

Fields which contain the values for which the

f10

authorization is to be checked.

AUTHORITY-CHECK checks for one object whether the user has an authorization that contains all values of f (see SAP authorization concept).

You must specify all authorizations for an object and a also a value for each ID (or DUMMY).

The system checks the values for the IDs by AND-ing them together, i.e. all values must be part of an authorization assigned to the user.

If a user has several authorizations for an object, the values are OR-ed together. This means that if the CHECK finds all the specified values in one authorization, the user can proceed. Only if none of the authorizations for a user contains all the required values is the user rejected.

If the return code value in SY-SUBRC is 0, the user has the required authorization and may continue.

The return code value changes according to the different error scenarios. The return code values have the following meaning:

4

User has no authorization in the SAP System for such an action. If necessary, change the user master record.

8

Too many parameters (fields, values). Maximum allowed is 10.

12

Specified object not maintained in the user master record.

16

No profile entered in the user master record.

24

The field names of the check call do not match those of an authorization. Either the authorization or the call is incorrect.

28

Incorrect structure for user master record.

32

Incorrect structure for user master record.

36

Incorrect structure for user master record.

hope i had answered u.. rewward if u find it useful.

Regards,

Rajkumar.G.

Read only

Former Member
0 Likes
2,504

hi Rajkumar.G. ,

Thanks for your answer, but I think the reply with "too many parameters" was not the point. I was wondering how I could have too many parameters in an open dataset.

I fould the reason for sy-subrc: the path name was too long.

Thanks anyway.

thomas

Read only

Former Member
0 Likes
2,504

see my last thread