136: ,P_LANGUAGE_CODE in varchar2 default null) is
137: blid number := p_data_pump_batch_line_id;
138: begin
139: if blid is not null then
140: delete from hr_pump_batch_lines where batch_line_id = blid;
141: delete from hr_pump_batch_exceptions
142: where source_type = 'BATCH_LINE' and source_id = blid;
143: end if;
144: insert into hr_pump_batch_lines
140: delete from hr_pump_batch_lines where batch_line_id = blid;
141: delete from hr_pump_batch_exceptions
142: where source_type = 'BATCH_LINE' and source_id = blid;
143: end if;
144: insert into hr_pump_batch_lines
145: (batch_id
146: ,batch_line_id
147: ,business_group_name
148: ,api_module_id
205: ,pval055
206: ,pval056)
207: values
208: (p_batch_id
209: ,nvl(blid,hr_pump_batch_lines_s.nextval)
210: ,p_data_pump_business_grp_name
211: ,1737
212: ,'U'
213: ,p_user_sequence
380: decode(l.pval055,cn,vn,vn,vn,l.pval055) p55,
381: l.pval055 d55,
382: decode(l.pval056,cn,vn,vn,vn,l.pval056) p56,
383: l.pval056 d56
384: from hr_pump_batch_lines l
385: where l.batch_line_id = p_batch_line_id;
386: --
387: c cr%rowtype;
388: l_validate boolean := false;
397: open cr;
398: fetch cr into c;
399: if cr%notfound then
400: hr_utility.set_message(800,'HR_50326_DP_NO_ROW');
401: hr_utility.set_message_token('TABLE','HR_PUMP_BATCH_LINES');
402: hr_utility.set_message_token('COLUMN','P_BATCH_LINE_ID');
403: hr_utility.set_message_token('VALUE',p_batch_line_id);
404: hr_utility.raise_error;
405: end if;
505: hr_data_pump.api_trc_off;
506: --
507: iuk(p_batch_line_id,c.p50,L_ROLE_ID);
508: --
509: update hr_pump_batch_lines l set
510: l.pval050 = decode(c.p50,null,cn,c.p50),
511: l.pval051 = decode(c.p51,null,cn,c.p51)
512: where l.rowid = c.myrowid;
513: --