Reply from Typewriter on Jan 6 at 3:43 PM Hi Sridharan, Thank you for your post! I have marked it as helpful! Furthermore, on a general note, thank you for your posts; they are of good quality. Could you please elaborate on the following point - "With the result of table the logic should compare it with the scale hard coded in your logic and accordingly the discount should be applied in the pricing procedure." Also - In my opinion - hard coding shall restrict user from changing the number of sales orders say for example - currently - From 101 to 200 sales orders 5% discount and next from 201 to 300 orders 10% discount. but during the course of giving discount, if company wants to change - From 101 to 150 sales orders 5% discount and next from 151 to 300 orders 10% discount. Would creating a Z table be a better option, and then having the sales orders vis-a-vis the percentage discount? with a transaction code, so that user can maintain this Z table?
| | | ---------------Original Message--------------- From: Sridharan Rajagopalan Sent: Thursday, January 05, 2012 8:41 AM Subject: Maintain Orders with Discounts Hi, To keep count of the sales order and apply discount based on the no of sales orders, you have to create a routine in VOFM.The routine should be assigned to the condition type in the requirements column of the particular pricing procedure. This routine should refer to the table VBAK for the sales orders for the corresponding customer. The logic should be that the routine should count the no.of sales orders within a specified date range giving the customer number as input to the VBAK table. With the result of table the logic should compare it with the scale hard coded in your logic and accordingly the discount should be applied in the pricing procedure. Hope this will meet your business requirement.Looking forward for any better suggestions. Sridharan | | Reply to this email to post your response. __.____._ | _.____.__ |