cancel
Showing results for 
Search instead for 
Did you mean: 

Header level condition adds more than once in the order

Former Member
0 Kudos

Hi All,

We have a condition defined for capturing the customer redeemed value of gift card in the order. This is configured as header condition in V/06.Now when we create the order, we have written logic in pricing routine to distribute it across items according to the item value and that works fine. But in the header level conditions, the condition is appearing multiple times when there are multiple items in the order. Can you please guide us how do we accumulate the multiple values and have it in one line ?

Thanks

Jayasri

Accepted Solutions (0)

Answers (2)

Answers (2)

phanikumar_v3
Active Contributor
0 Kudos

Dear Jayasri,

As suggested by Lakshmipathiji-all header conditions are either manual conditions or

can get the record through formulae.

As you already using your own routine---You need to revisit the coding and your Abaper can help in this.

Phanikumar

Former Member
0 Kudos

Hi Phani,

The coding seems to be fine in the routine, we didn't find any issue in the code.

Moreover business agreed that it is fine to appear the header condition multiple times.

Hence closing the discussion.

Lakshmipathi
Active Contributor
0 Kudos
we have written logic in pricing routine to distribute it across items according to the item value and that works fine

Not sure why you have gone for creating a routine when standard header condition type will split the value automatically.

 the condition is appearing multiple times when there are multiple items in the order

This is also not a standard bug but due to customized one.  Ask your ABAPer to revisit the coding.

G. Lakshmipathi

Former Member
0 Kudos

Hello sir,

Thanks for reply. Header condition is distributing same value to all items if we populate only header condition. For ex, if user applies one gift card worth 100 $, and if 1st item value is 100 $ and 2nd item value is 200 $, it has to apply 100$ only for 1st item.As the gift card value is over, nothing has to apply for 2nd item. That's why we are handling it through pricing routine. So this kind of distribution is happenign  after writing pricing routine. But the condition is appearing twice while redeeming multiple items.Please suggest.

Regards

Jayasri