2009 Jan 29 6:45 PM
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.
2009 Jan 29 7:09 PM
Search the forum. This question has been asked and answered many times before.
Rob
2009 Jan 29 7:09 PM
Search the forum. This question has been asked and answered many times before.
Rob
2009 Jan 29 8:24 PM
2009 Jan 29 8:39 PM
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
2009 Jan 29 9:16 PM
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.
2009 Jan 29 9:20 PM
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
2009 Jan 29 10:07 PM