cancel
Showing results for 
Search instead for 
Did you mean: 

pricing based on factory calendar

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Dear Fazal,

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

And take the help of ABAPER.

AKN

Former Member
0 Kudos

Dear AKN,

Can u explain this a little bit. i can understand and give the requirement clearly to ABAP

Regards

Fazal

Former Member
0 Kudos

Dear Fazal,

Create a routine as I told you. You have to specify an access key to create it. Then give ABAPER your requirement as you have explained. Then he will do the coding and activate the routine.

Then specify it in the calculation type of your pricing procedure.

AKN

Former Member
0 Kudos

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