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