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

selection screen

Former Member
0 Likes
509

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

5 REPLIES 5
Read only

Former Member
0 Likes
467

Hi,

You may have set thePF status, disable the buttons which you don't need in the PF-status.

Regards,

Raghavendra

Read only

andreas_mann3
Active Contributor
0 Likes
467

hi,

look to fm's of function group SPO1:

e.g.

-POPUP_TO_CONFIRM

A.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
467

HI Try this:

call screen '9000' statrting at X Y .

After t his call function POPUP_TO_CONFIRM in the PBO .

Hope this helps.

Read only

Former Member
0 Likes
467

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

Read only

sourabhshah
Product and Topic Expert
Product and Topic Expert
0 Likes
467

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.