2008 Jun 02 7:52 AM
Hi fellow abapers
I'm calling a selection-screen from one selection-screen (both defined using statement:selection-screen). The called screen is of type WINDOW (called using CALL SELECTION_SCREEN STARTING AT..).
The called screen(window) has 5 buttons (Execute,Check,Variant load,Save,Cancel).
my requirement is
(a) is there any way to exclude buttons from the screen.
(b) how to get the function code (sy-comm) of the clicked button in the above screen.( when i debugged it hasn't returned any value to SY-UCOMM, because of this ,even if i click cancel button it executes a part of coding-- i need to avoid this ).
plz hlp
rewards sure.
Regards
Prabumanoharan
Hi fellow abapers
I'm calling a selection-screen from one selection-screen (both defined using statement:selection-screen). The called screen is of type WINDOW (called using CALL SELECTION_SCREEN STARTING AT..).
The called screen(window) has 5 buttons (Execute,Check,Variant load,Save,Cancel).
my requirement is
(a) is there any way to exclude buttons from the screen.
(b) how to get the function code (sy-comm) of the clicked button in the above screen.( when i debugged it hasn't returned any value to SY-UCOMM, because of this ,even if i click cancel button it executes a part of coding-- i need to avoid this ).
plz hlp
rewards sure.
Regards
Prabumanoharan
2008 Jun 02 7:56 AM
Hi,
You can write a PAI module for this.For excluding some buttons,you set the PF status and write
SET PF-STATUS <status name> excluding TAB.
2008 Jun 02 8:00 AM
Hi!
1) You can exclude buttons of your pf-status using:
SET PF-STATUS '0200_1_008' EXCLUDING extab2.
Where extab2 TYPE SLIS_T_EXTAB.
And you can populate it:
CLEAR ls_extab.
ls_extab-fcode = 'IMPR4'.
APPEND ls_extab TO extab2.
2) You can personalize your status with transaction se41. You can indicate the name of the sy-ucomm. If you want eliminate the cancel action, you can eliminate it from the status.
Bye!
2008 Jun 02 8:03 AM
hi prabu,
using CALL SELECTION-SCREEN returns only 2 values.
sy-subrc = 0.
if the user clicks on the continue button
sy-subrc = 4.
if the user clicks on the cancel button.
regards,
Peter
2009 Jun 16 8:32 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |