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: 

BAPI_PO_CREATE1 condition type are creating duplicate records

Former Member
0 Kudos

Hello Experts,

Currently I am creating Purchase orders using BAPI_PO_CREATE1 . When I am passing Condition related records to the same BAPI , second line item onwards , it creates multiple records of same condition type .

I have also looked into threads in SDN for the same , and they have suggested to create PO using BAPI_PO_CREATE and later use BAPI_PO_CHANGE to pass condition records. I have tried the same , but still second line item onwards it creates multiple records. Please tell me how do I resolve this issue.

Thanks

Trishna

7 REPLIES 7

Former Member
0 Kudos

Hi,

Just follow some posts here.

http://www.sapfans.com/forums/viewtopic.php?t=64958&highlight=bapipocreate1customfield

regards and Best wishes.

Former Member
0 Kudos

Post the code which used to populate condition records. You dont need to use the combination of BAPI_PO_CREATE1 and BAPI_PO_CHANGE to create PO with condition recrods

Regards

Vinod

0 Kudos

Hello All,

I am also facing the same issue. duplicate records are being created for the same condition type. Could you please tell me how you could resolve this.

0 Kudos

Hello All,

This duplicate condition record creation may happen due to a setting in the MM configuration, where the system tries to pull in the history condition records ,based on the same set of condition record determination parameters.

Please contact the MM functional consultant in your team for settings change in detrmination of condition records under " MM-Purchasing " section.

Best Regards,

Kumaar.S

madhu_vadlamani
Active Contributor
0 Kudos

Hi Trinsha,

Just shown this to MM consultant he will check in price conditions.With a small configuration it will be controlled.

Regards,

Madhu.

0 Kudos

Hi ,

BAPIMEPOHEADERX

POHEADERX-PO_NUMBER = 'X'. It will indicated Mode of oeration is Updating.

So data wont be repate

0 Kudos

Helllo All,

Thanks for your response. Will get back to my MM consultant and try to resolve this. Thanks once again..;)