You are on page 1of 2

DECLARE

x_amount_type
VARCHAR2
x_code_combination_id
NUMBER;
x_account_type
VARCHAR2
x_template_id
NUMBER;
x_ledger_id
NUMBER;
x_currency_code
VARCHAR2
x_po_install_flag
VARCHAR2
x_accounted_period_type
VARCHAR2
x_period_set_name
VARCHAR2
x_period_name
VARCHAR2
x_period_num
NUMBER;
x_quarter_num
NUMBER;
x_period_year
NUMBER;
x_closing_status
VARCHAR2
x_budget_version_id
NUMBER;
x_encumbrance_type_id
NUMBER;
x_req_encumbrance_id
NUMBER;
x_po_encumbrance_id
NUMBER;
x_budget
NUMBER;
x_encumbrance
NUMBER;
x_actual
NUMBER;
x_funds_available
NUMBER;
x_req_encumbrance_amount
NUMBER;
x_po_encumbrance_amount
NUMBER;
x_other_encumbrance_amount NUMBER;
BEGIN
x_amount_type := 'YTDE';
x_code_combination_id := 1253;
x_account_type := 'E';
x_template_id := NULL;
x_ledger_id := 2023;
x_currency_code := 'KWD';
x_po_install_flag := 'Y';
x_accounted_period_type := '21';
x_period_set_name := 'KWT_CALENDAR';
x_period_name := 'MAR-15';
ways pass last peroid at current year
x_period_num := 13;
x_quarter_num := 4;
x_period_year := 2014;
x_closing_status := 'O';
x_budget_version_id := 3000;
x_encumbrance_type_id := -1;
x_req_encumbrance_id := 1000;
x_po_encumbrance_id := 1001;
x_budget := NULL;
x_encumbrance := NULL;
x_actual := NULL;
x_funds_available := NULL;
x_req_encumbrance_amount := NULL;
x_po_encumbrance_amount := NULL;
x_other_encumbrance_amount := NULL;

(200);
(200);
(200);
(200);
(200);
(200);
(200);

(200);

gl_funds_available_pkg.calc_funds (
x_amount_type
x_code_combination_id
x_account_type
x_template_id
x_ledger_id

=>
=>
=>
=>
=>

-----------

Fixed
Dynamic
Dynamic
Fixed
Dynamic
Fixed
Fixed
Fixed
Fixed
Fixed ; al

---------

Fixed
Fixed
Dynamic
Dynamic
Dynamic
Fixed
Fixed
Fixed

x_amount_type,
x_code_combination_id,
x_account_type,
x_template_id,
x_ledger_id,

x_currency_code
x_po_install_flag
x_accounted_period_type
x_period_set_name
x_period_name
x_period_num
x_quarter_num
x_period_year
x_closing_status
x_budget_version_id
x_encumbrance_type_id
x_req_encumbrance_id
x_po_encumbrance_id
x_budget
x_encumbrance
x_actual
x_funds_available
x_req_encumbrance_amount

=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>

x_currency_code,
x_po_install_flag,
x_accounted_period_type,
x_period_set_name,
x_period_name,
x_period_num,
x_quarter_num,
x_period_year,
x_closing_status,
x_budget_version_id,
x_encumbrance_type_id,
x_req_encumbrance_id,
x_po_encumbrance_id,
x_budget,
x_encumbrance,
x_actual,
x_funds_available,
x_req_encumbrance_amount

x_po_encumbrance_amount
x_other_encumbrance_amount

=> x_po_encumbrance_amount,
=> x_other_encumbrance_amou

,
nt);
DBMS_OUTPUT.put_line
DBMS_OUTPUT.put_line
DBMS_OUTPUT.put_line
DBMS_OUTPUT.put_line
DBMS_OUTPUT.put_line
nt );
DBMS_OUTPUT.put_line
);
DBMS_OUTPUT.put_line
amount );
END;

('X_BUDGET = ' || x_budget);


('X_ENCUMBRANCE = ' || x_encumbrance);
('X_ACTUAL = ' || x_actual);
('X_FUNDS_AVAILABLE = ' || x_funds_available);
('X_REQ_ENCUMBRANCE_AMOUNT = ' || x_req_encumbrance_amou
('X_PO_ENCUMBRANCE_AMOUNT = ' || x_po_encumbrance_amount
('X_OTHER_ENCUMBRANCE_AMOUNT = ' || x_other_encumbrance_

You might also like