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: 

Icon in Maintenance Dialog -> Example?

thomas_mueller8
Participant
0 Kudos

Hello,

what needs to be done to show an Icon in a maintenance dialog to visualize a certain Status? Is there somewhere an example I can look at?

Kind regards,

Thomas

4 REPLIES 4

DominikTylczyn
Active Contributor

Consider using table maintenance events to implement your own logic of converting a certain status to an icon: - SAP Help: Extended Table Maintenance Events

Dominik Tylczyński

SampathReddy
Participant

Hello Thomas,

You can use FM ICON_CREATE to create the status icons in the maintenance dialog.

For this you need to write the custom code in the PAI event.

But when ever you regenerate TMG this custom code will be deleted and you need to add manually again.

Thanks

Sampath

status.jpg

Sandra_Rossi
Active Contributor
0 Kudos

Standard or custom dialog? standard or custom table/view?

If all is custom, one simple solution is to define a custom DDIC domain for the status, with output length 4 (or more if you want to display text and tooltip), define a conversion routine which converts the internal value of the status into the @XX@ code of the icon (run program SHOWICON to have the possible values).

GK817
Active Contributor
0 Kudos

Hi Thomas,

I think you will have to edit the generated screens and function modules to achieve the same, which is not recommended, because your changes will be overwritten during next regeneration. To show an icon, add an extra column and there you can set the same using module pool.

Regards GK