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: 

Button on report selection screen application toolbar

Former Member
0 Kudos

Hi,

I want to place Button (application tool bar)on report(executable program) selection screen.

Need your valuable suggestions.

Thanks,

Sreedevi

1 ACCEPTED SOLUTION

suresh_datti
Active Contributor
0 Kudos

one option could be to create a new pf-status in se41 & assign it in your program.

Regards,

Suresh Datti

6 REPLIES 6

Former Member
0 Kudos

hi

at selection-screen output.

set pf_status.

same question prev. ansewred

plz refer to this

<b>

suresh_datti
Active Contributor
0 Kudos

one option could be to create a new pf-status in se41 & assign it in your program.

Regards,

Suresh Datti

0 Kudos

just refer link and follow the raja answer it is amagin.....

<b>

just copy and paste....</b>

REPORT ytest.

TABLES: sscrfields .

INCLUDE <icon> .

SELECTION-SCREEN FUNCTION KEY 1 .

parameters: pc(1) .

INITIALIZATION .

CONCATENATE icon_next_object 'test button at applicatin toolbar'

INTO

sscrfields-functxt_01 .

AT SELECTION-SCREEN.

IF sscrfields-ucomm EQ 'FC01' .

break sy-uname .

ENDIF .

Former Member
0 Kudos

Hi Sreedevi,

You can create the PF-STATUS either through SE41 or by navigating from main program. In the application toolbar section, give the name and function code to the buttons.

Now you can use the pf-status in the PBO Event of the selection screen.

AT SELECTION-SCREEN OUTPUT.

SET PF-STATUS 'MENU1'.

This will work.

Also refer this link also..

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba80935c111d1829f0000e829fbfe/content.htm

Regards,

SP.

former_member188685
Active Contributor
0 Kudos

Hi,

Check this DEMO program <b>demo_sel_screen_function_key</b>

Regards

vijay

Former Member
0 Kudos

hii

1. create GUI status with "Status" name and "Short text"

2. Now a screen will appear with the following,

a. Menu Bar

b. Application tool bar

c. Function keys

3. Click the down arrow near the application toolbar

4. Enter the function code like SAVE, EXIT, etc., You

can also give ur own meaningful naming convention .

For example ( ZTEST)

5. Now press enter, it will ask for "Static text" or "Dynamic Text". Choose Static text and press enter

6. Now it will ask for function text and Icon name. Specify some function text ( what it does ) and Icon name u want to attach.

7. Press enter. It will ask for function keys. Specify a function key and press enter.

8. Now u can handle this function code (ZTEST) either in PBO/PAI like IF FUNCTION = ZTEST ...ENDIF

Note:

Don't forget to set the GUI status u have created in PBO event.

Example code to set PF status.

PROCESS BEFORE OUTPUT.

MODULE liste_initialisieren.

MODULE setstatus_0100.

LOOP AT extract WITH CONTROL

tctrl_ztufi_league CURSOR nextline.

MODULE liste_show_liste.

ENDLOOP.

In the above MODULE setstatus_0100 do the following,

SET PF-STATUS 'ZGUI'. ( The GUI status u have created).

Check this:

<b>http://www.sapdevelopment.co.uk/reporting/selscr/but_appbut.htm</b>

<b>http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm

http://www.planetsap.com/Tips_and_Tricks.htm</b>;

Regards

Naresh