Application Development and Automation 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: 
Read only

Disabling function buttons on Application Log toolbar

Former Member
0 Likes
789

Hi,

How could I disable function buttons (for ex. 'Sort') when creating an application log using function module 'BAL_CNTL_CREATE'? I know I can hide the toolbar by setting the display profile attribute NO_TOOLBAR; however, I would like to display the toolbar but I want some of the function buttons disabled. Is there any function modules that will disable these function buttons that I can use (related to Application Log), I could not find one? Any help is greatly appreciated.

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
689

You can use the syntax:

APPEND 'CHANGE' TO fcode.

APPEND 'SAVE' TO fcode.

SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.

This would disable the buttons associated to SAVing and changing.

Regards,

Ravi

Read only

0 Likes
689

Thanks, Ravi. I understand your reply will work if I was using PBO, PAI controls when painting a screen. However, I am interested to disable the function buttons on the application log toolbar rather than the function buttons on my main screen. In addition, my application log is displayed within a docking-container and it cannot be modified as you suggested. Thanks.

Read only

0 Likes
689

Hi,

If you are using a docking container that means you are displaying data using a ALV grid, right?

Whether you are using a REUSE function or OO ALV control for the grid, there will be a parameter IT_TOOLBAR_EXCLUDING for the function / SET_tABLE_FOR_FIST_DISPLAY method.

Append your function codes that you want to hide and pass them to the function / method. That should do the job.

Regards,

Ravi

Note : Please mark the helpful answers and close the thread if the question is answered.

Read only

0 Likes
689

Ravi,

Thanks for your reply again. However, your suggestions is when displaying data using ALV grid; my question is related to displaying messages using Application Log. Just like SET_TABLE_FOR_FIRST_DISPLAY method, I am looking for (if there is one) a function module where I could use a parameter to exclude function buttons. I am using function module 'BAL_CNTL_CREATE' when creating my Application Log but the module does not have a parameter to exclude function buttons. Thanks.