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 Log - related.

Former Member
0 Likes
1,156

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

Former Member
0 Likes
1,130

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

Rob

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.

6 REPLIES 6
Read only

Former Member
0 Likes
1,131

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

Rob

Read only

0 Likes
1,130

Can you give the link Rob??

Read only

0 Likes
1,130

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

Read only

0 Likes
1,130

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.

Read only

0 Likes
1,130

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

Read only

0 Likes
1,130

Thanks Rob .

It works