spool C:\wms_log\WM1FSUN004.txt

ALTER TABLE DESPATCH
ADD (
BOL_NO CHAR(35),
SCAC CHAR(4),
PRO_NO CHAR(35));

ALTER TABLE DESPATCHDET
ADD SSCC_18 VARCHAR2(35);


INSERT INTO ITM2MENU (
	application,
	level_1,
	level_2,
	level_3,
	level_4,
	level_5,
	win_name,
	descr,
	comments,
	menu_path,
	icon_path,
	close_icon,
	open_icon,
	obj_type,
	chg_date,
	chg_term,
	chg_user)
VALUES (
	'SFA',
	1,
	27,
	0,
	0,
	0,
	'w_despdet',
	'Shipment',
	'Shipment',
	'SFA.1.27.0.0.0',
	'e12_logo.gif',
	NULL,
	NULL,
	'T',
	fn_sysdate(),
	'BASE',
	'BASE92    ');

INSERT INTO ITM2MENU (
	application,
	level_1,
	level_2,
	level_3,
	level_4,
	level_5,
	win_name,
	descr,
	comments,
	menu_path,
	icon_path,
	close_icon,
	open_icon,
	obj_type,
	chg_date,
	chg_term,
	chg_user)
VALUES (
	'SFA',
	1,
	31,
	0,
	0,
	0,
	'w_desp_amd',
	'Shipment Amendment',
	'Shipment Amendment',
	'SFA.1.31.0.0.0',
	'e12_logo.gif',
	NULL,
	NULL,
	'T',
	fn_sysdate(),
	'BASE',
	'BASE92    ');


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,
	confirm_mode,
	mail_option,
	garbage_opt,
	val_flag_edi,
	verify_password,
	sales_pers_acc_col,
	cust_acc_col,
	supp_acc_col,
	item_ser_acc_col,
	emp_acc_col,
	workflow_opt,
	table_name,
	application,
	table_desc,
	tran_date_col,
	tran_id__from,
	tran_id__to,
	item_ser_acc_code,
	table_name_det1,
	table_name_det2,
	table_name_det3,
	multitire_opt,
	ref_ser,
	view_mode,
	tax_forms,
	sign_status,
	user_tran_window,
	custom_preview_obj,
	ignoreerrlist_onload,
	childdata_argopt,
	edit_tmplt,
	wrkflw_init,
	edittax,
	formal_args,
	audit_trail_opt,
	edit_opt,
	cache_opt,
	optimize_mode,
	edit_expr,
	transfer_mode,
	rate_col,
	qty_col,
	profile_id__res,
	print_control,
	rcp_cache_status,
	tran_compl_msg,
	wrkflw_priority,
	disp_meta_data,
	period_option,
	exec_type)
VALUES (
	'w_despdet',
	'2',
	'2',
	'A',
	'_spsite_code,P,seq05',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'N',
	fn_sysdate(),
	'BASE',
	'BASE92',
	'0',
	NULL,
	'CONFIRMED',
	'Y',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'DESP_ID',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'DESPATCH',
	'WMS',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'0',
	NULL,
	NULL,
	NULL,
	'D-PATC',
	'F',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'3',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);

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,
	confirm_mode,
	mail_option,
	garbage_opt,
	val_flag_edi,
	verify_password,
	sales_pers_acc_col,
	cust_acc_col,
	supp_acc_col,
	item_ser_acc_col,
	emp_acc_col,
	workflow_opt,
	table_name,
	application,
	table_desc,
	tran_date_col,
	tran_id__from,
	tran_id__to,
	item_ser_acc_code,
	table_name_det1,
	table_name_det2,
	table_name_det3,
	multitire_opt,
	ref_ser,
	view_mode,
	tax_forms,
	sign_status,
	user_tran_window,
	custom_preview_obj,
	ignoreerrlist_onload,
	childdata_argopt,
	edit_tmplt,
	wrkflw_init,
	edittax,
	formal_args,
	audit_trail_opt,
	edit_opt,
	cache_opt,
	optimize_mode,
	edit_expr,
	transfer_mode,
	rate_col,
	qty_col,
	profile_id__res,
	print_control,
	rcp_cache_status,
	tran_compl_msg,
	wrkflw_priority,
	disp_meta_data,
	period_option,
	exec_type)
 VALUES (
	'w_desp_amd',
	'2',
	'2',
	'A',
	'_spsite_code,P,seq05',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'N',
	fn_sysdate(),
	'BASE',
	'BASE92',
	'0',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'DESP_ID',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'DESPATCH',
	'WMS',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'0',
	NULL,
	NULL,
	NULL,
	'D-PATC',
	'F',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'3',
	NULL,
	NULL,
	NULL,
	NULL,
	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,
	action_type,
	form_no,
	service_handler,
	placement,
	tran_type,
	chg_date,
	chg_term,
	chg_user)
