Skip to Content
0
Former Member
Oct 15, 2007 at 09:08 AM

CRM_ORDER_MAINTAIN: Unable to maintain HEADER level Pricing Conditions.

308 Views

Hi Gurus,

I hope someone here can help me resolve this problem. Our release is CRM 4.0, patch level 8.

I'm basically trying to change existing pricing conditions on a CRM Order via an Action in a BADI method call.

Both Item level and Header level pricing conditions are to be updated by this Action.

I'm using CRM_ORDER_READ to first get the original Pricing Document data from the order. Then, I reformat and change the the data (only KBETR is changed) and call CRM_ORDER_MAINTAIN to maintain the conditions.

Now the strange thing is, all the ITEM level conditions are being changed correctly, as well as the FIRST condition in the header. All other conditions that should have been changed in the HEADER (about 10 more of them), were left unchanged.

Has anyone else had this problem before?

Also, it would be great if someone could post some sample code to change Header conditions in a CRM order. Thanks in advance!

Cheers,

Justin.