Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem in Sales Order with specific condition type.

Former Member
0 Likes
498

Hello Experts,

I'm facing a problem in sales order creation for a specific condition type.

the actual scenario is as below,

We have created a new condition type for special discount.This condtion type is applicable only for specific sales channels.Also the discount percentage has to fetched from a custom table.

To achieve this I've written a user exit "RV64A999"

In the FM, i've calculated the subtotal and fetched the discount percentage and calculated the discount amount. After implementing this, the SO were been created properly. for all the line items the discount amount was getting calculated properly.

But then I added a condition at the top of code in exit that the calculation for the new condition type should happen only for selected sales channels.

But after adding this condition in code, i'm facing problem. Now when I create/ change any SO, the discount amounts are getting calculated incorrectly. I'm getting discount amount even if the line item subtotal amount is zero (0).

Any help or pointers reagrding this issue will be very helpful and highly appreciated.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
451

Hi ..

Check your config. again or debug the routine code with your ABAPer and find the problem area.

-Maharshi

Hello Experts,

I'm facing a problem in sales order creation for a specific condition type.

the actual scenario is as below,

We have created a new condition type for special discount.This condtion type is applicable only for specific sales channels.Also the discount percentage has to fetched from a custom table.

To achieve this I've written a user exit "RV64A999"

In the FM, i've calculated the subtotal and fetched the discount percentage and calculated the discount amount. After implementing this, the SO were been created properly. for all the line items the discount amount was getting calculated properly.

But then I added a condition at the top of code in exit that the calculation for the new condition type should happen only for selected sales channels.

But after adding this condition in code, i'm facing problem. Now when I create/ change any SO, the discount amounts are getting calculated incorrectly. I'm getting discount amount even if the line item subtotal amount is zero (0).

Any help or pointers reagrding this issue will be very helpful and highly appreciated.

2 REPLIES 2
Read only

Former Member
0 Likes
452

Hi ..

Check your config. again or debug the routine code with your ABAPer and find the problem area.

-Maharshi

Read only

0 Likes
451

Thanks for your reply Maharshi.

I'm the ABAPer and already debuging excercise is done and no clue found.