05-26-2008 10:49 AM
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?
05-26-2008 5:28 PM
Hi Suman,
Try putting
MODIFY
code in your code after setting the field to SY-DATUM.
Hope this helps.
Benedict
05-27-2008 7:49 AM
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
05-27-2008 10:49 AM