cancel
Showing results for 
Search instead for 
Did you mean: 

Requirement Routine

Former Member
0 Kudos

Dear Gurus,

My requirement is, whenever I create a sales order for a specific customer condition type (ZDR0) should come up automatically in the sales Header condition.

So I have created a header condition type and assigned a requirement routine 903 to that condition type in the pricing procedure

In routine, I have to write a code in such a way so that this condition type would come up in the sales order condition...

Will this be possible... ? Because I am sure that we can remove the condition type which is already present in the header condition by using the requirement routine...Is it possible to bring up a new Header condition type whenever a sales order created through req. routine

Kindly throw some light on this issue... It is quite urgent

Thanks & Regards,

Santhoshkumar

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Santhosh,

This can be possible by writing a code in "Requirements" in your pricing procedure. Basically the function of the requirement column in pricing procedure is to check if the requirements specified are met or not. If the requirements are met only then the condition type will be applied. If any of the condition in the requirement fails then the condition type will not appear.

By this I am trying to say the following:

Create a customer group or do some type of grouping for the set of customers for whom you want the header condition type to come automatically. Then write a code that "if customer group is this, then calculate this formula and come automatically in the sales order".

This way your requirement can be fulfilled. Please update the forum once u complete it.

Regards,

Rohan Gudavalli.

Former Member
0 Kudos

You can not add a Header condition automatically to a sales order.

Try creating the condition as group condition at both item and header levels and the customer as a key on the condition table. The value of the condition record will then be split proportionately across lines and show as a total at the header. You do not need the routine because the condition will be picked up only if a condition record exists for the customer.

However, it will still be treated as an item condition and will be split on the invoice if you create partial deliveries etc.

Badari

gomatheeswaran_palaniappa
Active Contributor
0 Kudos

Hi,

You can set the condition as mandatory in your pricing procedure. So, it will come by default in all your sales order having that pricing procedure. So, there is no need of routine.

Also please maintain condition record, if it is not a manual condition.

Regards,

P Gomatheeswaran

Former Member
0 Kudos

Hi Gomatheeswaran,

I wanted to have header condition type not the item condition and this header condition type has to be picked up automatically whenever sales order is created. Do maintaining requirement routine will help me to do this...

Thanks,

Santhoshkumar

gomatheeswaran_palaniappa
Active Contributor
0 Kudos

Hi Santhosh,

I don't think so, as far as I know. Because all the header conditions, we used to maintain manually in the order. But you can make it mandatory in the pricing procedure, so that it will solve one part of your problem.

Pl try assigning a routine under Caltype in the pricing procedure besides the header condition and let us know if it is working fine and carrying value while updating the pricing too.

Regards,

P Gomatheeswaran

Former Member
0 Kudos

Hi,

My requirement is, whenever I create a sales order for a specific customer condition type (ZDR0) should come up automatically in the sales Header condition.

For this make condition as header condition in V/06

Then maintain condition record for combination of customer + material in VK11

After this when ever you create sales order for customer with this material it will auto pull at header level condition

No need to create routine for this

Will this be possible... ? Because I am sure that we can remove the condition type which is already present in the header condition by using the requirement routine...Is it possible to bring up a new Header condition type whenever a sales order created through req. routine

If you want to bring new condition in sales order then then work with condition technique add your condition in pricing procedure and maintain condition record.

Kapil

Former Member
0 Kudos

Hi Kapil,

Thanks for the reply... But we cannot maintain a access for Header Condition... I wanted to have a header condition rather than item condition...

Because once I have a header condition type then I can have another calculation routine to calculate some formals so that the resultant will display at the condition value of that header condition type...

Thanks,

Santhoshkumar