Application Development and Automation 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: 
Read only

Insert into VBUV table

Former Member
0 Likes
924

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

2 REPLIES 2
Read only

Former Member
0 Likes
554

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

Read only

Former Member
0 Likes
554

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