0 penilaian0% menganggap dokumen ini bermanfaat (0 suara)
32 tayangan225 halaman
This document contains the package specification for the CSTPSCHK package in Oracle. It includes the specifications for several functions including std_cost_dist_hook, std_cost_update_hook, and std_get_account_id. These functions act as cover routines that allow for customization of the standard cost distribution, cost update, and account determination processes by circumventing the standard processes.
This document contains the package specification for the CSTPSCHK package in Oracle. It includes the specifications for several functions including std_cost_dist_hook, std_cost_update_hook, and std_get_account_id. These functions act as cover routines that allow for customization of the standard cost distribution, cost update, and account determination processes by circumventing the standard processes.
This document contains the package specification for the CSTPSCHK package in Oracle. It includes the specifications for several functions including std_cost_dist_hook, std_cost_update_hook, and std_get_account_id. These functions act as cover routines that allow for customization of the standard cost distribution, cost update, and account determination processes by circumventing the standard processes.
line 14: SQLPLUS Command Skipped: set lines 500 set long 100000 line 15: SQLPLUS Command Skipped: set long 100000 spool hook.txt /* Instance name and org and date of run */ select name, to_char(sysdate,'DD-MM-YYYY hh24:mi:ss') from V$DATABASE NAME TO_CHAR(SYSDATE,'DD-MM-YYYYHH24:MI:SS') --------- --------------------------------------- OF1DEV 03-11-2016 09:25:23 1 rows selected /* CSTPSCHK PACKAGE SPEC */ SELECT text FROM all_source WHERE NAME ='CSTPSCHK' AND TYPE = 'PACKAGE' TEXT -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- PACKAGE "CSTPSCHK" AUTHID CURRENT_USER AS /* $Header: CSTSCHKS.pls 120.1 2005/06/14 13:27:02 appldev $ */ -- FUNCTION -- std_cost_dist_hook Cover routine to allow users to customize. -- They will be able to circumvent the -- standard cost distribution process. This is -- called by inltcp.ppc. -- -- INPUT PARAMETERS -- I_ORG_ID -- I_TXN_ID -- I_USER_ID -- I_LOGIN_ID -- I_REQ_ID -- I_PRG_APPL_ID -- I_PRG_ID -- O_Err_Num -- O_Err_Code -- O_Err_Msg -- -- RETURN VALUES -- integer 1 Hook has been used. -- 0 Continue cost distribution for this transaction -- as ususal. -- FUNCTION std_cost_dist_hook( I_ORG_ID IN NUMBER, I_TXN_ID IN NUMBER, I_USER_ID IN NUMBER, I_LOGIN_ID IN NUMBER, I_REQ_ID IN NUMBER, I_PRG_APPL_ID IN NUMBER, I_PRG_ID IN NUMBER, O_Err_Num OUT NOCOPY NUMBER, O_Err_Code OUT NOCOPY VARCHAR2, O_Err_Msg OUT NOCOPY VARCHAR2 ) return integer ; -- FUNCTION -- std_cost_update_hook Cover routine to allow users to customize. -- They will be able to circumvent the -- standard cost update process. This is -- called by cmlicu.ppc. -- -- INPUT PARAMETERS -- i_org_id -- i_cost_update_id -- i_user_id -- i_login_id -- i_req_id -- i_prg_appl_id -- i_prg_id -- o_err_num -- o_err_code -- o_err_msg -- -- RETURN VALUES -- integer 1 Hook has been used. -- 0 Continue cost distribution for this transaction -- as ususal. -- FUNCTION std_cost_update_hook( i_org_id IN NUMBER, i_cost_update_id IN NUMBER, i_user_id IN NUMBER, i_login_id IN NUMBER, i_req_id IN NUMBER, i_prg_appl_id IN NUMBER, i_prg_id IN NUMBER, o_err_num OUT NOCOPY NUMBER, o_err_code OUT NOCOPY VARCHAR2, o_err_msg OUT NOCOPY VARCHAR2 ) RETURN integer ; -- FUNCTION -- std_get_account_id Cover routine to allow users the flexbility -- in determining the account they want to -- post the inventory transaction to. -- -- INPUT PARAMETERS -- I_ORG_ID -- I_TXN_ID -- I_DEBIT_CREDIT 1 for debit and -1 for credit. -- I_ACCT_LINE_TYPE The accounting line type. -- I_COST_ELEMENT_ID -- I_RESOURCE_ID -- I_SUBINV The subinventory involved if there is one. -- I_CG_ID The cost group involved. -- I_EXP Indicates that the cost distributor is looking -- for an expense account. 1 is exp account and 0 -- is asset account. -- I_SND_RCV_ORG Indicates whether this is an sending or -- receiving organization for interorg txns. -- 1 is send and 2 is recv. -- I_USER_ID -- I_LOGIN_ID -- I_REQ_ID -- I_PRG_APPL_ID -- I_PRG_ID -- O_Err_Num -- O_Err_Code -- O_Err_Msg -- -- RETURN VALUES -- integer >0 Workflow returned account -- -1 Use the default account for distribution:. -- function std_get_account_id( I_ORG_ID IN NUMBER, I_TXN_ID IN NUMBER, I_DEBIT_CREDIT IN NUMBER, I_ACCT_LINE_TYPE IN NUMBER, I_COST_ELEMENT_ID IN NUMBER, I_RESOURCE_ID IN NUMBER, I_SUBINV IN VARCHAR2, I_CG_ID IN NUMBER, I_EXP IN NUMBER, I_SND_RCV_ORG IN NUMBER, O_Err_Num OUT NOCOPY NUMBER, O_Err_Code OUT NOCOPY VARCHAR2, O_Err_Msg OUT NOCOPY VARCHAR2 ) return integer;