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

Incorrect entries in VBFA table using BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
1,288

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
Read only

venkateswaran_k
Active Contributor
0 Likes
1,032

1. How many entries in VBAP table.

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

Read only

0 Likes
1,032

Hi Venkat,

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

Regards,

Raj.

Read only

Former Member
0 Likes
1,032

Table VBFA has as mnay entries as tabla VBAP.

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

Martin

Read only

0 Likes
1,032

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.

Read only

Former Member
0 Likes
1,032

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

Regards,

Raj.

Read only

0 Likes
1,032

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.