SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ISU Custom Variant pass out multiple timeslices

vapor_anomaly
Explorer
0 Kudos

Hi,

We have recently developed a custom variant, which calculates some consumptions for the past 12 months.

For every month, in the program, I update

out_oper-ab = start date of the month

out_oper-bis = end date of the month

out_oper-qnt_new = consumption value

out_oper-qnt_old = same consumption value

The I call the macro

mac_output_ioper ....

The problem is, in the billing document I can see just one line item with the output.

It has the sum of the values and start and end date of the last month.

For example:

When billing for 01.03.2017-31.03.2017.

I expected one line each for 01.04.2016-30.04.2016, 01.05.2016-31.05.2016.....01.03.2017-31.03.2017.

But I get just one line, 01.03.2017 - 31.03.2017, with the total sum value.

Also, when I update this to installation fact, I expected one timeslice each for the 12 months, but I get just the last timeslice.

Please advise how to have proper timeslices in bill and installation facts.

Thanks.

Joshua.

1 ACCEPTED SOLUTION

0 Kudos

Hi Joshua,

Within your "LOOP AT IPREV_CONS" you can use macro MAC_INVOICE_LINE_INFO for write each timeslice in info lines of billing document.


Regards,

David

View solution in original post

2 REPLIES 2

0 Kudos

Hi,

Have you checked variant Quanti17 or is your custom variant based on that ?

Can you check if the Quant operand(which should store the prev. consumption) has usage set to Complete History ?

Hope this helps. 🙂

Cheers,

Rakesh..

0 Kudos

Hi Joshua,

Within your "LOOP AT IPREV_CONS" you can use macro MAC_INVOICE_LINE_INFO for write each timeslice in info lines of billing document.


Regards,

David