spool C:\wms_log\WM1GSUN006.txt

alter table stock_transfer_det add loc_code__sys CHAR(8);

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,
	21,
	0,
	0,
	0,
	'w_stock_transfer_grl',
	'Stock Transfer Grl',
	'Stock Transfer Grl',
	'SFA.1.21.0.0.0',
	'e12_logo.gif',
	NULL,
	NULL,
	'W',
	fn_sysdate(),
	'BASE141',
	'Gulzar');
INSERT INTO transetup (
	tran_window ,
	save_flag ,
	val_flag ,
	key_flag ,
	key_string,
	repeate_add ,
	chg_date ,
	chg_user ,
	chg_term ,
	edi_option ,
	confirm_mode ,
	mail_option ,
	garbage_opt ,
	table_name,
	application,
	ref_ser,
	tran_id_col,
	confirm_col,
	confirm_val)
VALUES (
	'w_stock_transfer_grl',
	'2',
	'2',
	'A',
	'seq10',
	'N',
	fn_sysdate(),
	'Gulzar',
	'BASE ',
	'0',
	'0',
	'0',
	'N',
	'STOCK_TRANSFER',
	'WMS',
	'XFRX',
	'TRAN_ID',
	'CONFIRMED',
	'Y');
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 ,
	ext_com ,
	ext_metadata ,
	ext_setup ,
	after_save ,
	column_on_save ,
	scan_delimiter ,
	auto_accept_weighdata ,
	form_type ,
	disp_metadata ,
	parent_key_col,
	assisted_mode)
VALUES (
	'w_stock_transfer_grl',
	'GRL Stock Transfer',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'1',
	'F',
	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 ,
	ext_com ,
	ext_metadata ,
	ext_setup ,
	after_save ,
	column_on_save ,
	scan_delimiter ,
	auto_accept_weighdata ,
	form_type ,
	disp_metadata ,
	parent_key_col,
	assisted_mode)
VALUES (
	'w_stock_transfer_grl',
	'Detail',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'2',
	'T',
	NULL,
	'<SCAN_INFO><MAPPING_SCAN ORDER="1"><SCAN_LABEL>LPN No:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>lot_sl__fr</FIELD></FIELDS></MAPPING_SCAN><INPUT_SCAN ORDER="1"><SCAN_LABEL>Location Code To:</SCAN_LABEL><FIELDS SEPARATOR="" DELIMITER=""><FIELD>loc_code__to</FIELD></FIELDS></INPUT_SCAN></SCAN_INFO>',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	'<item_descr>(<item_code>), <lot_no__fr>, <lot_sl__fr>, <quantity> <unit> = <loc_code__to>',
	NULL,
	'E');
INSERT INTO obj_actions (
	obj_name ,
	line_no ,
	rights_char ,
	interactive ,
	service_code ,
	description ,
	title ,
	image ,
	action_type ,
	form_no ,
	chg_date ,
	chg_term ,
	chg_user)
VALUES (
	'stock_transfer_grl',
	 1,
	'S',
	'',
	'',
	'Saving',
	'Finish',
	'',
	'U',
	'3',
	fn_sysdate(),
	'BASE',
	'Gulzar');
INSERT INTO system_events (
	obj_name ,
	event_code ,
	event_context,
	service_code ,
	chg_date ,
	chg_user ,
	chg_term ,
	result_handle ,
	overwrite_core ,
	comp_type ,
	comp_name)
VALUES (
	'stock_transfer_grl',
	'pre_validate',
	'1',
	'prv_stock_transfer_grl',
	fn_sysdate(),
	'Gulzar',
	'BASE',
	'2',
	'0',
	'EJB',
	'StockTransferGrlIC');
INSERT INTO system_events (
	obj_name ,
	event_code ,
	event_context,
	service_code ,
	chg_date ,
	chg_user ,
	chg_term ,
	result_handle ,
	overwrite_core ,
	comp_type ,
	comp_name)
VALUES (
	'stock_transfer_grl',
	'default_data_wiz',
	'1',
	'stock_transfer_grl_default_data',
	fn_sysdate(),
	'Gulzar',
	'BASE',
	'2',
	'0',
	'EJB',
	'StockTransferGrlIC');
INSERT INTO system_event_services (
	service_code ,
	service_descr ,
	service_uri ,
	service_provider ,
	method_name ,
	return_value ,
	return_type ,	
	chg_date ,
	chg_user ,
	chg_term) 
VALUES (
	'stock_transfer_grl_default_data',
	'Default Data',
	'http://localhost:9090/axis/services/ValidatorService',
	'BASE',
	'itemChanged',
	'String',
	'S',
	fn_sysdate(),
	'Gulzar',
	'BASE');
INSERT INTO system_event_services (
	service_code ,
	service_descr ,
	service_uri ,
	service_provider ,
	method_name ,
	return_value ,
	return_type ,	
	chg_date ,
	chg_user ,
	chg_term) 
