Skip to Content
avatar image
Former Member

Requirement Routine

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jul 26, 2011 at 04:28 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Jul 26, 2011 at 05:32 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • avatar image
    Former Member
    Jul 27, 2011 at 02:22 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 28, 2011 at 06:56 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded