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

Adding Button with execute button.

Former Member
0 Likes
3,601

Hi Experts,

It is possible to add a button with execute button. IF yes how it is possible.

Regards,

Rahul.

1 ACCEPTED SOLUTION
Read only

Former Member
2,417

Hello

Are you looking for this ?


TABLES: sscrfields.

DATA: text(20).

SELECTION-SCREEN FUNCTION KEY 1.

INITIALIZATION.
MOVE 'This is button' TO sscrfields-functxt_01.

AT SELECTION-SCREEN.
IF sy-ucomm = 'FC01'.
  text = 'button pressed'.
  sscrfields-ucomm = 'ONLI'.
ENDIF.

START-OF-SELECTION.
WRITE text.

7 REPLIES 7
Read only

Former Member
0 Likes
2,417

Hello,

You can do it from SE41(Menu painter).where you can set status what you want.

Thanks.

Ramya.

Read only

Former Member
2,418

Hello

Are you looking for this ?


TABLES: sscrfields.

DATA: text(20).

SELECTION-SCREEN FUNCTION KEY 1.

INITIALIZATION.
MOVE 'This is button' TO sscrfields-functxt_01.

AT SELECTION-SCREEN.
IF sy-ucomm = 'FC01'.
  text = 'button pressed'.
  sscrfields-ucomm = 'ONLI'.
ENDIF.

START-OF-SELECTION.
WRITE text.

Read only

0 Likes
2,417

HI ,

My requirement is that I want one push button by the side of excecute button.When we press f8 on the report, i want to add one more button with the execute button.

Regards,

Rahul.

Read only

0 Likes
2,417

HI rahul,

Do these step -

1. define

TABLES : sscrfields.

2.write this before the selection screen

selection-screen function key 1.

3.

INITIALIZATION.

sscrfields-functxt_01 = 'Test'.

4.

AT SELECTION-SCREEN.

IF sscrfields-ucomm EQ 'FC01'. " this is the user command for this button

ENDIF.

Regards,

Madhukar Shetty

Read only

0 Likes
2,417

Search in SDN before posting. You can find the below thread for the same purpose

Read only

Former Member
0 Likes
2,417

HI Rahul,

You can do using structure SSCRFIELDS.

You can put 5 push buttons on application tool bar using this.

Regards,

Pravin

Read only

arpit_shah
Contributor
0 Likes
2,417

Hi,

You want execute button inside report or on selection screen?

If you have to add in inside report then

you have to create pf-status using SE41.

Copy the standard GUI status of program SAPLKKBL to your program, and modify as per your requirement.

Regards,

Arpit