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: 

Table Log - related.

Former Member
0 Kudos
131

Hi Experts,

I am tryin to create a custom Z table with 6 fields.

FLD1,

FLD2,

CREATEDBY,

CREATEDON,

CHANGEDBY,

CHANGEDON.

The user will insert values into this Ztable using table maitenence generator values for FLD1 & FLD2.

I have created a Tcode for that as well.

I am able to populate the field CREATEDBY & CREATEDON Using events in table maitenance generator.

its working. ( but i need to hide those fields for input meaning should get inserted automatically & user should be able to see the data but not edit or insert).

Need populate the fields CHANGEDBY & CHANGEDON......

I am stuck here.

Need help.

regards,

Kevin.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
105

Search the forum. This question has been asked and answered many times before.

Rob

6 REPLIES 6

Former Member
0 Kudos
106

Search the forum. This question has been asked and answered many times before.

Rob

0 Kudos
105

Can you give the link Rob??

0 Kudos
105

Have a look at:

https://forums.sdn.sap.com/click.jspa?searchID=21611723&messageID=1689800

This was pre-ECC, so it may need some work.

Rob

0 Kudos
105

Thanks a lot Rob.

The code works wonderful.

One last doubt.

How do i make the fields(createdby, createdon, changedby, changedon) input disabled but gettin displayed while someones entering or viewing the data?

Thanks

Kevin.

0 Kudos
105

For that, you have to go into the screen painter for the generated FM and make the fields display only. You can also widen the screen if you want

But you have to be careful. If you change the table maintenance generator, these screen changes may be lost and you will have to re-apply them.

Rob

0 Kudos
105

Thanks Rob .

It works