2015 Nov 17 6:28 AM
Dear All,
I have created alv sales report in ECC and it is required to authorize to the users to see only the respective company code or sales org. data. We added customize tcode into roles.But it is not working.
2015 Nov 17 6:37 AM
Hi Tayab,
Please create an Auth Object for your fields of concern. Implement the Auth Object in your report. And check for Sy-subrc. If 0 display the values!
Hope this helps.
Cheers,
Kripa Rangachari.
2015 Nov 17 7:15 AM
Hi,
in your report "alv sales report" you can use this statement
AUTHORITY-CHECK OBJECT 'Z_comp_code'
ID 'ACTVT' FIELD '03'
ID 'Z_comp_code' FIELD lv_com_code. "
IF sy-subrc EQ 0.
endif.
and the same for the sales.
refer to this document,may it help you.
Regards
Ebrahim
2015 Nov 17 7:24 AM
2015 Nov 17 9:29 AM
Hi,
As Suggested by Raymond check with SU24 for authorization object.
Other wise some standard authorization object available to check company code wise or sales org wise authority-check , So for that take the help of SU21 tcode .
2015 Nov 18 4:55 AM
Thanks All of you, it has solved by applying su21 and authority-check.
regards
2015 Nov 18 5:02 AM
Hi Syed,
then mark the appropriate answer as helpful or correct and close the thread.