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: 

Incorrect entries in VBFA table using BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos
419

HI

when we create sales order with reference using BAPI_SALESORDER_CREATEFROMDAT2 FM there are two entries in VBFA table.

It should have only one Preceding Document.Could you please let me know why the two entries are created in VBFA.

Someone know why it happens?

Regards,

Raj.

6 REPLIES 6

venkateswaran_k
Active Contributor
0 Kudos
163

1. How many entries in VBAP table.

Also check your BAPI - detail internal table .... is there any blank records

0 Kudos
163

Hi Venkat,

There are no blank records in the  BAPI - detail internal table.

Regards,

Raj.

martin_roldan
Participant
0 Kudos
163

Table VBFA has as mnay entries as tabla VBAP.

How many ítems has the sales order you're creating?

Martin

0 Kudos
163

Hi Martin,

There are only one line item in VBAP and for reference order also one line item.

Please find the attached screen shot with name issue in the first post.

Regards,

Raj.

Former Member
0 Kudos
163

Could you please tell me where is the problem to get correct records in VBFA table.

Regards,

Raj.

0 Kudos
163

Hello Raj,

If you could give the key fields for all three records it might give someone a clue they could use to help you.