2006 Jan 12 10:51 AM
How Do everyone.
I am trying to assign the system time to a field I have
added to the VEDA contracts table. I have also added the
code in the FORM USEREXIT_SAVE_DOCUMENT_PREPARE:
VEDA-ZZBEGTIME = sy-uzeit
However, when I run the transaction VA41 and save the
document the new field is still empty. I have tried
using *VEDA and XVEDA but still the field remains empty.
Any ideas anybody please?
2006 Jan 12 2:27 PM
Hi,
Do you see values in VEDA in USEREXIT_SAVE_DOCUMENT_PREPARE. If that is the case then try calling function module SD_VEDA_MAINTAIN after filling your ZZ field. Some thing like the following,
CALL FUNCTION 'SD_VEDA_MAINTAIN'
EXPORTING
I_VEDA = VEDA
I_FEHGR = "TVAK/TVAP-FEHGR depending on header/item
I_DIALOG_INCOMPLETE = SPACE
IMPORTING
E_DATALOSS = DA_DATALOSS
TABLES
T_XVBUV = XVBUV
T_HVBUV = HVBUV.
Hope this helps..
Sri
2006 Jan 12 11:25 AM
Hi andy,
i think you need to set the UPDKZ update indicator field of XVEDA to 'U' . Also check before setting the indicator and the value for the zfield that the transaction is in change mode or not.
Then it should work .
Regards,
Swapnil
2006 Jan 12 11:27 AM
2006 Jan 12 11:46 AM
2006 Jan 12 2:27 PM
Hi,
Do you see values in VEDA in USEREXIT_SAVE_DOCUMENT_PREPARE. If that is the case then try calling function module SD_VEDA_MAINTAIN after filling your ZZ field. Some thing like the following,
CALL FUNCTION 'SD_VEDA_MAINTAIN'
EXPORTING
I_VEDA = VEDA
I_FEHGR = "TVAK/TVAP-FEHGR depending on header/item
I_DIALOG_INCOMPLETE = SPACE
IMPORTING
E_DATALOSS = DA_DATALOSS
TABLES
T_XVBUV = XVBUV
T_HVBUV = HVBUV.
Hope this helps..
Sri
2006 Jan 12 3:40 PM
Thanks Sri, you are a star!
I can now populate the new fields.
Cheers