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

push button

Former Member
0 Likes
719

Hi Experts ,

I want to place a pushbutton on the application toolbar of the Selection-Screen .

Is it possible . If so how ? .

Thanx in advance ,

Senthil

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
691

Hi,

Try using the function module.

RS_EXTERNAL_SELSCREEN_STATUS

Read function module documentation.

Kindly reward points if it helps.

4 REPLIES 4
Read only

dani_mn
Active Contributor
0 Likes
691

HI,

check the code below

report z_test1.

TABLES: sscrfields,rlgrap .
INCLUDE <icon> .

SELECTION-SCREEN FUNCTION KEY 1 .
SELECTION-SCREEN FUNCTION KEY 2 .
PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'C:test.txt' .

INITIALIZATION .

  CONCATENATE icon_next_object 'Download into excel'
  INTO sscrfields-functxt_01 .

  CONCATENATE   ICON_EXECUTE_OBJECT 'Execute'
  INTO sscrfields-functxt_02 .


AT SELECTION-SCREEN.
  IF sscrfields-ucomm = 'FC01'.
    message s000(su) with 'testing'.
  elseif sscrfields-ucomm = 'FC02'.
   sscrfields-ucomm = 'ONLI'.

  ENDIF .

START-OF-SELECTION.
  WRITE: 'TESTING'.

Read only

Former Member
0 Likes
691

Create a status and use the same in INITIALIZATION.

You should copy the 'STANDARD' GUI status from standard program(e. g. SAPLKKBL) using transaction SE90 >Programming SubObjects> Gui Status.

Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.

Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.

Use SET PF-STATUS 'STANDARD' in initialization event.

This will work.

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
692

Hi,

Try using the function module.

RS_EXTERNAL_SELSCREEN_STATUS

Read function module documentation.

Kindly reward points if it helps.

Read only

Former Member
0 Likes
691

Hi all ,

Thanks a lot for ur immediate response . I got it . I wish u Peoples to continue

ur service to us .

Regards ,

Senthil .