on 12-16-2014 3:28 AM
Hi Liu Bo,
this we can achieve by using AUTHORITY-CHECK..
go through this link
SAPTechnical.COM - Defining Authorization objects for custom database tables
and based on that you can hide..
ex code:
in your view.htm
<%
DATA : LV_ downloadToExcel TYPE ABAP_BOOL.
AUTHORITY-CHECK OBJECT 'ZOBJECT'
ID 'ZID' FIELD 'X'.
%>
<%
IF SY-SUBRC eq 0.
LV_downloadToExcel = ABAP_TRUE.
ELSE.
LV_downloadToExcel = ABAP_FALSE.
ENDIF.
%>
in your table there is a tag..."downloadToExcel" in this tag you have to pass like this..
downloadToExcel = "<%= lv_downloadToExcel %>
try above method this will work..
Thanks & Regards,
Srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.