Skip to Content
avatar image
Former Member

Using values from access sequences in VOFM Routines

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jul 24, 2009 at 08:45 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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