2008 Apr 30 10:18 AM
Hi all,
I just need clarification regarding authorisations, my requirement is something like this, i have to pass two values for actvt & the field
authorisation object - v_vfkk_fka
activity - 03 & 02
field value - '001' & '002' .
the code i have written is not working, which is mentioned below.
authority-check object 'v_vfkk_fka'
id 'fkart' field '001' '002'.
id 'actvt' field '03' '02'.
Can anyone suggest me where did i do the mistake?
Thanks in Advance....
Hi all,
I just need clarification regarding authorisations, my requirement is something like this, i have to pass two values for actvt & the field
authorisation object - v_vfkk_fka
activity - 03 & 02
field value - '001' & '002' .
the code i have written is not working, which is mentioned below.
authority-check object 'v_vfkk_fka'
id 'fkart' field '001' '002'.
id 'actvt' field '03' '02'.
Can anyone suggest me where did i do the mistake?
Thanks in Advance....
2008 Apr 30 10:22 AM
Hi Prashanth,
Refer to the following code:
WF_INTERFACE_KEY = '0000000130'.
BNAME = SY-UNAME.
if INTERFACE_KEY <> WF_INTERFACE_KEY.
RETURN-TYPE = 'E'.
RETURN-MESSAGE = 'Interface key error.'.
append RETURN.
clear RETURN.
exit.
endif.
clear INT_FIELDVALUE.
refresh INT_FIELDVALUE.
free INT_FIELDVALUE.
move 'ACTVT' to INT_FIELDVALUE-FIELD.
move '16' to INT_FIELDVALUE-VALUE.
append INT_FIELDVALUE.
move 'OBJNAME' to INT_FIELDVALUE-FIELD.
move 'Z_RFC_RFQ_PO_DETAIL' to INT_FIELDVALUE-VALUE.
append INT_FIELDVALUE.
call function 'Z_AUTH_OBJECT_CHECK'
exporting
BNAME = BNAME
OBJECT = 'Z:RFC:WEBM'
INTERFACE_KEY = WF_INTERFACE_KEY
importing
RETURN = WF_RETURN
MSGLINE = WF_MSGLINE
tables
FIELDVALUE = INT_FIELDVALUE
exceptions
others = 1.
Hope this helps.
Reward if helpful.
Regards,
Sipra
2008 Apr 30 10:23 AM
Check out in this way ...
authority-check object 'v_vfkk_fka'
id 'fkart' field '001
id 'fkart' field' '002'.
id 'actvt' field '03'
id 'actvt' field '02'.
Regards,
Santosh
2008 Apr 30 10:23 AM
Hi Prashanth
You cannot give you values for the field. You have to split them. So it would be something like,
authority-check object 'v_vfkk_fka'
id 'fkart' field '001'
id 'actvt' field '03' '.
authority-check object 'v_vfkk_fka'
id 'fkart' field '001'
id 'actvt' field '02'.
authority-check object 'v_vfkk_fka'
id 'fkart' field '002'.
id 'actvt' field '03' .
authority-check object 'v_vfkk_fka'
id 'fkart' field '002'.
id 'actvt' field '02'.
Also make sure the object and ID are in uppercase.
Regards
~ Ranganath
Edited by: Ranganath Ramesh on Apr 30, 2008 11:24 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |