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: 

How to maintain a new field from Table.Maint.Gen?

Former Member
0 Kudos

Hi,

Thanks a lot for your response!

I have created a DATE field(ZDATE) in the DB table with dataelement as SYDATUM.

My requirement is when a new entry comes into this DB table or any record is changed (for a change in few fields not all infact but for time being let us take for all fields), this DATE field should be populated with SY-DATUM.

I have created a Maint.View(ZCOST_DATE) and have written the following code in TMG-->Events.

FORM CREATE_ENTRY.

zcost_date-zdate = SY-DATUM.

ENDFORM.

Still the date field is not getting populated.This is giving me blank in the date field.

I have taken only the DB table(COST) in the 'Table join' tabstrip because I have already the DATE field.

*Please tell me what wrong in this?

3 REPLIES 3

Former Member
0 Kudos

Hi Suman,

Try putting

MODIFY

code in your code after setting the field to SY-DATUM.

Hope this helps.

Benedict

0 Kudos

Hi,

Can we MODIFY a view? I have tried but it is giving an error stating that the corresponding view is not defined as a table.

Then how to do it? Please let me know

0 Kudos

Hi Suman,

Modify the DB table.

Hope this helps.

Benedict