03-28-2013 7:15 AM
Hi,
Could anyone suggest a how to restrict display of table entries thru se11(se16) for specific users for a specific table?
03-28-2013 8:05 AM
Hi,
Refer to link which has similar requirement.
https://scn.sap.com/thread/1772896
Hope this helps.
Thanks,
Tooshar Bendale
03-28-2013 8:56 AM
Hi Srilatha,
U can do this way.
You have to implement the event 'AA' (Instead of the standard data read routine).
Sample subroutine you can use:
FORM read_data.
DATA: st_view TYPE zmv01335.
* Read the data from the view using standard routine
PERFORM get_data_zmv01335.
* UPD & AEND are for change entries event.
CHECK sy-ucomm = 'UPD' OR sy-ucomm = 'AEND'.
LOOP AT total INTO st_view.
IF st_view-uname NE sy-uname.
DELETE total.
ENDIF.
ENDLOOP.
ENDFORM.
Thanks
Tarak
03-28-2013 9:11 AM
hi srilatha,
you got to implement a event of table maintenance generator, where you will find an event name 'AA' try modifying it by writing your own subroutine, your code will be as below.
If SY-UNAME <> "ABC" .
SELECT * FROM TABLE TO internaltable
ENDIF.
Refer following link for implementing event: http://wiki.sdn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS
thanks and regards,
narayan