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

Add button to a Std toolbar (program)

ricky_shaw
Contributor
0 Likes
2,570

Hello Experts,

I want to add a button on the application too bar of the tcode IW72 (Change Service & Maint Orders).

Upon  clicking the button i need to write a customized code to call a screen.

How can i do this enhancement? Please suggest

Thanks

Dan

1 ACCEPTED SOLUTION
Read only

sachin_yadav3
Active Participant
0 Likes
2,387

Hi.

You can try with BADI   badi_eam_riaufk20_fcode_cus1 . With this badi we can add custom buttons.

Regards

Sachin

10 REPLIES 10
Read only

Former Member
0 Likes
2,387

try to implement for project in cmod for enhancement ICSV0003. you need to implement menu exit . check below link for menu exit details.

<link to blocked site removed by moderator>

Message was edited by: Thomas Zloch

Read only

0 Likes
2,387

Hi Vipin,

I dont see any relevant Menu Exit for this one but i think we are close.

I am trying to add my button to the next screen (screen# 500) thats shows the list of orders.

Pls suggest.

Read only

0 Likes
2,387

i could not find screen 500.

do u want to add button where mouse cursor is pointing?

Read only

0 Likes
2,387

Hello Vipin,

Yes. Exactly i want to add the button where the mouse is pointing to?

Sorry for the trouble.

Thanks

Read only

0 Likes
2,387

one way can be, copy report: RIAUFK20 to ZRIAUFK20 and create a new button in GUI status.

write button action.

Read only

sachin_yadav3
Active Participant
0 Likes
2,388

Hi.

You can try with BADI   badi_eam_riaufk20_fcode_cus1 . With this badi we can add custom buttons.

Regards

Sachin

Read only

0 Likes
2,387

Yes, In ES_EAM_LIST_ENHANCEMENTS Enhancement spots, there are BADI_EAM_RIAUFK20_FCODE_CUS1 for orders list, BADI_EAM_RIQMEL20_FCODE_CUS1 for notificiations list and BADI_EAM_RIAFVC20_FCODE_CUS1 for operations list.

Regards,

Raymond

Read only

0 Likes
2,387

Hello All,

All the answers are helpful. I choose to go with impl theBADI_EAM_RIAUFK20_FCODE_CUS1.

Raymond: I  see that i can add only one button here. If i want to add some 2 or 3 more buttons what should i do?

Pls suggest.

Read only

0 Likes
2,387

You could try to use a small dynpro with some icons that is displayed when the single button is pressed (name it "more options"), or more smart coding executing some methods of class cl_gui_toolbar.

You could also from any exit/Badi of PBO attach a cl_gui_docking_container to add a full cl_gui_toolbar attached on one side of a standard screen, managing it via event handling.

Regards,

Raymond

Read only

0 Likes
2,387

I need to attach my own customized button clicks so i think cannot use cl_gui_toolbar. Probably i am thinking in a wrong way. Or is there a way to call cl_gui_toolbar.

Can you please tell me: How can i attach the cl_gui_docking container?

Thanks