Application Development 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: 

is it possible?

former_member198275
Active Contributor
0 Kudos

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

7 REPLIES 7

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

At selection-screen on p_field.

call authorisation obj for field

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

former_member198275
Active Contributor
0 Kudos

thanks