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: 

table entries restriction for display

0 Kudos

Hi,

Could anyone suggest a how to restrict display of table entries thru se11(se16) for specific users for a specific table?

3 REPLIES 3

Former Member
0 Kudos

Hi,

Refer to link which has similar requirement.

https://scn.sap.com/thread/1772896

Hope this helps.

Thanks,

Tooshar Bendale

Former Member
0 Kudos

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

uppu_narayan
Active Participant
0 Kudos

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