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: 

Billing schema variant program to find number of days in current fiscal year.

shah_viraj
Active Participant
0 Kudos

Hello experts,

I am not able to find variant program to find number of days in current fiscal year. Let's say my  fiscal year is from 01.04.2015 To 31.03.2016. Number of days would be 366. Is there any standard variant program available for this ? If not, what is the work around?

Thanks

Viraj

1 ACCEPTED SOLUTION

former_member230926
Active Participant
0 Kudos

Hi Viraj,

As per my knowledge there is no such variant to compute "Days in Fiscal year" .only "COMPUT20" Variant to calculate days for particular contract which is not for your use.

Alternative solution :

You can create a Z variant of "COMPUT03" (Multiply/Divide Two Factors)

And use below FM to calculate days between two dates inside the variant program and overwrite days value with output operand .

FM: -DURATION_DETERMINE

Thanks

View solution in original post

1 REPLY 1

former_member230926
Active Participant
0 Kudos

Hi Viraj,

As per my knowledge there is no such variant to compute "Days in Fiscal year" .only "COMPUT20" Variant to calculate days for particular contract which is not for your use.

Alternative solution :

You can create a Z variant of "COMPUT03" (Multiply/Divide Two Factors)

And use below FM to calculate days between two dates inside the variant program and overwrite days value with output operand .

FM: -DURATION_DETERMINE

Thanks