11-17-2015 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.
11-17-2015 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.
11-17-2015 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
11-17-2015 7:24 AM
First analyze any similar standard transaction (e.g. VA01) with transaction SU24, you should easily identify required authority-check.
Add those check in your report, then use SU24 on your z-transaction so adding the transaction to a role with PFCG will add those check to the role.
Refards,
Raymond
11-17-2015 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 .
11-18-2015 4:55 AM
Thanks All of you, it has solved by applying su21 and authority-check.
regards
11-18-2015 5:02 AM
Hi Syed,
then mark the appropriate answer as helpful or correct and close the thread.