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,289

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,033

1. How many entries in VBAP table.

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

Read only

0 Likes
1,033

Hi Venkat,

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

Regards,

Raj.

Read only

Former Member
0 Likes
1,033

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,033

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,033

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

Regards,

Raj.

Read only

0 Likes
1,033

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.