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

create button to application toolbar in report

former_member568822
Active Participant
0 Likes
1,964

Hi,

May i know how to create new button name continue near the save button or print button at the application toolbar?

Any suggestion ???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,608

Hi Fatt,

Good!

we could create the button by setting a new PF status to that report by the transaction SE41. But we need to handle the action inside the program for that function.

CASE sy-ucomm.

When ' CONTINUE'

ENDCASE.

Thanks & Regards,

Sunil

Hi,

May i know how to create new button name continue near the save button or print button at the application toolbar?

Any suggestion ???

6 REPLIES 6
Read only

Former Member
0 Likes
1,609

Hi Fatt,

Good!

we could create the button by setting a new PF status to that report by the transaction SE41. But we need to handle the action inside the program for that function.

CASE sy-ucomm.

When ' CONTINUE'

ENDCASE.

Thanks & Regards,

Sunil

Read only

Former Member
0 Likes
1,608

hi

you can create the button on ATB.

refer AT USER COMMAND.

Read only

Former Member
0 Likes
1,608

HI,

For creating a new button, write the name of the button on the tool bar for ex. &CONTI.

Double click on it, and choose the icon and function text ofr it.

Save and activate the menu.

Your button gets created in the menu.

Declare the variable in your program with the code for continue.

Here's an example,

form set_pf_status using rt_extab type slis_t_extab.

set pf-status 'ALV_MENU'.

endform.

form user_command using p_ucomm type sy-ucomm

data : vbeln type vbeln_va.

case p_ucomm.

when '&CONTI'.

.....

ENDCASE.

Regards,

Pritha.

Reward if helpful.

Read only

0 Likes
1,608

Hi

You can create a new button an application tool bar using menu painter

Check this link

http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm

http://help.sap.com/saphelp_nw04/helpdata/en/83/7a18cbde6e11d195460000e82de14a/frameset.htm

Regards

Pavan

Read only

Former Member
0 Likes
1,608

Hi Fatt,

Try using set pf-status 'name'.double click on name.It will take you to menu painter.click on appl. tool bar.give a name for your button and assign a function code.

regards,

kavitha

Read only

Former Member
0 Likes
1,607

hi,

->in the program for interaction define a pfstatus...

syntax: set pf-status 'DETAILS'. (this DETAILS is just an example....)

->double click on DETAILS and create an object

->name the functional keys wanted

->in the application toolbar you can add the required buttons

note: you can create buttons in application toolbar but not in standard toolbar(ie near print or save button)

<b>reward points if useful.</b>

regards,

Vinod Samuel.