Application Development 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: 

Buttons in Selection Screen

Former Member
0 Kudos

Hi,

In my module pool program, if I click a button, am calling a selection screen using following statement.

CALL SELECTION-SCREEN 0105 STARTING AT 10 10 ENDING AT 95 16.

also, in TOP include, I have designed the selection screen as follows

SELECTION-SCREEN BEGIN OF SCREEN 0105.

SELECTION-SCREEN BEGIN OF BLOCK proj_def WITH FRAME TITLE text-100.

SELECT-OPTIONS pspid FOR proj-pspid.

SELECTION-SCREEN END OF BLOCK proj_def.

SELECTION-SCREEN END OF SCREEN 0105.

when I execute, there are some default buttons are coming. But I want to include my own buttons and I have to write code for that. Is it possible? How can I do that?

Regards,

SAP Lover.

5 REPLIES 5

Former Member
0 Kudos

Hi,

have you checked the GUI status of your screen ?? you can either erase or deactivate buttons that you do not need in the application toolbar or in the function keys.

Former Member
0 Kudos

Hi,

Goto SE41,

give the program name and the screen no as 0105

goto the status in change mode and remove the unwanted icons

0 Kudos

Hi Chandrasekar,

There is no subobject called 'Screen' to enter the screen number, in SE41.

Am using a standalone selection screen. How can I view and modify the status?

or is there any possibility to use select-options in normal screen?

or is there any possibility to include that selection screen in a normal screen?

Regards,

SAP Lover

0 Kudos

Hi,

Proceed as follows to achieve your requirement.

1. Click on the button

2. According to your logic you'll get a Selection Screen as POP-UP

3. Now select F1 on that input field

4. Go with Technical Information Option

5. You'll get the necessary info and here you can notice GUI DATA

6. Here you can see the program name as RSSYSTDB and Status as %_CSP

7. Double click on this status.

8. It will lead you to that status. Click on Display <-> Change / CTRL + F1.

9. It will ask for the access key. get the access key from BASIS and then here you go to change according to your requirement.

Hope this helps. Reward if useful.

Thanks and Regards,

Maddineni Bharath.

Former Member
0 Kudos

Hi,

Try this code


TABLES: sscrfields,Proj.
TYPE-POOLS icon.

SELECTION-SCREEN BEGIN OF SCREEN 0105.
SELECTION-SCREEN BEGIN OF BLOCK proj_def WITH FRAME TITLE text-100.
SELECT-OPTIONS pspid FOR proj-pspid.
SELECTION-SCREEN: FUNCTION KEY 1.
SELECTION-SCREEN END OF BLOCK proj_def.
SELECTION-SCREEN END OF SCREEN 0105.

INITIALIZATION.
*
** Add displayed ICON  to application toolbar.
  MOVE icon_xls TO sscrfields-functxt_01.

Regards

Sandipan