VALUES (
	'despdet',
	2,
	'E',
	'a',
	'a',
	'Editing Existing Record',
	'Edit',
	'edit.gif',
	'S',
	'1',
	NULL,
	NULL,
	NULL,
	fn_sysdate(),
	'BASE  ',
	'BASE92    ');

INSERT INTO OBJ_ACTIONS (
	obj_name,
	line_no,
	rights_char,
	interactive,
	service_code,
	description,
	title,
	image,
	action_type,
	form_no,
	service_handler,
	placement,
	tran_type,
	chg_date,
	chg_term,
	chg_user)
VALUES  (
	'desp_amd',
	2,
	'E',
	'a',
	'a',
	'Editing Existing Record',
	'Edit',
	'edit.gif',
	'S',
	'1',
	NULL,
	NULL,
	NULL,
	fn_sysdate(),
	'BASE92  ',
	'BASE92 ');



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,
	auto_accept_scan,
	scan_metadata,
	scan_flag,
	scr_flag,
	property_info,
	ext_com,
	ext_metadata,
	ext_setup,
	after_save,
	column_on_save,
	scan_delimiter,
	auto_accept_weighdata,
	rate_col,
	qty_col,
	form_type,
	disp_metadata,
	parent_key_col,
	assisted_mode)
VALUES (
	'w_despdet',
	'shipment',
	'd_despdet_brow',
	'd_despdet_edit',
	NULL,
	NULL,
	NULL,
	NULL,
	'1',
	NULL,
	NULL,
	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,
	auto_accept_scan,
	scan_metadata,
	scan_flag,
	scr_flag,
	property_info,
	ext_com,
	ext_metadata,
	ext_setup,
	after_save,
	column_on_save,
	scan_delimiter,
	auto_accept_weighdata,
	rate_col,
	qty_col,
	form_type,
	disp_metadata,
	parent_key_col,
	assisted_mode)
VALUES (
	'w_despdet',
	'Detail',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'2',
	NULL,
	NULL,
	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,
	auto_accept_scan,
	scan_metadata,
	scan_flag,
	scr_flag,
	property_info,
	ext_com,
	ext_metadata,
	ext_setup,
	after_save,
	column_on_save,
	scan_delimiter,
	auto_accept_weighdata,
	rate_col,
	qty_col,
	form_type,
	disp_metadata,
	parent_key_col,
	assisted_mode)
VALUES (
	'w_desp_amd',
	'Shipment Detail',
	'd_desp_amd_brow12',
	'd_desp_amd_edit22',
	NULL,
	NULL,
	NULL,
	NULL,
	'2',
	NULL,
	NULL,
	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,
	auto_accept_scan,
	scan_metadata,
	scan_flag,
	scr_flag,
	property_info,
	ext_com,
	ext_metadata,
	ext_setup,
	after_save,
	column_on_save,
	scan_delimiter,
	auto_accept_weighdata,
	rate_col,
	qty_col,
	form_type,
	disp_metadata,
	parent_key_col,
	assisted_mode)
VALUES (
	'w_desp_amd',
	'Shipment Header',
	'd_desp_amd_brow',
	'd_desp_amd_edit',
	NULL,
	NULL,
	NULL,
	NULL,
	'1',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);



