cancel
Showing results for 
Search instead for 
Did you mean: 

Contract nos. in header and item must agree (please check your input)

insafiby
Explorer
0 Kudos

Hello SAP Gurus,

I'm trying to create a LSMW for creating Purchase orders based on outline agreement. I'm using BAPI method with object BUS2012 and message type PORDCR1 . I added agreement and agreement item on item level but when an idoc is generated, I get the following error message

I can add it on header level if i have the same agreement and it works fine. but that's not what I need, since i should be able to create a purchase order with different agreements ( of the same vendor of course )

Could you advice please on how i can have different agreement for one purchase orders.


Thank you for your help

View Entire Topic
BijayKumarBarik
Active Contributor
0 Kudos

With same data try to create PO with ME21N form contract and check how system behaving?

But you should have same contract number the PO item on PO creation where ever you are having reference from for your LSMW

insafiby
Explorer
0 Kudos

Thank you for your reply.
I tried creating a PO with the same data and it works just fine.

I don't understand why it's asking me to have an agreement on header level with the BAPI ..