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

display pushbutton in appllication toolbar of basic list

Former Member
0 Likes
955

Hi friends ..

can anybudy tell me how can I put push button in application toolbar of basic list and assign user commant to it.

thankx

Regards,

Virat

Hi friends ..

can anybudy tell me how can I put push button in application toolbar of basic list and assign user commant to it.

thankx

Regards,

Virat

7 REPLIES 7
Read only

Former Member
0 Likes
927

hi

u can set the pf-status in the program.

set pf-status '<name>'

<name> is set in menupainter se41.

user command is given in menu painter only.....

Read only

Former Member
0 Likes
927

Virat,

After start of selection :

Give.

SET PF-STATUS 'EXCL'.

Double click on 'EXCL'.Then it will show the User interfaces Menu bar,Application tool bar...then u given the push button you want in application tool bar.

Reward pts if useful.,

Raj.

Read only

Former Member
0 Likes
927

hi

good

go through this link

http://www.synactive.com/docu_e/doc_pushbutton.html

thanks

mrutyun^

Read only

Former Member
0 Likes
927

hi virat,

u can create a pushbutton on the selection screen using this stmt.

selection-screen pushbutton : (5) but1 user-command XYZ,

10(5) but2 user-command DEF.

for application toolbar u have use,

SET pf-status 'push'.

Likewise a maximum of 5 pushbuttons u can able to create in the application toolbar.

Regards...

Arun.

Read only

Former Member
0 Likes
927

hi

u can set the pf-status in the program.

set pf-status '<name>'.

u write this set pf just before u are displaying ur basic list.

and in at user command. u need to capture the sy_ucomm i.e which pushbutton u have clicked all those coding u need to write it in at user command.

Read only

Former Member
0 Likes
927

hi,

SET PF-STATUS '0001'.

PERFORM f_display_basiclist.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'BACK'.

LEAVE PROGRAM.

WHEN 'EXIT'.

LEAVE SCREEN.

WHEN 'CANC'.

LEAVE SCREEN.

when 'PUSHBUTTON'.

ur logic.

endcase.

Read only

Former Member
0 Likes
927

Hi,

You can use set PF-STATUS '<Name>'.

On doubleclicking this it will take you to Screen menu

painter where you can add push buttons to Application, Satandard Tool bars.

Regards

Jitendra