Sla Api
Sla Api
CREATE_EVENT
Description
This API creates a new event. This function has two specifications, one with the
p_budgetary_control flag and another without it.
Validations
The API checks all source information for valid application, legal entity, event
entity,and source IDs. It ensures that the required parameters are not null and
also validates the event type and event status.
No validations are performed against the reference columns and event number.
However, if no event number is passed, the routine populates the next highest ev
ent number for that transaction. The event date is truncated.
Return Value
If an event is created successfully, then the function returns its event ID.
The above API is used to create the Events.
FUNCTION XLA_EVENTS_PUB_PKG.create_event
(p_source_event_info IN xla_events_pub_pkg.t_event_source_info
,p_event_type_code IN VARCHAR2
,p_event_date IN DATE
,p_event_status_code IN VARCHAR2
,p_event_number IN INTEGER DEFAULT NULL
,p_reference_info IN xla_events_pub_pkg.t_event_reference_info
DEFAULT NULL
,p_valuation_method IN VARCHAR2
,p_transaction_date IN DATE DEFAULT NULL
,p_security_context IN xla_events_pub_pkg.t_security
,p_budgetary_control_flag IN VARCHAR2)
RETURN INTEGER;
The mandatory parameters for this API are:
Event Type Code
Event Status Code
Event Date
Event Source Info
Source Application Id
Application Id
Ledger Id
Event Type Code