cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a authorization object for Excel download in table AB?

Former Member
0 Kudos

Hi Expert,

As per our biz requirement, we want to disable the Excel download from the table assignment block for some users. Is there a authorizaiton object for this?

BRs

Liu Bo

Accepted Solutions (1)

Accepted Solutions (1)

former_member210661
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks, Srinivas.

I know this approach. This needs code ABAP. I want a standard authorization object which can control the button. 

Another way is to set parameter for corresponding biz role. But it is not base on user level.

former_member210661
Active Contributor
0 Kudos

Hi Liu Bo,

you can check standard authorization object under su21 check under crm you may get some idea..

otherwise ask your basis consultant they may know about this..

Thanks & Regards,

Srinivas.

Former Member
0 Kudos

I traced the authorization check. There was no object on this. I guessed that I missed something. So post this discuss.

Plan to code it. Close this thread. Thank you all.

Answers (0)