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: 

Fill automatically Custom fields in a table

Former Member
0 Kudos

Hi all,

I have a custom table and many se38 reports or Bapi which modify or insert records in this table.

Now from se11 I must add 4 new fields to this table that have to contain system values.

Can I write a routine which automatically fills these new fields when an insert or modify command runs on this table?

Best Regards,

Raffaele

7 REPLIES 7

Former Member
0 Kudos

Yes.

Rob

Former Member
0 Kudos

Hi Bob,

can you explain me how do I write it?

Thanks.

Raffaele

Former Member
0 Kudos

In the past, I have created a table maintenance dialogue and filled in automatic fields at event 01 (before saving data).

Rob

Former Member
0 Kudos

I tried to use this event but it runs only when I modify table data from SM30 transaction. But are you sure that this event runs also when a Bapi or an exeecutable program runs?

thanks

0 Kudos

No, it doesn't. You will have to do it manually yourself.

Rob

Former Member
0 Kudos

I need, instead this type of solutions. Because I manage table data by Bapi or SE38 programs. Do you know any solution?

Thanks anyway

0 Kudos

It would be awkward, but after the program or BAPI finishes, update the table.

Rob