Loading Negative Value For Usage Does Not Produce The Expected Results (Doc ID 408265.1)

Last updated on SEPTEMBER 26, 2016

Applies to:

Oracle Communications Billing and Revenue Management - Version: 6.5.0.3.1 and later   [Release: 6.5.0 and later ]
HP 9000 HP-UX 11.0 (32 bit)
Oracle Solaris on SPARC (32-bit)
Checked for relevance on 19-Nov-2008

Symptoms

Every time a negative value for usage is loaded, it impacts the resource balance with 1, instead of impacting it with the negative amount that was loaded.

For example :


Load -500 usage
Expected balance : -500
Actual balance : 1

We are using both UEL and PCM_OP_ACT_USAGE to load usage.

Input flist for PCM_OP_ACT_USAGE is :

0 PIN_FLD_POID POID [0] 0.0.0.1 /account 14315
0 PIN_FLD_EVENT SUBSTRUCT [0]
1 PIN_FLD_PROGRAM_NAME STR [0] "test"
1 PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 14315
1 PIN_FLD_NAME STR [0] "Event for testing"
1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/xxx/official_contents 15899 5
1 PIN_FLD_SYS_DESCR STR [0] "Pre-Rated Event"
1 PIN_FLD_START_T TSTAMP [0] (1240774624)
1 PIN_FLD_END_T TSTAMP [0] (1240774627)
1 PIN_FLD_POID POID [0] 0.0.0.1 /event/xxx/infocharge/yyy -1
1 MY_FLD_INFOCHARGE_INFO SUBSTRUCT [0] allocated 20, used 2
2 MY_FLD_END_USER_USAGE DECIMAL [0] -500

This procedure works great for positive numbers. The problem is only with negative numbers.

Expected Result : -500 * <rate_defined>
-500 : loaded amount for usage
<rate_defined> : scaled amount in the product's balance impact

Actual Result : 1 * <rate_defined>

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms