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.
Showing results for 
Search instead for 
Did you mean: 

Best way to enhance Z table maintenance view

0 Kudos

Opinions please - what is the best way to enhance a generated Z table maintenance view?

1) Just add code where necessary and don't worry about another developer re-generating the screens and messing everything up

2) Could a BAdI be easily integrated in to a maintenance (PAI) screen? How?...and would it be a "proper" solution?

I've created a custom BAdI to be used in a custom upload program, but never used BAdIs in screen logic before.

3) Discard the generated screens and create my own

4) Other obvious solution I'm missing

Thanks in advance.


Former Member
0 Kudos

Hi Brian,

What kind of enhancement are you planning to do? I think that will allow others to give you options. Your 1,2 & 3 options all depend on maintenance screens already generated and all of them inherently have the same problem that someone might change them, as you correctly identified.

Please let us know what is your requirement.


0 Kudos


Hopefully, my only requirement will be some simple input validation when a user attempts to create or change a line in the table.


Former Member
0 Kudos

You can add coding to the dialog via menu "Environment/Modification/Zeitpunkte" (obviously SAP forgot a translation here). Each "Zeitpunkt" is an event during processing of the maintenance-dialog. You can define a FORM, which is called when the event occurs. The events are documented in

In my experience these are not sufficient, so I often use your solution 1). I recommend to hold all added codings in separated INCLUDES and FORMS. So you can rebind them easily, when someone regenarates the maintenance-dialog.