Application Development 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: 

After link contract in sales order with bapi_salesorder_change the entrie not found in vbfa table

saileaigil
Member
0 Kudos
444

Hello gurus!,

Iam facing with a problem with VBFA table.

Iam doing the follow steps:

1. I created a sales order without contract

2. With BAPI_SALESORDER_CHANGE, try to link the contract for item. After commit.

3. in VA03 I can see that the contract was very well linked,

BUT in VBFA the record is NOT CREATED.

Someone, Could you tell me if it is an issue in standard program? and its not allowed?

We review the customizing and looks well.

Thank you in advanced.

Best Regards

Heny

2 REPLIES 2

thilakan_t
Participant
0 Kudos
309

Try to link header as well. Hope you are using below fields.

VBAK-VGTYP = 'G' AND VBAK-VGBEL = <Contract No>

VBAP-VGTYP = 'G' AND VBAP-VGBEL = <Contract No>

raymond_giuseppi
Active Contributor
0 Kudos
309

In VA03 do you see the flow link at header or item level?

You could provide the code used in the BAPI call to link SO header/items to contrat?