My Oracle Support Banner

FUNCTION Get_buy_cost_hook Causing An Issue (Doc ID 2975500.1)

Last updated on SEPTEMBER 28, 2023

Applies to:

Oracle Cost Management - Version 12.2.9 and later
Information in this document applies to any platform.


The “RETURN INTEGER” is causing Rounding issue on the cost calculations
Could you please advise, do we have any patch to update the RETURN INTEGER .
Why not return type = NUMBER?

FUNCTION get_buy_cost_hook (
  p_rollup_id IN NUMBER,
  p_assignment_set_id IN NUMBER,
  p_item_id IN NUMBER,
  p_organization_id IN NUMBER,
  p_vendor_id IN NUMBER,
  p_site_id IN NUMBER,
  p_ship_method IN NUMBER,
  x_err_code OUT NOCOPY NUMBER,
  x_err_buf OUT NOCOPY VARCHAR2)
RETURN INTEGER; -- Can this be an NUMBER as this causing the Rounding on Cost


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.