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

authorizations in report

Former Member
0 Likes
484

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....

3 REPLIES 3
Read only

Former Member
0 Likes
453

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

Read only

Former Member
0 Likes
453

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

Read only

Former Member
0 Likes
453

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