Skip to Content
0
Former Member
May 04, 2007 at 01:02 PM

Assign vendor to pricing conditions in PO

42 Views

Hi,

I have a requirement when creating and changing a PO. The PO will have a main vendor which will have partner roles. Based on the document type and the condition type(at line item level), I have to change the vendor/creditor on the condition records on the item level. I am using BADI ME_PROCESS_PO_CUST for this. I have written my code in the method PROCESS_ITEM. This is working fine when creating the PO. But when the PO is changed at the header level (changing the partner roles and vendor number on the PARTNER tab) this method is not calling PROCESS_ITEM.

So I used method POST. I am able to get condition records using GET_CONDITIONS but I am not able to update the document with the method SET_CONDITIONS.

Any suggestions will be highly appreciated.

Cheers,

Antony.