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

Fill automatically Custom fields in a table

Former Member
0 Likes
2,104

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

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
Read only

Former Member
0 Likes
1,519

Yes.

Rob

Read only

Former Member
0 Likes
1,519

Hi Bob,

can you explain me how do I write it?

Thanks.

Raffaele

Read only

Former Member
0 Likes
1,519

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

Rob

Read only

Former Member
0 Likes
1,519

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

Read only

0 Likes
1,519

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

Rob

Read only

Former Member
0 Likes
1,519

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

Thanks anyway

Read only

0 Likes
1,519

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

Rob