Below is the sample procedure to create Currency in Oracle EBS R12 using .
PROCEDURE currency_create(p_currency_code IN VARCHAR2,
p_teritory_code IN VARCHAR2,
p_precision IN NUMBER,
p_extended_precision IN NUMBER,
p_symbol IN VARCHAR2,
p_currency_name IN VARCHAR2
)
BEGIN
APPS.MO_GLOBAL.INIT ('PO');
APPS.MO_GLOBAL.SET_POLICY_CONTEXT ('S', 204);
APPS.FND_GLOBAL.APPS_INITIALIZE ( USER_ID => 1318, RESP_ID => 50578, RESP_APPL_ID => 201 );
apps.fnd_currencies_pkg.LOAD_ROW ( p_currency_code,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'Y',
'Y',
p_teritory_code,
p_precision,
p_extended_precision,
p_symbol,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'Y',
NULL,
p_currency_name,
NULL,
'apps') ;
commit;
END currency_create;
Happy Coding. :)
PROCEDURE currency_create(p_currency_code IN VARCHAR2,
p_teritory_code IN VARCHAR2,
p_precision IN NUMBER,
p_extended_precision IN NUMBER,
p_symbol IN VARCHAR2,
p_currency_name IN VARCHAR2
)
BEGIN
APPS.MO_GLOBAL.INIT ('PO');
APPS.MO_GLOBAL.SET_POLICY_CONTEXT ('S', 204);
APPS.FND_GLOBAL.APPS_INITIALIZE ( USER_ID => 1318, RESP_ID => 50578, RESP_APPL_ID => 201 );
apps.fnd_currencies_pkg.LOAD_ROW ( p_currency_code,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'Y',
'Y',
p_teritory_code,
p_precision,
p_extended_precision,
p_symbol,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
'Y',
NULL,
p_currency_name,
NULL,
'apps') ;
commit;
END currency_create;
Happy Coding. :)
No comments:
Post a Comment