cancel
Showing results for 
Search instead for 
Did you mean: 

Using values from access sequences in VOFM Routines

Former Member
0 Kudos

Hello All,

I have created a user defined field called komp-zzmins. Based on two particular times, I calculate the difference. E.g. 185 mins

This value is also in komp-zzmins in the price determination.

I have a %-rebate condition for a price that has an access sequence which uses zzmins, e.g 90mins:

Access:

10 - Company / Vehicle type / Minutes (zzmins) / Rebate%

20 - Vehicle type / minutes / Rebate%

There are different rebates for different companies/vehicles/number of mins.

I now want to create a condition routine that checks if the value from the sales order (185mins) is greater

than the value in the access sequence (90mins). If it is, then the %-Condition from the access sequence should be allowed.

What would be the best way to get the value from the access sequence in a vofm routine? Is it possible to create

a range in an access sequence?

Regards,

Phil

Accepted Solutions (1)

Accepted Solutions (1)

former_member1249468
Contributor
0 Kudos

Hi ,

Assign the new routine in condition in pricing procedure afterwriting a code in routine with the help of abaper.Yes ,we can maintain the ranges in routine and assign it to access sequence.

Regards,

Pasapula.

Former Member
0 Kudos

Hello Pasapula,

thankyou for your answer.

I have decided to use the function module SD_COND_ACCESS and loop through the access sequences in table T682i within the VOFM routine and compare this to the calculated number of minutes in the sales order.

Regards,

Phil

*edited for bad spelling

Edited by: Phil Donaldson on Jul 24, 2009 11:25 AM

Answers (0)