10-06-2007 9:39 AM
Authorized Object can be applied for one report. But is it possible to apply Authorized Object for one or two perticular fields in the display of any report??If possible then how???
Its urgent....plz !!
Message was edited by:
KaushiK©Datta
10-06-2007 10:56 AM
it is possible to have 2 Authorized Objects in same report.
in the event AT SELECTION-SCREEN.
call autority-check objects.
AUTHORITY-CHECK OBJECT 'V_VTTK_TDS'
ID 'TPLST' FIELD '__________'
ID 'ACTVT' FIELD '__________'.
AUTHORITY-CHECK OBJECT 'A_IMA_ART'
ID 'IM_IVART' FIELD '__________'
ID 'IM_ACTVT' FIELD '__________'.
10-06-2007 11:33 AM
My dear ..
Authz Object are always applied to a perticular field... or a value..
you just implement it in a report.. so that the report sould check the authz for that perticular field.. (hw to do is given in above post)
secondly u can be restricted for a perticular report/transaction code.. which a completely different thing it comes under basis and urr user profile is updated for the same.. No programming involved..
No Rewards Plz...
10-06-2007 11:38 AM
10-06-2007 11:47 AM
Kaushik,
Is this your question :
User has authorization to run a report, but does not have auth to view a couple of fields on the report. Some other user has authorization for those two fields as well.
So you want to know how to hide the two fields from the user who does not have authorizations.
If yes,
If your report is ALV , the check for authorizations of individual fields before you populate the field catalog. If you find that the user does not have auth for a particular field, then set the flag of 'Technical' in the catalog for that field.
This will not only hide the fields in the first display, but it wont even appear if he tries to change the layout.
Hope it helps.
Regards,
Srihari
10-06-2007 1:40 PM
Hi Srihari....u got right. Can u send me some sample code for this....it will be very helpful.
Message was edited by:
KaushiK©Datta
10-06-2007 3:20 PM
Kaushik,
If you are checking for authorizations by using Auth objects, the code is the same as posted by a lot of people. (Just use the pattern function in ABAP editor for this).
For field population, other than the regular fields you just have set an 'X' for the field 'TECH' in the field catalog.
Please search this forum, you will find enough code examples.
Regards,
Srihari
10-09-2007 5:46 AM