01-27-2011 4:04 PM
Hello experts!
I have created a table maintenance for a custom z table. It has 2 fields ABGRU and BEZEI (description). When Is select an ABGRU from the list the description (BEZEI) should be automatically filled with the ABGRU description.
I know there are several posts about this but I was not able to find the solution with them.
This is my table
MANDT Key field
ABGRU Key field (check table TVAG)
BEZEI
Is it possible to use events for table maintenance on this case? do you know which event should I use to accomplish this requeriment?
Is there any other way to do this without modifying the function group?
Thanks in advance for your help!
Emanuel
01-27-2011 4:39 PM
We already have a check table TVAG for ABGRU? why do you need a separate table for just ABGRU and BEZEI?
Usually it does not make sense to duplicate description in two different tables... And further BEZEI is language dependent, meaning if the user logs on in a different language, you are going to store BEZEI text with different language...
If you are still interested in doing this, you will have to make your bezei field non-editable in table maintenance and then use some of the events to fill it (hardcoding languages like 'EN' to get your description from TVAGT)..I would generally advise against this approach though..
Some thread on table maintenance and WIKI entry
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=93454609
01-27-2011 4:39 PM
yeah, I think you could use event 21 - fill hidden fields (and i think you should combine with event 05 - Create new entries) for this case. but remember that , when you hit enter your required field can be filled with data.
Please check,
Thanks
01-28-2011 6:42 AM
You can use the event 05- create new entries and for making the field BEZEI as read-only go to maintenance screen option.
In element list uncheck the box INPUT for this particular field.
Regards,
Rahul Girdhar