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

table maintenance generator

Former Member
0 Likes
323

I had created one table . For that table i created table maintenance generator. Its working fine...

Now , i need to Increment one numeric field automatically while i am creating new entries.. That numeric field should not changed by user.

Whether its possible or not.?

If possible means .. guide me how to do?

2 REPLIES 2
Read only

Former Member
0 Likes
300

Hi,

GO to screen painter..SE51..

GIve the program name - SAPL + the function group name that you used to create the table maintenance..

Give the screen number..Press change..

1)

To disable the field..

Go to the layout of the numeric field..In the attributes Un check the Input button..

2)

For automatic increment of the field..

Create a module in PAI..

Then in the module use SELECT MAX ( NUMERIC_FIELD )...to get the last number that was added...

Then use the value to populate the field..

Thanks,

Naren

Read only

Former Member
0 Likes
300

Hello,

if you are in the maint.genertor menu: go to the menu 'Environment'->'Modification'.

There you can add your own changes to modify the process in SM30 according your needs.

Rgds,

JP