on 2023 May 19 5:55 AM
Hi experts,
I have created an authorization role which has this configuration
Field1 = ABCD
Field2 = IPAN
Field3 = 01.01.1981 - 31.12.1983
When a user has this role, this information needs to be checked, including the birth date. So in this way, is there any posibility to do a between check in an authority check?
authority-check object 'ZHR_BIRTH'
id 'ZFIELD1' field ls_user-field1
id 'ZFIELD2' field ls_user-fild2
id 'ZBIRTH_DATE' field ls_user-birth --> Is there here any between or any comprobation for a range?
Thanks in advance!
Regards,
Rebeca
Finally what I have done is to check the information of the role and compare it. The function I've used is EFG_USER_AUTH_FOR_OBJ_GET
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ABAP authorization concept allows intervals in fields.
Each field of an Authorization record in a profile/role can contain:
Be careful, A*B is forbidden/impossible, the star can be at the end only (e.g. A*).
An authorization check can only be done using an exact value or none value (either not mentioning "ID 'fieldname' FIELD 'value'", or mentioning "ID 'fieldname' DUMMY) for each field.
In your case, you may indicate dates in YYYYMMDD format
Field3 = interval from 19810101 to 19831231<br>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
4 | |
3 | |
3 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.