2007 Mar 12 2:44 PM
Hi Experts,
How to set the PF status dynamically?
thanks
Dany
2007 Mar 12 2:47 PM
2007 Mar 12 2:49 PM
Hello Dan,
you can't create it dynamically, but you can change the pf-status dynamically at runtime.
by excluding the function code from it.
like this.
TYPES: BEGIN OF TAB_TYPE,
FCODE LIKE RSMPE-FUNC,
END OF TAB_TYPE.
DATA: TAB TYPE STANDARD TABLE OF TAB_TYPE WITH
NON-UNIQUE DEFAULT KEY INITIAL SIZE 10,
WA_TAB TYPE TAB_TYPE.
CLEAR TAB.
MOVE 'DELE' TO WA_TAB-FCODE.
APPEND WA_TAB TO TAB.
MOVE 'AUSW' TO WA_TAB-FCODE.
APPEND WA_TAB TO TAB.
<b>SET PF-STATUS 'STA3' EXCLUDING TAB.Regards,
Vasanth
2007 Mar 12 3:03 PM
2007 Mar 12 3:09 PM
Hello,
Here AUSW is a fcode for a button. If I move this the table then that button will not be shown in the appicaltion tool bar.
Thanks !!
Vasanth
2007 Mar 12 3:07 PM
Hi,
By writing some conditions we can make our PF-STATUS as dynamic.
For that you do the following steps:
First create the pf-status using ' SET PF-STATUS 'S100' ' by using different fuction code(length 4 characters generally).
Now if you don't want a particular function code, let us say 'BACK' , then you can do it as follows:
First Collect the function code 'BACK' into an internal table(ITAB) and then
write the statement as
SET PF-STATUS 'S100' EXCLUDING ITAB.
Your work is done.
Regards,
Balakrishna.N
2007 Apr 03 9:59 AM
Hello,
The statement EXCLUDING is disabling the menu option. But is there a way to hide the option and not only disabling it ?
By disabling, I mean to grey out the option and make it non selectable.
By hiding, I mean completely remove the option from the menu.
Thanks,
Thierry
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |