Quantcast
Channel: SCN : All Content - SAP for Utilities
Viewing all articles
Browse latest Browse all 3025

Multiple Rate type time slices (Installation level) getting merged

$
0
0

Hi,

 

We have situation where we would like a rate to be executed twice within the same billing period, but in two time slices.

 

Example:

 

The rate ZPRCCALC is used to calculate the commodity price for an installation, for the billing period

This rate is executed at the installation level.

     Rate type ZPRICE_DYN, is maintained in the installation fact

     Rate category Z_DYN_CUST is used in the installation header time slice

     Rate determination has been defined for the rate type and rate category, and has the rate ZPRCCALC inside

 

We are in a situation where, for the month of October, there are two different prices applicable

     01.10.2014-15.10.2014 Price1

     16.10.2014-31.10.2014 Price2

 

I have tried the below methods to see whether the correct prices are returned

 

Method 1:

 

Updated the code in ZPRCCALC to create two time slices in the output operand

Result:

Billing terminates as soon as I update the first time slice to the output operand. (Macro used:mac_output_ioper)

Error log has the following details "The time slice of the outbound step does not cover the time slice of

the target step."

 

Method 2:

 

Time sliced the rate type installation fact.

Instead of having 01.10.2014-31.10.2014 ZPRICE_DYN

I changed it to

     01.10.2014-15.10.2014 ZPRICE_DYN

     16.10.2014-31.10.2014 ZPRICE_DYN

But the rate is getting executed just once! For 01.10-31.10! It is as if SAP merges the time slices.

Result:

Billing works fine but ZPRCCALC is executed just once, for the whole time slice instead of twice.

So, the output operand has just once price, for the whole period

 

Method 3:

 

Time slice the rate type installation fact, just as in method 2

Updated ZPRCCALC code to create two time slices in the output operand

Result:

Same error as method 1.

 

Can someone please let me know what I am missing here.

Should I add period control to the variant? Is there any other configuration that needs to be maintained?

 

Regards,

Joshua.


Viewing all articles
Browse latest Browse all 3025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>