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

Insert Pushbutton Button into Toolbar

Former Member
0 Likes
862

Hi

I have declared a screen with some select-options , subscreens and so on.I have also declared a pushbutton.I now want to move the button in the tollbar where the button for F8 Run is.

If this is not possible,i would like to insert some free rows between the pushbutton and the select-options,because now,my button is exactly bellow my select-options and i would like to insert at least one empty row,how can i do that?

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
828

Hi

If it is a report then try like below:

SELECTION-SCREEN FUNCTION KEY 1.

This would insert a button besides the execute button and the function code assigned to it would be 'FC01'.

on youc an put a condition like I

F SSCRFIELDS-UCOMM = 'FC01'.

on your selection screen event.

Also you can name the same as

SSCRFIELDS-FUNCTXT_01 = 'Name'.

Regards,

Himanshu

7 REPLIES 7
Read only

guilherme_frisoni
Contributor
0 Likes
828

Hi,

to insert a row in your screen use SELECTION-SCREEN SKIP.

Frisoni

Read only

Former Member
0 Likes
829

Hi

If it is a report then try like below:

SELECTION-SCREEN FUNCTION KEY 1.

This would insert a button besides the execute button and the function code assigned to it would be 'FC01'.

on youc an put a condition like I

F SSCRFIELDS-UCOMM = 'FC01'.

on your selection screen event.

Also you can name the same as

SSCRFIELDS-FUNCTXT_01 = 'Name'.

Regards,

Himanshu

Read only

RaymondGiuseppi
Active Contributor
0 Likes
828

Look at [SELECTION-SCREEN - FUNCTION KEY|http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_FUNCTIONKEY.htm]

Regards,

Raymond

Read only

0 Likes
828

Excelent,thanks all,it worked like himanshu said.Now i have another small problem, i want to have an select-option with read only. I will calculate a value which is a procentage that i insert into another select-option and write it into that select-option.How can i do that.

thanks

Read only

0 Likes
828

Hi,

You can declare any select option and then at the event at selection-screen output change the same to display only like below.



select-options: s_matnr for mara-matnr.


at selection-screen output.

loop at screen.
 if screen-name = 'S_MATNR-LOW' or scree-name = 'S_MATNR-HIGH'
 screen-input = 0.
modify screen.
endif.

Regards,

Himanshu

Read only

0 Likes
828

- in PBO (AT SELECTION-SCREEN OUTPUT) use a [LOOP AT SCREEN |http://help.sap.com/abapdocu/en/ABAPLOOP_AT_SCREEN.htm]and set [SCREN-INPUT|http://help.sap.com/abapdocu /en/ABENSCREEN.htm] = 0 for this select-option (Use a [MODIF ID|http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_MODIF_ID.htm] in the SELECT-OPTIONS DEFINITION, and check SCREEN-GROUP1 in the LOOP AT SCREEN)

- i don't understand the rest of your question, so INSERT LINES of one of the SELECT-OPTIONS into the other one AT SELECTION-SCREEN ON one of the two ?

Regards,

Raymond

Read only

0 Likes
828

thanks everybody for the help.