I got a Requirement for WIP JOBS with comparison of Their BOM's.
So to Explode a BOM Please use below API.
declare
v_group_id NUMBER;
x_error_message VARCHAR2 (2000);
x_error_code NUMBER;
begin
SELECT bom_explosion_temp_s.NEXTVAL
INTO v_group_id
FROM DUAL;
bompxinq.exploder_userexit ( verify_flag => 0,
org_id => 249,
order_by => 1,
grp_id => v_group_id,
session_id => 0,
levels_to_explode => 20,
bom_or_eng => 1,
impl_flag => 1,
plan_factor_flag => 2,
explode_option => 2,
module => 2,
cst_type_id => 1,
std_comp_flag => 0,
expl_qty => 1,
item_id => 206818,
unit_number_from => NULL,
unit_number_to => NULL,
alt_desg => '',
comp_code => '',
rev_date => sysdate,
show_rev => 2,
material_ctrl => 2,
lead_time => 2,
err_msg => x_error_message,
error_code => x_error_code
);
dbms_output.put_line(v_group_id);
commit;
END;
So to Explode a BOM Please use below API.
declare
v_group_id NUMBER;
x_error_message VARCHAR2 (2000);
x_error_code NUMBER;
begin
SELECT bom_explosion_temp_s.NEXTVAL
INTO v_group_id
FROM DUAL;
bompxinq.exploder_userexit ( verify_flag => 0,
org_id => 249,
order_by => 1,
grp_id => v_group_id,
session_id => 0,
levels_to_explode => 20,
bom_or_eng => 1,
impl_flag => 1,
plan_factor_flag => 2,
explode_option => 2,
module => 2,
cst_type_id => 1,
std_comp_flag => 0,
expl_qty => 1,
item_id => 206818,
unit_number_from => NULL,
unit_number_to => NULL,
alt_desg => '',
comp_code => '',
rev_date => sysdate,
show_rev => 2,
material_ctrl => 2,
lead_time => 2,
err_msg => x_error_message,
error_code => x_error_code
);
dbms_output.put_line(v_group_id);
commit;
END;
No comments:
Post a Comment