alter table plan_det add pending_po number(17,3);
alter table plan_det add pending_do number(17,3);
alter table plan_det add pending_indent number(17,3);
alter table plan_det add pending_dr number(17,3);

INSERT INTO messages (
	msg_no ,
	msg_str,
	msg_descr ,
	msg_type ,
	msg_opt ,
	msg_time ,
	alarm ,
	err_source ,
	chg_date ,
	chg_user ,
	chg_term ,
	override_input ,
	mail_option )
VALUES (
	'VMSITE11',
	'Null SiteCode From !',
	'Site code from cannot be empty. Enter a valid site code.',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	fn_sysdate(),
	'Gulzar',
	'BASE207',
	NULL,
	NULL);
INSERT INTO messages (
	msg_no ,
	msg_str,
	msg_descr ,
	msg_type ,
	msg_opt ,
	msg_time ,
	alarm ,
	err_source ,
	chg_date ,
	chg_user ,
	chg_term ,
	override_input ,
	mail_option )
VALUES (
	'VMSITE12',
	'Null SiteCode To !',
	'Site code to cannot be empty. Enter a valid site code.',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	fn_sysdate(),
	'Gulzar',
	'BASE207',
	NULL,
	NULL);
INSERT INTO messages (
	msg_no ,
	msg_str,
	msg_descr ,
	msg_type ,
	msg_opt ,
	msg_time ,
	alarm ,
	err_source ,
	chg_date ,
	chg_user ,
	chg_term ,
	override_input ,
	mail_option )
VALUES (
	'NOMPSDATA',
	'No data found!',
	'No data found for the entered parameter',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	fn_sysdate(),
	'Gulzar',
	'BASE207',
	NULL,
	NULL);

Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,OBJ_TYPE) values ('SFA',17,1,0,0,0,'w_requirement','Requirement','Requirement','SFA.17.1.0.0.0','e12_logo.gif','W');

Insert into transetup (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,SALES_PERS_ACC_COL,CUST_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_COL,EMP_ACC_COL,WORKFLOW_OPT,TRAN_ID__FROM,TRAN_ID__TO,MULTITIRE_OPT,REF_SER,VIEW_MODE,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,CHILDDATA_ARGOPT,IGNOREERRLIST_ONLOAD,EDIT_TMPLT,WRKFLW_INIT,FORMAL_ARGS,EDIT_OPT,AUDIT_TRAIL_OPT,CACHE_OPT,EDIT_EXPR) values ('w_requirement ','2','2','A','seq10',null,null,null,null,null,'N',to_timestamp('24-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE','0',null,null,null,'N',null,null,'N',null,'TRAN_ID',null,'0',null,null,null,null,'SFA',null,null,null,null,null,null,null,null,null,null,null,null,'F',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);

Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,SCAN_FLAG,SCAN_METADATA,AUTO_ACCEPT_SCAN,PROPERTY_INFO,SCAN_DELIMITER,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,AUTO_ACCEPT_WEIGHDATA,ASSISTED_MODE,PARENT_KEY_COL,DISP_METADATA,FORM_TYPE,RATE_COL,QTY_COL) values ('w_requirement','Site',null,null,null,null,null,null,'1','F',null,null,'N',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,SCAN_FLAG,SCAN_METADATA,AUTO_ACCEPT_SCAN,PROPERTY_INFO,SCAN_DELIMITER,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,AUTO_ACCEPT_WEIGHDATA,ASSISTED_MODE,PARENT_KEY_COL,DISP_METADATA,FORM_TYPE,RATE_COL,QTY_COL) values ('w_requirement','Demand',null,null,null,null,null,null,'2','T',null,null,'N',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into obj_forms (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,SCAN_FLAG,SCAN_METADATA,AUTO_ACCEPT_SCAN,PROPERTY_INFO,SCAN_DELIMITER,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,AUTO_ACCEPT_WEIGHDATA,ASSISTED_MODE,PARENT_KEY_COL,DISP_METADATA,FORM_TYPE,RATE_COL,QTY_COL) values ('w_requirement','Requirement',null,null,null,null,null,null,'3','T',null,null,'N',null,null,null,null,null,null,null,null,null,null,null,null,null);

Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',1,'N','a','a','Navigate - Next','Next',null,'1','a',null,'U');
Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',2,'N','a','a','Navigate - Next','Next',null,'2','a',null,'U');
Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',3,'P','a','a','Navigate - Prev','Prev',null,'2','a',null,'U');
Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',4,'P','a','a','Navigate - Prev','Prev',null,'3','a',null,'U');
Insert into obj_actions (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE) values ('requirement',5,'A','a','a','Add','Add',null,'2','a',null,'U');

Insert into system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('requirement','default_data_wiz','1','default_requirement',null,to_timestamp('24-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE ','BASE ','2','0','EJB','RequirementIC',null);
Insert into system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,OVERWRITE_CORE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('requirement','pre_navigate_next','1','prv_requirement',null,to_timestamp('24-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE  ','BASE ','2','0','EJB','RequirementIC',null);

Insert into system_event_services (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('default_requirement','To get default data','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE');
Insert into system_event_services (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM) values ('prv_requirement','Validate','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE');

Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE','EJB');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE','RequirementIC');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',3,'XML_DATA','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',4,'XML_DATA_1','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',7,'EDIT_FLAG','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_requirement',8,'XTRA_PARAMS','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);

Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',1,'COMPONENT_TYPE','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE','EJB');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',2,'COMPONENT_NAME','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE','RequirementIC');
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',3,'XML_DATA','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',4,'XML_DATA_1','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',5,'XML_DATA_ALL','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',6,'OBJ_CONTEXT','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',7,'FOCUSED_COLUMN','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',8,'EDIT_FLAG','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);
Insert into system_service_args (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('default_requirement',9,'XTRA_PARAMS','I',null,'S',null,to_timestamp('04-04-12','DD-MM-RR HH12:MI:SSXFF AM'),'BASE      ','BASE',null);

