DECLARE
l_gmd_spec_tbl gmd_specifications%rowtype;
l_spec_tests_tbl GMD_SPEC_PUB.spec_tests_tbl;
x_gmd_spec_tbl gmd_specifications%rowtype;
x_spec_tests_tbl GMD_SPEC_PUB.spec_tests_tbl;
l_return_status CHAR(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
BEGIN
fnd_profile.initialize (2820);
fnd_global.apps_initialize(user_id =>2820,resp_id =>22883 ,resp_appl_id =>552 );
fnd_msg_pub.initialize;
gme_common_pvt.g_error_count := 0;
gme_common_pvt.set_timestamp;
gme_common_pvt.g_move_to_temp := fnd_api.g_false;
-- l_gmd_spec_tbl.row_id,
-- l_gmd_spec_tbl.spec_id,
l_gmd_spec_tbl.spec_name := 'ZZ';
l_gmd_spec_tbl.spec_vers := 1;
l_gmd_spec_tbl.spec_desc := 'ZZ';
l_gmd_spec_tbl.inventory_item_id := 36467;
l_gmd_spec_tbl.revision := NULL;
l_gmd_spec_tbl.grade_code := NULL;
l_gmd_spec_tbl.spec_status := 1000;
l_gmd_spec_tbl.owner_organization_id := 453;
l_gmd_spec_tbl.owner_id := 2820;
l_gmd_spec_tbl.sample_inv_trans_ind := NULL;
l_gmd_spec_tbl.delete_mark := 0;
l_gmd_spec_tbl.text_code := NULL;
l_gmd_spec_tbl.attribute_category := NULL;
l_gmd_spec_tbl.attribute1 := NULL;
l_gmd_spec_tbl.attribute2 := NULL;
l_gmd_spec_tbl.attribute3 := NULL;
l_gmd_spec_tbl.attribute4 := NULL;
l_gmd_spec_tbl.attribute5 := NULL;
l_gmd_spec_tbl.attribute6 := NULL;
l_gmd_spec_tbl.attribute7 := NULL;
l_gmd_spec_tbl.attribute8 := NULL;
l_gmd_spec_tbl.attribute9 := NULL;
l_gmd_spec_tbl.attribute10 := NULL;
l_gmd_spec_tbl.attribute11 := NULL;
l_gmd_spec_tbl.attribute12 := NULL;
l_gmd_spec_tbl.attribute13 := NULL;
l_gmd_spec_tbl.attribute14 := NULL;
l_gmd_spec_tbl.attribute15 := NULL;
l_gmd_spec_tbl.attribute16 := NULL;
l_gmd_spec_tbl.attribute17 := NULL;
l_gmd_spec_tbl.attribute18 := NULL;
l_gmd_spec_tbl.attribute19 := NULL;
l_gmd_spec_tbl.attribute20 := NULL;
l_gmd_spec_tbl.attribute21 := NULL;
l_gmd_spec_tbl.attribute22 := NULL;
l_gmd_spec_tbl.attribute23 := NULL;
l_gmd_spec_tbl.attribute24 := NULL;
l_gmd_spec_tbl.attribute25 := NULL;
l_gmd_spec_tbl.attribute26 := NULL;
l_gmd_spec_tbl.attribute27 := NULL;
l_gmd_spec_tbl.attribute28 := NULL;
l_gmd_spec_tbl.attribute29 := NULL;
l_gmd_spec_tbl.attribute30 := NULL;
l_gmd_spec_tbl.creation_date := SYSDATE;
l_gmd_spec_tbl.created_by := 2820;
l_gmd_spec_tbl.last_updated_by := 2820;
l_gmd_spec_tbl.last_update_date := SYSDATE;
l_gmd_spec_tbl.last_update_login := 2820;
l_gmd_spec_tbl.spec_type := 'I';
l_gmd_spec_tbl.overlay_ind := NULL;
l_gmd_spec_tbl.base_spec_id := NULL;
-- Tests
-- l_spec_tests_tbl(1).row_id;
-- l_spec_tests_tbl(1).spec_id,
l_spec_tests_tbl(1).test_id := 9020;
l_spec_tests_tbl(1).test_method_id := 0;
l_spec_tests_tbl(1).seq := 10;
l_spec_tests_tbl(1).test_qty := NULL;
l_spec_tests_tbl(1).test_qty_uom := NULL;
l_spec_tests_tbl(1).min_value_num := 10;
l_spec_tests_tbl(1).target_value_num := NULL;
l_spec_tests_tbl(1).max_value_num := 1000;
l_spec_tests_tbl(1).min_value_char := NULL;
l_spec_tests_tbl(1).target_value_char := NULL;
l_spec_tests_tbl(1).max_value_char := NULL;
l_spec_tests_tbl(1).test_replicate := 1;
l_spec_tests_tbl(1).check_result_interval := NULL;
l_spec_tests_tbl(1). print_on_coa_ind := NULL;
l_spec_tests_tbl(1).use_to_control_step := NULL;
l_spec_tests_tbl(1).out_of_spec_action := NULL;
l_spec_tests_tbl(1).exp_error_type := NULL;
l_spec_tests_tbl(1).below_spec_min := NULL;
l_spec_tests_tbl(1).above_spec_min := NULL;
l_spec_tests_tbl(1).below_spec_max := NULL;
l_spec_tests_tbl(1).above_spec_max := NULL;
l_spec_tests_tbl(1).below_min_action_code := NULL;
l_spec_tests_tbl(1).above_min_action_code := NULL;
l_spec_tests_tbl(1).optional_ind := NULL;
l_spec_tests_tbl(1).display_precision := 0;
l_spec_tests_tbl(1).report_precision := 0;
l_spec_tests_tbl(1).test_priority := '5N';
l_spec_tests_tbl(1).retest_lot_expiry_ind := NULL;
l_spec_tests_tbl(1).print_spec_ind := NULL;
l_spec_tests_tbl(1).print_result_ind := NULL;
l_spec_tests_tbl(1).below_max_action_code := NULL;
l_spec_tests_tbl(1).above_max_action_code := NULL;
l_spec_tests_tbl(1).test_display := NULL;
l_spec_tests_tbl(1).text_code := NULL;
l_spec_tests_tbl(1).viability_duration := 0;
l_spec_tests_tbl(1).days := NULL;
l_spec_tests_tbl(1).hours := NULL;
l_spec_tests_tbl(1).minutes := NULL;
l_spec_tests_tbl(1).seconds := NULL;
l_spec_tests_tbl(1).attribute_category := NULL;
l_spec_tests_tbl(1).attribute1 := NULL;
l_spec_tests_tbl(1).attribute2 := NULL;
l_spec_tests_tbl(1). attribute3 := NULL;
l_spec_tests_tbl(1).attribute4 := NULL;
l_spec_tests_tbl(1).attribute5 := NULL;
l_spec_tests_tbl(1).attribute6 := NULL;
l_spec_tests_tbl(1).attribute7 := NULL;
l_spec_tests_tbl(1).attribute8 := NULL;
l_spec_tests_tbl(1).attribute9 := NULL;
l_spec_tests_tbl(1).attribute10 := NULL;
l_spec_tests_tbl(1).attribute11 := NULL;
l_spec_tests_tbl(1).attribute12 := NULL;
l_spec_tests_tbl(1).attribute13 := NULL;
l_spec_tests_tbl(1).attribute14 := NULL;
l_spec_tests_tbl(1).attribute15 := NULL;
l_spec_tests_tbl(1).attribute16 := NULL;
l_spec_tests_tbl(1).attribute17 := NULL;
l_spec_tests_tbl(1).attribute18 := NULL;
l_spec_tests_tbl(1).attribute19 := NULL;
l_spec_tests_tbl(1).attribute20 := NULL;
l_spec_tests_tbl(1).attribute21 := NULL;
l_spec_tests_tbl(1).attribute22 := NULL;
l_spec_tests_tbl(1).attribute23 := NULL;
l_spec_tests_tbl(1).attribute24 := NULL;
l_spec_tests_tbl(1).attribute25 := NULL;
l_spec_tests_tbl(1).attribute26 := NULL;
l_spec_tests_tbl(1).attribute27 := NULL;
l_spec_tests_tbl(1).attribute28 := NULL;
l_spec_tests_tbl(1).attribute29 := NULL;
l_spec_tests_tbl(1).attribute30 := NULL;
l_spec_tests_tbl(1).creation_date := SYSDATE;
l_spec_tests_tbl(1).created_by := 2820;
l_spec_tests_tbl(1).last_updated_by := 2820;
l_spec_tests_tbl(1).last_update_date := SYSDATE;
l_spec_tests_tbl(1).last_update_login := 2820;
l_spec_tests_tbl(1).from_base_ind := NULL;
l_spec_tests_tbl(1).exclude_ind := NULL;
l_spec_tests_tbl(1).modified_ind := NULL;
l_spec_tests_tbl(1).calc_uom_conv_ind := NULL;
l_spec_tests_tbl(1).to_qty_uom := NULL;
apps.GMD_SPEC_PUB.CREATE_SPEC
( p_api_version => 2.0
, p_init_msg_list => apps.FND_API.G_FALSE
, p_commit => apps.FND_API.G_FALSE
, p_validation_level => apps.fnd_api.g_valid_level_full
, p_spec => l_gmd_spec_tbl
, p_spec_tests_tbl => l_spec_tests_tbl
, p_user_name => 'DATA.AFF'
, x_spec => x_gmd_spec_tbl
, x_spec_tests_tbl => x_spec_tests_tbl
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data
);
COMMIT;
dbms_output.put_line(l_return_status||':'||l_msg_data);
END;
Oracle Quality Manager Specifications Table:
gmd_specifications, gmd_spec_tests
l_gmd_spec_tbl gmd_specifications%rowtype;
l_spec_tests_tbl GMD_SPEC_PUB.spec_tests_tbl;
x_gmd_spec_tbl gmd_specifications%rowtype;
x_spec_tests_tbl GMD_SPEC_PUB.spec_tests_tbl;
l_return_status CHAR(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
BEGIN
fnd_profile.initialize (2820);
fnd_global.apps_initialize(user_id =>2820,resp_id =>22883 ,resp_appl_id =>552 );
fnd_msg_pub.initialize;
gme_common_pvt.g_error_count := 0;
gme_common_pvt.set_timestamp;
gme_common_pvt.g_move_to_temp := fnd_api.g_false;
-- l_gmd_spec_tbl.row_id,
-- l_gmd_spec_tbl.spec_id,
l_gmd_spec_tbl.spec_name := 'ZZ';
l_gmd_spec_tbl.spec_vers := 1;
l_gmd_spec_tbl.spec_desc := 'ZZ';
l_gmd_spec_tbl.inventory_item_id := 36467;
l_gmd_spec_tbl.revision := NULL;
l_gmd_spec_tbl.grade_code := NULL;
l_gmd_spec_tbl.spec_status := 1000;
l_gmd_spec_tbl.owner_organization_id := 453;
l_gmd_spec_tbl.owner_id := 2820;
l_gmd_spec_tbl.sample_inv_trans_ind := NULL;
l_gmd_spec_tbl.delete_mark := 0;
l_gmd_spec_tbl.text_code := NULL;
l_gmd_spec_tbl.attribute_category := NULL;
l_gmd_spec_tbl.attribute1 := NULL;
l_gmd_spec_tbl.attribute2 := NULL;
l_gmd_spec_tbl.attribute3 := NULL;
l_gmd_spec_tbl.attribute4 := NULL;
l_gmd_spec_tbl.attribute5 := NULL;
l_gmd_spec_tbl.attribute6 := NULL;
l_gmd_spec_tbl.attribute7 := NULL;
l_gmd_spec_tbl.attribute8 := NULL;
l_gmd_spec_tbl.attribute9 := NULL;
l_gmd_spec_tbl.attribute10 := NULL;
l_gmd_spec_tbl.attribute11 := NULL;
l_gmd_spec_tbl.attribute12 := NULL;
l_gmd_spec_tbl.attribute13 := NULL;
l_gmd_spec_tbl.attribute14 := NULL;
l_gmd_spec_tbl.attribute15 := NULL;
l_gmd_spec_tbl.attribute16 := NULL;
l_gmd_spec_tbl.attribute17 := NULL;
l_gmd_spec_tbl.attribute18 := NULL;
l_gmd_spec_tbl.attribute19 := NULL;
l_gmd_spec_tbl.attribute20 := NULL;
l_gmd_spec_tbl.attribute21 := NULL;
l_gmd_spec_tbl.attribute22 := NULL;
l_gmd_spec_tbl.attribute23 := NULL;
l_gmd_spec_tbl.attribute24 := NULL;
l_gmd_spec_tbl.attribute25 := NULL;
l_gmd_spec_tbl.attribute26 := NULL;
l_gmd_spec_tbl.attribute27 := NULL;
l_gmd_spec_tbl.attribute28 := NULL;
l_gmd_spec_tbl.attribute29 := NULL;
l_gmd_spec_tbl.attribute30 := NULL;
l_gmd_spec_tbl.creation_date := SYSDATE;
l_gmd_spec_tbl.created_by := 2820;
l_gmd_spec_tbl.last_updated_by := 2820;
l_gmd_spec_tbl.last_update_date := SYSDATE;
l_gmd_spec_tbl.last_update_login := 2820;
l_gmd_spec_tbl.spec_type := 'I';
l_gmd_spec_tbl.overlay_ind := NULL;
l_gmd_spec_tbl.base_spec_id := NULL;
-- Tests
-- l_spec_tests_tbl(1).row_id;
-- l_spec_tests_tbl(1).spec_id,
l_spec_tests_tbl(1).test_id := 9020;
l_spec_tests_tbl(1).test_method_id := 0;
l_spec_tests_tbl(1).seq := 10;
l_spec_tests_tbl(1).test_qty := NULL;
l_spec_tests_tbl(1).test_qty_uom := NULL;
l_spec_tests_tbl(1).min_value_num := 10;
l_spec_tests_tbl(1).target_value_num := NULL;
l_spec_tests_tbl(1).max_value_num := 1000;
l_spec_tests_tbl(1).min_value_char := NULL;
l_spec_tests_tbl(1).target_value_char := NULL;
l_spec_tests_tbl(1).max_value_char := NULL;
l_spec_tests_tbl(1).test_replicate := 1;
l_spec_tests_tbl(1).check_result_interval := NULL;
l_spec_tests_tbl(1). print_on_coa_ind := NULL;
l_spec_tests_tbl(1).use_to_control_step := NULL;
l_spec_tests_tbl(1).out_of_spec_action := NULL;
l_spec_tests_tbl(1).exp_error_type := NULL;
l_spec_tests_tbl(1).below_spec_min := NULL;
l_spec_tests_tbl(1).above_spec_min := NULL;
l_spec_tests_tbl(1).below_spec_max := NULL;
l_spec_tests_tbl(1).above_spec_max := NULL;
l_spec_tests_tbl(1).below_min_action_code := NULL;
l_spec_tests_tbl(1).above_min_action_code := NULL;
l_spec_tests_tbl(1).optional_ind := NULL;
l_spec_tests_tbl(1).display_precision := 0;
l_spec_tests_tbl(1).report_precision := 0;
l_spec_tests_tbl(1).test_priority := '5N';
l_spec_tests_tbl(1).retest_lot_expiry_ind := NULL;
l_spec_tests_tbl(1).print_spec_ind := NULL;
l_spec_tests_tbl(1).print_result_ind := NULL;
l_spec_tests_tbl(1).below_max_action_code := NULL;
l_spec_tests_tbl(1).above_max_action_code := NULL;
l_spec_tests_tbl(1).test_display := NULL;
l_spec_tests_tbl(1).text_code := NULL;
l_spec_tests_tbl(1).viability_duration := 0;
l_spec_tests_tbl(1).days := NULL;
l_spec_tests_tbl(1).hours := NULL;
l_spec_tests_tbl(1).minutes := NULL;
l_spec_tests_tbl(1).seconds := NULL;
l_spec_tests_tbl(1).attribute_category := NULL;
l_spec_tests_tbl(1).attribute1 := NULL;
l_spec_tests_tbl(1).attribute2 := NULL;
l_spec_tests_tbl(1). attribute3 := NULL;
l_spec_tests_tbl(1).attribute4 := NULL;
l_spec_tests_tbl(1).attribute5 := NULL;
l_spec_tests_tbl(1).attribute6 := NULL;
l_spec_tests_tbl(1).attribute7 := NULL;
l_spec_tests_tbl(1).attribute8 := NULL;
l_spec_tests_tbl(1).attribute9 := NULL;
l_spec_tests_tbl(1).attribute10 := NULL;
l_spec_tests_tbl(1).attribute11 := NULL;
l_spec_tests_tbl(1).attribute12 := NULL;
l_spec_tests_tbl(1).attribute13 := NULL;
l_spec_tests_tbl(1).attribute14 := NULL;
l_spec_tests_tbl(1).attribute15 := NULL;
l_spec_tests_tbl(1).attribute16 := NULL;
l_spec_tests_tbl(1).attribute17 := NULL;
l_spec_tests_tbl(1).attribute18 := NULL;
l_spec_tests_tbl(1).attribute19 := NULL;
l_spec_tests_tbl(1).attribute20 := NULL;
l_spec_tests_tbl(1).attribute21 := NULL;
l_spec_tests_tbl(1).attribute22 := NULL;
l_spec_tests_tbl(1).attribute23 := NULL;
l_spec_tests_tbl(1).attribute24 := NULL;
l_spec_tests_tbl(1).attribute25 := NULL;
l_spec_tests_tbl(1).attribute26 := NULL;
l_spec_tests_tbl(1).attribute27 := NULL;
l_spec_tests_tbl(1).attribute28 := NULL;
l_spec_tests_tbl(1).attribute29 := NULL;
l_spec_tests_tbl(1).attribute30 := NULL;
l_spec_tests_tbl(1).creation_date := SYSDATE;
l_spec_tests_tbl(1).created_by := 2820;
l_spec_tests_tbl(1).last_updated_by := 2820;
l_spec_tests_tbl(1).last_update_date := SYSDATE;
l_spec_tests_tbl(1).last_update_login := 2820;
l_spec_tests_tbl(1).from_base_ind := NULL;
l_spec_tests_tbl(1).exclude_ind := NULL;
l_spec_tests_tbl(1).modified_ind := NULL;
l_spec_tests_tbl(1).calc_uom_conv_ind := NULL;
l_spec_tests_tbl(1).to_qty_uom := NULL;
apps.GMD_SPEC_PUB.CREATE_SPEC
( p_api_version => 2.0
, p_init_msg_list => apps.FND_API.G_FALSE
, p_commit => apps.FND_API.G_FALSE
, p_validation_level => apps.fnd_api.g_valid_level_full
, p_spec => l_gmd_spec_tbl
, p_spec_tests_tbl => l_spec_tests_tbl
, p_user_name => 'DATA.AFF'
, x_spec => x_gmd_spec_tbl
, x_spec_tests_tbl => x_spec_tests_tbl
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data
);
COMMIT;
dbms_output.put_line(l_return_status||':'||l_msg_data);
END;
Oracle Quality Manager Specifications Table:
gmd_specifications, gmd_spec_tests
No comments:
Post a Comment