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: 

Terminate billing inside variant

Former Member
0 Kudos

Hi,

  We have a custom rate step variant used for some calculations.

  We would like billing to terminate if there is an error in the calculations.

  At present we have the below line in the code

       mac_err '000' 'ZBIL' 'Error in price calculation' space space space general_fault.


  This adds the message to the log and says billing has been terminated.

  But billing document gets created for the month.


  What is the right statement to use if billing must be terminated as soon as the error is discovered.


Regards,

Joshua.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Joshua,

Have a look at standard variant UTILIT99. This is a standard SAP variant which you can use as a reference for your own variants in order to cancel billing.

Cheers,

Erik

View solution in original post

2 REPLIES 2

Former Member
0 Kudos

Hi Joshua,

Have a look at standard variant UTILIT99. This is a standard SAP variant which you can use as a reference for your own variants in order to cancel billing.

Cheers,

Erik

Former Member
0 Kudos

Hi Joshva,

Use variant UTILIT99 as a reference variant to create a custom variant to terminate billing.  Also error message can be displayed in the custom variant which will describe the reason for termination. This custom message to be written in the FM of the variant.

Thanks,

Rakesh