Skip to Content

Multiple Rate type time slices (Installation level) getting merged

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2014 at 01:56 PM

    Hi Joshua,

    Can you please tell the input and output operand categories.

    And if possible the source code, probably as an attachment. Would help in analysis.

    Cheers,

    Rakesh. .

    sapisurdg.wordpress.com

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.