we would like to create a sales order with reference to a SD contract from an ORDERS IDoc.
OSS say we have to populate the E1EDx02 segments with the contract number to do this.
We tested this in our system by manually editing the incoming IDoc and this is what we found:
- qualifier u201C005 : Customer Contract Numberu201D set and BELNR = u201Cthe customeru2019s outline agreement number in his MMu201D (= normal MM behaviour) -> reference is not processed at all, sales order is created without reference
- qualifier u201C043: Vendor Contract Numberu201D set and BELNR = our contract number in SD -> Sales order successfully created. BUT where can I store an external outline agreement number in MM so that the BELNR in the IDoc is populated with it?
- qualifier u201C058: Customer Contract Numberu201D set and BELNR = the customeru2019s outline agreement number in his MM -> Error:
The system could not determine a contract number
Message no. VG226
The system could not determine a contract number for the selection criteria: external contract number 5100000020 and customer number 0044000004.
This error appears although we maintained the external number 5100000020 in the PO number field (VBKD-BSTKD) in our SD contract.
Could anyone please explain what we do wrong?