‎2006 May 05 4:20 PM
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.
‎2006 May 05 4:25 PM
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
‎2006 May 05 7:49 PM
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.
‎2006 May 06 2:34 AM
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.
‎2006 May 09 3:23 PM
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.