INSERT INTO OBJ_ITEMCHANGE (
	obj_name,
	form_no,
	field_name,
	mandatory)
VALUES (
	'desp_amd',
	'1',
	'tran_code',
	NULL);


INSERT INTO OBJ_ITEMCHANGE (
	obj_name,
	form_no,
	field_name,
	mandatory)
VALUES (
	'despdet',
	'1',
	'tran_code',
	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 (
	'despdet',
	'pre_navigate',
	'1',
	'prv_despdet',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'2',
	'0',
	'EJB',
	'DespatchIC',
	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 (
	'despdet',
	'pre_validate',
	'1',
	'prv_despdet',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'2',
	'0',
	'EJB',
	'DespatchIC',
	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 (
	'despdet',
	'post_item_change',
	'1',
	'poic_despdet',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'2',
	'0',
	'EJB',
	'DespatchIC',
	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 (
	'desp_amd',
	'pre_navigate',
	'1',
	'prv_desp_amd',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'2',
	'0',
	'EJB',
	'DespatchAmendIC',
	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 (
	'desp_amd',
	'pre_validate',
	'1',
	'prv_desp_amd',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'2',
	'0',
	'EJB',
	'DespatchAmendIC',
	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 (
	'desp_amd',
	'post_item_change',
	'1',
	'poic_desp_amd',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'2',
	'0',
	'EJB',
	'DespatchAmendIC',
	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 (
	'prv_despdet',
	'Validation',
	'http://192.168.0.130/BaseE12DotNetService5-18-001/E12BusinessLogic5-18-001.asmx',
	'BASE',
	'wfValData',
	'String',
	'S',
	NULL,
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92');

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 (
	'poic_despdet',
	'post item change',
	'http://localhost:9090/axis/services/ValidatorService',
	'BASE',
	'itemChanged',
	'String',
	'S',
	NULL,
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92');

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_desp_amd',
	'Validation',
	'http://192.168.0.130/BaseE12DotNetService5-18-001/E12BusinessLogic5-18-001.asmx',
	'BASE',
	'wfValData',
	'String',
	'S',
	NULL,
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92');

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 (
	'poic_desp_amd',
	'post item change',
	'http://localhost:9090/axis/services/ValidatorService',
	'BASE',
	'itemChanged',
	'String',
	'S',
	NULL,
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92');

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 (
	'poic_despdet',
	9,
	'XTRA_PARAMS',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_despdet',
	8,
	'EDIT_FLAG',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_despdet',
	7,
	'FOCUSED_COLUMN',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_despdet',
	6,
	'OBJ_CONTEXT',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_despdet',
	5,
	'XML_DATA_ALL',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_despdet',
	4,
	'XML_DATA_1',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_despdet',
	3,
	'XML_DATA',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_despdet',
	2,
	'COMPONENT_NAME',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'DespatchIC');

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 (
	'poic_despdet',
	1,
	'COMPONENT_TYPE',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'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_despdet',
	8,
	'XTRA_PARAMS',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_despdet',
	7,
	'EDIT_FLAG',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_despdet',
	6,
	'OBJ_CONTEXT',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_despdet',
	5,
	'XML_DATA_ALL',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_despdet',
	4,
	'XML_DATA_1',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_despdet',
	3,
	'XML_DATA',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_despdet',
	2,
	'COMPONENT_NAME',
	'I',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'DespatchIC');

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_despdet',
	1,
	'COMPONENT_TYPE',
	'I',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'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 (
	'poic_desp_amd',
	9,
	'XTRA_PARAMS',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_desp_amd',
	8,
	'EDIT_FLAG',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_desp_amd',
	7,
	'FOCUSED_COLUMN',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_desp_amd',
	6,
	'OBJ_CONTEXT',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_desp_amd',
	5,
	'XML_DATA_ALL',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_desp_amd',
	4,
	'XML_DATA_1',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_desp_amd',
	3,
	'XML_DATA',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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 (
	'poic_desp_amd',
	2,
	'COMPONENT_NAME',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'DespatchAmendIC');

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 (
	'poic_desp_amd',
	1,
	'COMPONENT_TYPE',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'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_desp_amd',
	8,
	'XTRA_PARAMS',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_desp_amd',
	7,
	'EDIT_FLAG',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_desp_amd',
	6,
	'OBJ_CONTEXT',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_desp_amd',
	5,
	'XML_DATA_ALL',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_desp_amd',
	4,
	'XML_DATA_1',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_desp_amd',
	3,
	'XML_DATA',
	'l',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	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_desp_amd',
	2,
	'COMPONENT_NAME',
	'I',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'DespatchAmendIC');

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_desp_amd',
	1,
	'COMPONENT_TYPE',
	'I',
	NULL,
	'S',
	NULL,
	fn_sysdate(),
	'BASE',
	'BASE92',
	'EJB');

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 (
	'INVTRANEXT',
	'Invalid Transporter Code',
	'Please enter valid Transporter Code',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	fn_sysdate(),
	'BASE',
	'BASe',
	NULL,
	NULL);

--DELETE EXISTING RECORD FROM ITM2MENU
DELETE FROM ITM2MENU WHERE WIN_NAME = 'w_shipment';

--INSERT NEW RECORD INTO ITM2MENU TABLE
Insert into ITM2MENU (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('SFA',1,53,0,0,0,'w_shipment','Shipment Transaction','Shipment','SFA.1.53.0.0.0','e12_logo.gif',null,null,null,'01/jun/12','Mahesh','Patidar   ');

--DELETE EXISTING RECORD FROM TRANSETUP
DELETE FROM TRANSETUP WHERE TRAN_WINDOW = 'w_shipment';

--INSERT NEW RECORD INTO TRANSETUP TABLE
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,EDITTAX,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,TRANSFER_MODE,RATE_COL,QTY_COL,RCP_CACHE_STATUS,PRINT_CONTROL,ITEM_SER_ACC_CODE,PROFILE_ID__RES,PERIOD_OPTION,TRAN_COMPL_MSG,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,START_FORM,ISATTACHMENT,ALLOW_ATTACH) values ('w_shipment','2','2','M','seq10',null,null,null,null,null,'N','01/jun/12','Mahesh    ','Base           ','0','SITE_CODE','CONFIRMED','Y','N',null,'N','Y','N','shipment_id','0','0',null,null,null,'shipment','WMS','Shipment',null,null,null,null,null,null,'0',null,null,null,null,'F',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'M',null,null,null,null,null,null,null);

--DELETE EXISTING RECORD FROM OBJ_FORMS
DELETE FROM OBJ_FORMS WHERE WIN_NAME = 'w_shipment';

--INSERT NEW RECORDS INTO OBJ_FORMS TABLE
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,AUTO_ACCEPT_SCAN,SCAN_METADATA,SCAN_FLAG,SCR_FLAG,PROPERTY_INFO,EXT_COM,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,SCAN_DELIMITER,AUTO_ACCEPT_WEIGHDATA,RATE_COL,QTY_COL,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,ASSISTED_MODE) values ('w_shipment','Shipment','d_shipment_brow','d_shipment_edit',null,null,null,null,'1',null,null,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,AUTO_ACCEPT_SCAN,SCAN_METADATA,SCAN_FLAG,SCR_FLAG,PROPERTY_INFO,EXT_COM,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,SCAN_DELIMITER,AUTO_ACCEPT_WEIGHDATA,RATE_COL,QTY_COL,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,ASSISTED_MODE) values ('w_shipment','Docs','d_shipment_brow','d_shipment_edit',null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);

--DELETE EXISTING RECORDS FROM OBJ_ACTIONS
DELETE FROM OBJ_ACTIONS WHERE OBJ_NAME = 'shipment';

--INSERT NEW RECORDS INTO OBJ_ACTIONS TABLE
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,ACTION_TYPE,FORM_NO,SERVICE_HANDLER,PLACEMENT,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shipment',1,'A','a','a','Adding New','Add','add.gif','S','1',null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,ACTION_TYPE,FORM_NO,SERVICE_HANDLER,PLACEMENT,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shipment',2,'E','a','a','Editing Existing Record','Edit','edit.gif','S','1',null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,ACTION_TYPE,FORM_NO,SERVICE_HANDLER,PLACEMENT,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shipment',4,'S','a','a','Saving','Save','save.gif','S','1',null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,ACTION_TYPE,FORM_NO,SERVICE_HANDLER,PLACEMENT,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shipment',5,'F','a','pre_confirm','Confirmation','Confirm','confirm.gif','U','1','2',null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,RIGHTS_CHAR,INTERACTIVE,SERVICE_CODE,DESCRIPTION,TITLE,IMAGE,ACTION_TYPE,FORM_NO,SERVICE_HANDLER,PLACEMENT,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('shipment',21,'X','1','audit_trail','View Audit Trail','View Audit','menu.bmp','U','1','1','1',null,null,null,null);

--DELETE EXISTING RECORDS FROM SYSTEM_EVENTS
DELETE FROM SYSTEM_EVENTS WHERE OBJ_NAME = 'shipment';

--INSERT NEW RECORDS INTO SYSTEM_EVENTS TABLE
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 ('shipment','audit_trail','1','project_audit_trail',null,'01/jun/12','d         ','Base45','2','0',null,null,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 ('shipment','post_item_change','1','poic_default_ejb',null,'01/jun/12','Mahesh    ','BASE','2','0','EJB','ShipmentIC',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 ('shipment','post_validate','1','post_gen_val',null,'01/jun/12','system    ','system','2','0','EJB','GenValidate',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 ('shipment','pre_confirm','1','prcm_default_ejb',null,'01/jun/12','Mahesh    ','BASE','2','0','EJB','ShipmentConf',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 ('shipment','pre_validate','1','prv_default_ejb',null,'01/jun/12','Mahesh    ','BASE','2','0','EJB','ShipmentIC',null);

--DELETE EXISTING RECORDS FROM SYSTEM_EVENT_SERVICES
DELETE FROM SYSTEM_EVENT_SERVICES where service_code = 'project_audit_trail' or service_code = 'poic_default_ejb' or service_code = 'post_gen_val' or service_code = 'prcm_default_ejb' or service_code = 'prv_default_ejb' ;

--INSERT NEW RECORDS INTO SYSTEM_EVENT_SERVICES TABLE
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 ('poic_default_ejb',null,'http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,'01/jun/12','Subrata   ','Subu');
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 ('post_gen_val','validation','http://localhost:9090/axis/services/ValidatorService','BASE iformation','wfValData','String','S',null,null,'01/jun/12','ALKA      ','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 ('prcm_default_ejb','Action To confirm','http://localhost:9090/axis/services/ValidatorService','Base Information','confirm','String','S',null,null,'01/jun/12','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 ('project_audit_trail','calling audit log jsp','http://192.168.0.25:9090/ibase/webitm/jsp/ITMAuditForms.jsp',null,'doPost',null,null,null,null,'01/jun/12','Base      ','Base91');
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_default_ejb',null,'http://localhost:9090/axis/services/ProcessService',null,'wfValData','String','S',null,null,'01/jun/12','Subrata   ','Subu');

--DELETE EXISTING RECORDS FROM SYSTEM_SERVICE_ARGS
DELETE FROM SYSTEM_SERVICE_ARGS where service_code = 'project_audit_trail' or service_code = 'poic_default_ejb' or service_code = 'post_gen_val' or service_code = 'prcm_default_ejb' or service_code = 'prv_default_ejb' ;

--INSERT NEW RECORDS INTO SYSTEM_SERVICE_ARGS TABLE
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 ('poic_default_ejb',1,'COMPONENT_TYPE','I',null,'S',null,null,null,null,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 ('poic_default_ejb',2,'COMPONENT_NAME','I',null,'S',null,null,null,null,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 ('poic_default_ejb',3,'XML_DATA','I',null,'S',null,null,null,null,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 ('poic_default_ejb',4,'XML_DATA_1','I',null,'S',null,null,null,null,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 ('poic_default_ejb',5,'XML_DATA_ALL','I',null,'S',null,null,null,null,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 ('poic_default_ejb',6,'OBJ_CONTEXT','I',null,'S',null,null,null,null,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 ('poic_default_ejb',7,'FOCUSED_COLUMN','I',null,'S',null,null,null,null,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 ('poic_default_ejb',8,'EDIT_FLAG','I',null,'S',null,null,null,null,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 ('poic_default_ejb',9,'XTRA_PARAMS','I',null,'S',null,null,null,null,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 ('post_gen_val',1,'COMPONENT_TYPE','I',null,'C.String',null,'01/jun/12','Jiten     ','Base218','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 ('post_gen_val',2,'COMPONENT_NAME','I',null,'C.String',null,'01/jun/12','Jiten     ','Base218','GenValidate');
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 ('post_gen_val',3,'XML_DATA','I',null,'S',null,'01/jun/12','Jiten     ','Base218',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 ('post_gen_val',4,'XML_DATA_ALL','I',null,'S',null,'01/jun/12','Jiten     ','Base218',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 ('post_gen_val',5,'XML_DATA_ALL','I',null,'S',null,'01/jun/12','Jiten     ','Base218',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 ('post_gen_val',6,'OBJ_CONTEXT','I',null,'S',null,'01/jun/12','Jiten     ','Base218',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 ('post_gen_val',7,'WIN_NAME','I',null,'S',null,'01/jun/12','Jiten     ','Base218',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 ('post_gen_val',8,'XTRA_PARAMS','I',null,'S',null,'01/jun/12','Jiten     ','Base218',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 ('prcm_default_ejb',1,'COMPONENT_TYPE','I','Component Type','C.String',null,'01/jun/12','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 ('prcm_default_ejb',2,'COMPONENT_NAME','I','Component Name','C.String',null,'01/jun/12','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 ('prcm_default_ejb',3,'<tran_id>','I','tranid','C.String',null,'01/jun/12','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 ('prcm_default_ejb',4,'XTRA_PARAMS','I','Extra Arguments','S',null,'01/jun/12','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 ('prcm_default_ejb',5,'FORCED_FLAG','I','Forced Flag','S',null,'01/jun/12','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_default_ejb',1,'COMPONENT_TYPE','I',null,'S',null,'01/jun/12','Manohar   ','Manohar',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_default_ejb',2,'COMPONENT_NAME','I',null,'S',null,'01/jun/12','Manohar   ','Manohar',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_default_ejb',3,'XML_DATA','I',null,'S',null,'01/jun/12','Manohar   ','Manohar',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_default_ejb',4,'XML_DATA_1','I',null,'S',null,'01/jun/12','Manohar   ','Manohar',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_default_ejb',5,'XML_DATA_ALL','I',null,'S',null,'01/jun/12','Manohar   ','Manohar',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_default_ejb',6,'OBJ_CONTEXT','I',null,'S',null,'01/jun/12','Manohar   ','Manohar',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_default_ejb',7,'EDIT_FLAG','I',null,'S',null,'01/jun/12','Manohar   ','Manohar',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_default_ejb',8,'XTRA_PARAMS','I',null,'S',null,'01/jun/12','Manohar   ','Manohar',null);

--DELETE EXISTING RECORDS FROM OBJ_ITEMCHANGE
DELETE FROM OBJ_ITEMCHANGE WHERE OBJ_NAME = 'shipment';

--INSERT NEW RECORDS INTO OBJ_ITEMCHANGE TABLE
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','tare_weight',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','curr_code',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','freight_amt',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','frt_list',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','gross_weight',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','itm_default',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','load_type',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','stan_code__from',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','stan_code__to',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','tare_weight',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','tran_code',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','charge_code',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','itm_default',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','3','itm_default',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','3','stan_code__dlv',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','3','stan_code__ship',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','3','tran_code',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','curr_code',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','curr_code__bc',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','curr_code__frt',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','itm_default',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','stan_code__dlv',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','stan_code__ship',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','tran_code',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','ptcn',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','itm_defaultedit',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','itm_defaultedit',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','net_weight',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','net_weight',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','2','gross_weight',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','gross_weight',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','gross_weight',null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('shipment','1','tare_weight',null);

--DELETE EXISTING RECORDS FROM messages
DELETE FROM messages where msg_no = 'VMSITECD1' or
msg_no = 'VMSITE' or
msg_no = 'VMTRAN1' or
msg_no = 'VMSTANCD1' or
msg_no = 'VTFRLEXT' or
msg_no = 'VMCUR1' or
msg_no = 'VMLOADTY' or
msg_no = 'VMLOADCD' or
msg_no = 'VTDSPCON' or
msg_no = 'REFSERCD' or
msg_no = 'VTDESPC' ;


--INSERT NEW RECORDS INTO MESSAGES TABLE
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 ('REFSERCD  ','Reference can not be blank','Reference can not be blank','E',null,null,null,null,'01/jun/12','BASE      ','BASE           ',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 ('VMCUR1    ','Invalid currency code !','The currency code entered does not exist in the currency master. First you have to define it in the master','E','Y',null,null,null,'01/jun/12','BASE      ','BASE           ',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 ('VMLOADTY  ','Invalid Load Type','Invalid Load Type','E','Y',null,null,null,'01/jun/12','BASE      ','BASE           ',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 ('VMSTANCD1 ','Station code not defined ',' Station Code Not Defined In Master','E',null,null,null,null,'01/jun/12','BASE      ','BASE           ',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 ('VMTRAN1   ','Invalid transporter!','Transporter code entered does not exist. Please enter valid/defined transporter code.','E','Y',null,null,null,'01/jun/12','BASE      ','BASE           ',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 ('VMSITE    ','Invalid Site Code !','Entered site code not defined  in site master.','E','Y',null,null,null,'01/jun/12','BASE      ','BASE           ',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 ('VMSITECD1 ','Site Cannot be Empty!','Site code cannot be empty. Enter a valid site code.','E','Y',null,null,null,'01/jun/12','BASE      ','BASE           ',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 ('VTDESPC   ','Despatch confirmed!','Despatch confirmed successfully !','P','N',null,null,null,'01/jun/12','BASE      ','BASE           ',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 ('VTFRLEXT  ','Invalid Freight List !','Freight List doesnot exists in Master.','E','Y',null,null,null,'01/jun/12','BASE      ','BASE           ',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 ('VTDSPCON  ','Despatch Already Confirmed','Despatch Already Confirmed. Enter other reference id','E','Y',null,null,null,null,null,null,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 ('VMLOADCD  ','Load type cannot be empy','Load type cannot be empy','E','Y',null,null,null,null,null,null,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 ('VMLRNOCD  ','Invalid Lr No','Invalid Lr No or Lr no cannot be blank','E','Y',null,null,null,null,null,null,null,null);

--DELETE EXISTING RECORDS FROM POPHELP
DELETE FROM POPHELP where mod_name = 'W_SHIPMENT';

--INSERT NEW RECORDS INTO POPHELP TABLE
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION) values ('PTCN','W_SHIPMENT','SELECT PTCN FROM WAVE_TASK_DET WHERE REF_ID IN (SELECT DESP_ID FROM DESPATCH WHERE CONFIRMED != ''Y'')',null,'PTCN',null,null,'01/jun/12','MAHESH','BASE','1',null,null,1,null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION) values ('REF_ID','W_SHIPMENT','SELECT DESP_ID FROM DESPATCH WHERE CONFIRMED != ''Y''',null,'REFERENCE ID ',null,null,'01/jun/12','MAHESH','BASE',null,null,null,null,null,null,null,null,null,null,null);

--ALTER TABLE SHIP_DOCS FOR ADD PTCN NO COLUNM
alter table ship_docs add PTCN char(10);

spool off
