cancel
Showing results for 
Search instead for 
Did you mean: 

Make the Export button of ALV as read only

preethi_santhanam
Participant
0 Kudos

Hi,

Could you please let me know if there is a way to make the standard "Export" button of ALV read only based on a condition?

I am aware that we can make it visible/invisible using set_export_allowed method, but unable to find a method to make it read only.

Best Regards,

Preethi.

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Preeti,

did you try the setting the enabled property of the standard function?

get the standard function export instance by calling IF_SALV_WD_FUNCTION_SETTINGS->GET_FUNCTION_STD. constants for standard function id is available in the IF_SALV_WD_C_STD_FUNCTIONS interface

then call CL_SALV_WD_FUNCTION_STD->set_enabled( abap_false).

BR, Saravanan

preethi_santhanam
Participant
0 Kudos

Hi Saravanan,

Thanks for this fix!Points rewarded

Best regards,

Preethi

Answers (0)