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: 

add button to a maintenance view

daniel_humberg
Contributor
0 Kudos

I am working with maintenance views and user-defined events in maintenance views at the moment.

Now I'd like to add a button to the maintenance view that will show a popup with recent changes to the selected line of the database table.

Is that possible with user-defined events or should I modify the generated dynpros manually. But then, will the modifications be deleted if I will have to regenerate the maintenance view in the future (e.g. when I might add a field to the database table)?

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I believe that the practice is to manually modify the dynpros, and yes, your modifications would be lost if the maintenance view was re-generated.

Regards,

Rich Heilman

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I believe that the practice is to manually modify the dynpros, and yes, your modifications would be lost if the maintenance view was re-generated.

Regards,

Rich Heilman

0 Kudos

Screen Modifications will be lost, code modifications will not be lost if you have made changes to the include(where SAP requests you too include your code(there is a small comment where it tells at which place you should insert your code)). If you regenerate view maintenance, all you have to do is uncomment that line.

Regards,

Subramanian V.

Former Member
0 Kudos

If you are talking SE54 and Maintenance Views, when I do an SM30 on the Maintenance View and do SYSTEM->STATUS, I see GUI STATUS ZULG on program SAPLSVIM. If you look at that status, I see two buttons with dynamic text. The first one is call GPRF and has dynamic text VIM_PR_STAT_TXT_CH. You can find a suitable PBO event to set the text of that function code and if that works, find a suitable PAI event to respond to that function.

I recall finding some documentation on customizing the GUI STATUS but no luck today trying to find it.

Let us know how it goes.