VALUES (
	'prv_stock_transfer_grl',
	'Validation',
	'http://localhost:9090/axis/services/ValidatorService',
	'BASE',
	'wfValData',
	'String',
	'S',
	fn_sysdate(),
	'Gulzar',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term ,
	arg_value )
VALUES (
	'prv_stock_transfer_grl',
	 1,
	'COMPONENT_TYPE',
	'I',
	'S',
	fn_sysdate(),
	'Gulzar',
	'BASE',
	'EJB');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term ,
	arg_value)
VALUES (
	'prv_stock_transfer_grl',
	2,
	'COMPONENT_NAME',
	'I',
	'S',
	fn_sysdate(),
	'Gulzar',
	'BASE',
	'StockTransferGrlIC');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_stock_transfer_grl',
	3,
	'XML_DATA',
	'l',
	'S',
	fn_sysdate(),
	'Gulzar',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_stock_transfer_grl',
	4,
	'XML_DATA_1',
	'l',
	'S',
	fn_sysdate(),
	'Gulzar',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
 VALUES (
	'prv_stock_transfer_grl',
	5,
	'XML_DATA_ALL',
	'l',	
	'S',	
	fn_sysdate(),
	'Gulzar',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_stock_transfer_grl',
	6,
	'OBJ_CONTEXT',
	'l',
	'S',
	fn_sysdate(),
	'Gulzar',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_stock_transfer_grl',
	 7,
	'EDIT_FLAG',
	'l',	
	'S',
	fn_sysdate(),
	'Gulzar',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'prv_stock_transfer_grl',
	8,
	'XTRA_PARAMS',
	'l',	
	'S',	
	fn_sysdate(),
	'Gulzar',
	'BASE');

INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term ,
	arg_value )
VALUES (
	'stock_transfer_grl_default_data',
	 1,
	'COMPONENT_TYPE',
	'I',
	'S',
	fn_sysdate(),
	'Gulzar',
	'BASE',
	'EJB');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term ,
	arg_value )
VALUES (
	'stock_transfer_grl_default_data',
	 2,
	'COMPONENT_NAME',
	'I',	
	'S',	
	fn_sysdate(),
	'Gulzar ',
	'BASE',
	'StockTransferGrlIC');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'stock_transfer_grl_default_data',
	3,
	'XML_DATA',
	'I',
	'S',
	fn_sysdate(),
	'Gulzar ',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'stock_transfer_grl_default_data',
	4,
	'XML_DATA_1',
	'I',
	'S',
	fn_sysdate(),
	'Gulzar ',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'stock_transfer_grl_default_data',
	5,
	'XML_DATA_ALL',
	'I',	
	'S',
	fn_sysdate(),
	'Gulzar ',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'stock_transfer_grl_default_data',
	6,
	'OBJ_CONTEXT',
	'I',
	'S',	
	fn_sysdate(),
	'Gulzar ',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'stock_transfer_grl_default_data',
	 7,
	'FOCUSED_COLUMN',
	'I',	
	'S',
	fn_sysdate(),
	'Gulzar ',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES (
	'stock_transfer_grl_default_data',
	8,
	'EDIT_FLAG',
	'I',
	'S',	
	fn_sysdate(),
	'Gulzar ',
	'BASE');
INSERT INTO system_service_args (
	service_code ,
	line_no ,
	arg_name ,
	arg_mode ,
	arg_type ,	
	chg_date ,
	chg_user,
	chg_term )
VALUES(
	'stock_transfer_grl_default_data',
	9,
	'XTRA_PARAMS',
	'I',
	'S',	
	fn_sysdate(),
	'Gulzar',
	'BASE');
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 (
	'stock_transfer_grl',
	'post_save',
	'1',
	'pos_stock_transfer_wiz',
	NULL,
	fn_sysdate(),
	'Gulzar',
	'BASE',
	'2',
	'0',
	'EJB',
	'StockTransferWizPos',
	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 (
	'VTLOCCODE8',
	'Invalid Location code!',
	'Entered location code does not exist for reserve location ',
	'E',
	'Y',
	NULL,
	NULL,
	NULL,
	fn_sysdate(),
	'Gulzar',
	'BASE141',
	NULL,
	NULL);

INSERT INTO disparm (
	prd_code ,
	var_name ,
	var_type ,
	var_value ,
	descr ,
	var_subs ,
	chg_date ,
	chg_user ,
	chg_term ,
	min_order_qty )
VALUES (
	'999999',
	'GRL_INVSTAT',
	'S',
	'GRL',
	'Default Value Of reason code',
	0,
	fn_sysdate(),
	'BASE', 
	'GULZAR',
	NULL);

INSERT INTO disparm (
	prd_code ,
	var_name ,
	var_type ,
	var_value ,
	descr ,
	var_subs ,
	chg_date ,
	chg_user ,
	chg_term ,
	min_order_qty )
VALUES (
	'999999',
	'RESERV_LOCATION',
	'S',
	'RESRV',
	'Reserv Location',
	0,
	fn_sysdate(),
	'BASE', 
	'GULZAR',
	NULL);

spool off
