‎2007 Jun 08 10:02 AM
Hi all
I am trying to insert record into VBUV table from MV45AFZZ.
I am running T-Code = VA41 at that time the entry is getting inserted into VBUV but when i am running VA42 the entry is getting deleted from the VBUV table and not able to insert the reocrd again into VBUV table.
The code is peasted below.
t_vbuv-mandt = sy-mandt.
t_vbuv-vbeln = vbak-vbeln.
t_vbuv-posnr = vbap-posnr.
t_vbuv-tbnam = 'VBAP'.
t_vbuv-fdnam = 'CEPOK'.
t_vbuv-fehgr = 'Z4'.
t_vbuv-statg = '06'.
append t_vbuv.
modify vbuv from table t_vbuv.
Thanking you,
Regards,
Hiren Patel
‎2007 Jun 08 10:14 AM
Hi
Are you using the form userexit_save_document?
Anyway you shouldn't update that table direclty and if you really need to do you should do it in UPDATE TUSK.
I suppose there's a fm to insert in the memory your new record, in this way the system'll insert your data when itt'll insert/update the std ones.
Max
‎2007 Jun 08 10:28 AM
Hi,
The code is peasted below.
t_vbuv-mandt = sy-mandt.
t_vbuv-vbeln = vbak-vbeln.
t_vbuv-posnr = vbap-posnr.
t_vbuv-tbnam = 'VBAP'.
t_vbuv-fdnam = 'CEPOK'.
<b>t_vbuv-fehgr = 'Z4'.</b>
t_vbuv-statg = '06'.
append t_vbuv.
modify vbuv from table t_vbuv
t_vbuv-fehgr = 'Z4'
z4 std div item w/MOT
Here you take 'YB' Sales Order -No PO
if not works then you better to consult a SD functional consultant.
Regards