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

VTREF updation using BAPI_SALESORDER_CHANGE

Former Member
0 Likes
648

Hi,

My requirement is to update the VTREF field by BAPI_SALESORDER_CHANGE. But i could not find this field in this BAPI . Any means of doing this? Awaiting for ur response.

Thanks in advance

Agilent

2 REPLIES 2
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
542

Where did you get this field? I've searched VBAK, VBAP, VBKD, but it's not there.

Read only

Former Member
0 Likes
542

Hi Agilent,

I looked at the BAPI and my understanding is that you might not be able to update VBKD-VTREF using the BAPI, so the workaround for this would be.

If you are calling the BAPI within SAP then,

1) Export the value of VTREF to ABAP memory before calling the BAPI.

2) Implement the Implicit enhancement for "FORM USEREXIT_MOVE_FIELD_TO_VBKD." in "MV45AFZZ" and import the VTREF Value here and update the structure.

If you are calling the BAPI from an external system,

1) Pass the value of VTREF in the extensions parameter.

2) Implement the Implicit enhancement for "FORM USEREXIT_MOVE_FIELD_TO_VBKD." in "MV45AFZZ" and import the VTREF Value here and update the structure.

Regards,

Chen