‎2006 Nov 30 8:11 AM
Hello All
I want small screen with yes and not button ..like the messagebox with yes and no button
I have tried the with the help of the
selection screen
on begin of line created the two push button with specifying the position of the button and width of the button
and with user command trapping which button is get pressed
screen display is ok with the two button and buttons
but on the screen bottom side it is displying the execute ,save,etc buttons (I think these are by default)..how to remove those buttons ...is these is any option on creation of the selection screen
thanks
mahya
‎2006 Nov 30 8:15 AM
Hi,
You may have set thePF status, disable the buttons which you don't need in the PF-status.
Regards,
Raghavendra
‎2006 Nov 30 8:15 AM
hi,
look to fm's of function group SPO1:
e.g.
-POPUP_TO_CONFIRM
A.
‎2006 Nov 30 8:33 AM
HI Try this:
call screen '9000' statrting at X Y .
After t his call function POPUP_TO_CONFIRM in the PBO .
Hope this helps.
‎2006 Nov 30 10:36 AM
Hi Mahya,
If you need a dialog box as a popup. you can go ahead with using the function module 'POPUP_TO_CONFIRM' in AT SELECTION SCREEN event.
Otherwise go ahead creating a custom dialog screen if you want the selection screen for the program to be so flexible.
Regards,
Radhu
‎2006 Nov 30 1:53 PM
Hi
You could certainly change the Pf- status of the selection screen..here you could use your own PF-status without the execute button..
The GUI status of a selection screen is generated by the system. The SET PF-STATUS statement in the PBO event of the selection screen has no effect on the standard GUI status. If you want to use your own GUI status for a selection screen or deactivate functions in the standard GUI status in exceptional cases, you can use one of the following function modules in the PBO event of the selection screen:
RS_SET_SELSCREEN_STATUS
Sets another GUI status defined in the same ABAP program, or deactivates functions of the standard GUI status.
RS_EXTERNAL_SELSCREEN_STATUS
Sets a GUI status defined in an external function group. You must use the SET PF-STATUS statement to set the status in a special function module in this function group. You must pass the name of the function module that sets the status as a parameter to the function module RS_EXTERNAL_SELSCREEN_STATUS.
For further information, refer to the function module documentation.
REPORT demo_sel_screen_status.
DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.
AT SELECTION-SCREEN OUTPUT.
APPEND: 'PRIN' TO itab,
'SPOS' TO itab.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.
In this example, the Print and Save as variant functions are deactivated. To find out the function codes of the standard GUI status, choose System ® Status and double-click the GUI status field.