Skip to Content
avatar image
Former Member

pricing based on factory calendar

Dear Experts,

Kindly help me on the below scenario

Material - Service 1

Price of the service - 1000/month

working days - 25.5 days

It should calculate the price based on factory calendar.

Say January - 31 days

1000/31 = 32.358 /Per day amount

25.5* 32.358 = 822

how can deliver this 822 with help of pricing.

any customized routine should be added or alternative calculation type?

Kindly suggest.

Regards

Fazal

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 11, 2012 at 08:50 AM

    Dear Fazal,

    You need to write a routine in VOFM - Formulas - Condition Value. 

    And take the help of ABAPER.

    AKN

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear AKN,

      I tried doing the the logic but there is some gap.

      Material - Service 1

      Price of the service - 1000/month

      working days - 25.5 days

      It should calculate the price based on factory calendar.

      Say January - 31 days

      1000/31 = 32.358 /Per day amount

      25.5* 32.358 = 822

      the price entered in the field KBETR(Amount) field is for a month, but i am trying to get price for a day based on KBETR. and update the field the same field.

      Can you give me some suggestion this.

      It would be surely helpful for me.

      Regards

      Fazal

  • avatar image
    Former Member
    Apr 11, 2012 at 09:14 AM

    Hi fazal,

    Please include your surcharge condition type in your pricing procedure where it is required based on your calculation. In the requirements please write a code to check the sales order date with the holiday calendar in the factory calendar and then calculate the surcharge value. You need to note that while writing the code the system is just supposed to pass thro' if it is not a public holiday.

    Once you do this, the pricing procedure would stop and calculate the surcharge everytime it finds a public holiday otherwise it would just pass thro'.

    If you have difficulty in writing a code for the factory calendar directly, make use of the field which is there in the sales organisation definition ( there also you have the factory calendar) based on which the entire process for sales is carried out.

    Hope it helps.

    Himanshu

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Himanshu,

      If you have difficulty in writing a code for the factory calendar directly, make use of the field which is there in the sales organisation definition ( there also you have the factory calendar) based on which the entire process for sales is carried out.

      i think u advice to refer factory calendar field from Sales organization definition.

      Am i right?

      Regards

      Fazal