‎2006 Dec 13 9:25 PM
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
‎2006 Dec 13 9:27 PM
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
‎2006 Dec 14 5:05 AM
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.
‎2006 Dec 14 8:57 PM
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
‎2006 Dec 14 8:57 PM