167: ,gd_period_end_date
168: ,gv_entity_identifier;
169: CLOSE c_get_le_and_period_dates;
170:
171: fnd_file.put_line(fnd_file.log,'*******Information*********');
172: fnd_file.put_line(fnd_file.log,' gn_legal_entity_id :'|| gn_legal_entity_id);
173: fnd_file.put_line(fnd_file.log,' gv_repent_trn :'|| gv_repent_trn);
174: fnd_file.put_line(fnd_file.log,' gd_period_start_date :'||gd_period_start_date);
175: fnd_file.put_line(fnd_file.log,' gd_period_end_date :'|| gd_period_end_date);
168: ,gv_entity_identifier;
169: CLOSE c_get_le_and_period_dates;
170:
171: fnd_file.put_line(fnd_file.log,'*******Information*********');
172: fnd_file.put_line(fnd_file.log,' gn_legal_entity_id :'|| gn_legal_entity_id);
173: fnd_file.put_line(fnd_file.log,' gv_repent_trn :'|| gv_repent_trn);
174: fnd_file.put_line(fnd_file.log,' gd_period_start_date :'||gd_period_start_date);
175: fnd_file.put_line(fnd_file.log,' gd_period_end_date :'|| gd_period_end_date);
176: fnd_file.put_line(fnd_file.log,' gv_entity_identifier :'|| gv_entity_identifier);
169: CLOSE c_get_le_and_period_dates;
170:
171: fnd_file.put_line(fnd_file.log,'*******Information*********');
172: fnd_file.put_line(fnd_file.log,' gn_legal_entity_id :'|| gn_legal_entity_id);
173: fnd_file.put_line(fnd_file.log,' gv_repent_trn :'|| gv_repent_trn);
174: fnd_file.put_line(fnd_file.log,' gd_period_start_date :'||gd_period_start_date);
175: fnd_file.put_line(fnd_file.log,' gd_period_end_date :'|| gd_period_end_date);
176: fnd_file.put_line(fnd_file.log,' gv_entity_identifier :'|| gv_entity_identifier);
177:
170:
171: fnd_file.put_line(fnd_file.log,'*******Information*********');
172: fnd_file.put_line(fnd_file.log,' gn_legal_entity_id :'|| gn_legal_entity_id);
173: fnd_file.put_line(fnd_file.log,' gv_repent_trn :'|| gv_repent_trn);
174: fnd_file.put_line(fnd_file.log,' gd_period_start_date :'||gd_period_start_date);
175: fnd_file.put_line(fnd_file.log,' gd_period_end_date :'|| gd_period_end_date);
176: fnd_file.put_line(fnd_file.log,' gv_entity_identifier :'|| gv_entity_identifier);
177:
178: OPEN c_get_rep_entity_info;
171: fnd_file.put_line(fnd_file.log,'*******Information*********');
172: fnd_file.put_line(fnd_file.log,' gn_legal_entity_id :'|| gn_legal_entity_id);
173: fnd_file.put_line(fnd_file.log,' gv_repent_trn :'|| gv_repent_trn);
174: fnd_file.put_line(fnd_file.log,' gd_period_start_date :'||gd_period_start_date);
175: fnd_file.put_line(fnd_file.log,' gd_period_end_date :'|| gd_period_end_date);
176: fnd_file.put_line(fnd_file.log,' gv_entity_identifier :'|| gv_entity_identifier);
177:
178: OPEN c_get_rep_entity_info;
179: FETCH c_get_rep_entity_info into gv_repent_id_number
172: fnd_file.put_line(fnd_file.log,' gn_legal_entity_id :'|| gn_legal_entity_id);
173: fnd_file.put_line(fnd_file.log,' gv_repent_trn :'|| gv_repent_trn);
174: fnd_file.put_line(fnd_file.log,' gd_period_start_date :'||gd_period_start_date);
175: fnd_file.put_line(fnd_file.log,' gd_period_end_date :'|| gd_period_end_date);
176: fnd_file.put_line(fnd_file.log,' gv_entity_identifier :'|| gv_entity_identifier);
177:
178: OPEN c_get_rep_entity_info;
179: FETCH c_get_rep_entity_info into gv_repent_id_number
180: ,gv_repent_name
189: ,gv_tax_office_number
190: ,gv_tax_office_code ;
191: CLOSE c_get_rep_entity_info;
192:
193: fnd_file.put_line(fnd_file.log,' gv_repent_id_number :'||gv_repent_id_number);
194: fnd_file.put_line(fnd_file.log,' gv_repent_name :'|| gv_repent_name);
195: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_1 :'||gv_repent_address_line_1);
196: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_2 :'||gv_repent_address_line_2);
197: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_3 :'||gv_repent_address_line_3);
190: ,gv_tax_office_code ;
191: CLOSE c_get_rep_entity_info;
192:
193: fnd_file.put_line(fnd_file.log,' gv_repent_id_number :'||gv_repent_id_number);
194: fnd_file.put_line(fnd_file.log,' gv_repent_name :'|| gv_repent_name);
195: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_1 :'||gv_repent_address_line_1);
196: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_2 :'||gv_repent_address_line_2);
197: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_3 :'||gv_repent_address_line_3);
198: fnd_file.put_line(fnd_file.log,' gv_repent_town_or_city :'||gv_repent_town_or_city);
191: CLOSE c_get_rep_entity_info;
192:
193: fnd_file.put_line(fnd_file.log,' gv_repent_id_number :'||gv_repent_id_number);
194: fnd_file.put_line(fnd_file.log,' gv_repent_name :'|| gv_repent_name);
195: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_1 :'||gv_repent_address_line_1);
196: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_2 :'||gv_repent_address_line_2);
197: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_3 :'||gv_repent_address_line_3);
198: fnd_file.put_line(fnd_file.log,' gv_repent_town_or_city :'||gv_repent_town_or_city);
199: fnd_file.put_line(fnd_file.log,' gv_repent_postal_code :'||gv_repent_postal_code);
192:
193: fnd_file.put_line(fnd_file.log,' gv_repent_id_number :'||gv_repent_id_number);
194: fnd_file.put_line(fnd_file.log,' gv_repent_name :'|| gv_repent_name);
195: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_1 :'||gv_repent_address_line_1);
196: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_2 :'||gv_repent_address_line_2);
197: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_3 :'||gv_repent_address_line_3);
198: fnd_file.put_line(fnd_file.log,' gv_repent_town_or_city :'||gv_repent_town_or_city);
199: fnd_file.put_line(fnd_file.log,' gv_repent_postal_code :'||gv_repent_postal_code);
200: fnd_file.put_line(fnd_file.log,' gv_country :'||gv_country);
193: fnd_file.put_line(fnd_file.log,' gv_repent_id_number :'||gv_repent_id_number);
194: fnd_file.put_line(fnd_file.log,' gv_repent_name :'|| gv_repent_name);
195: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_1 :'||gv_repent_address_line_1);
196: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_2 :'||gv_repent_address_line_2);
197: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_3 :'||gv_repent_address_line_3);
198: fnd_file.put_line(fnd_file.log,' gv_repent_town_or_city :'||gv_repent_town_or_city);
199: fnd_file.put_line(fnd_file.log,' gv_repent_postal_code :'||gv_repent_postal_code);
200: fnd_file.put_line(fnd_file.log,' gv_country :'||gv_country);
201: fnd_file.put_line(fnd_file.log,' gv_repent_phone_number :'||gv_repent_phone_number);
194: fnd_file.put_line(fnd_file.log,' gv_repent_name :'|| gv_repent_name);
195: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_1 :'||gv_repent_address_line_1);
196: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_2 :'||gv_repent_address_line_2);
197: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_3 :'||gv_repent_address_line_3);
198: fnd_file.put_line(fnd_file.log,' gv_repent_town_or_city :'||gv_repent_town_or_city);
199: fnd_file.put_line(fnd_file.log,' gv_repent_postal_code :'||gv_repent_postal_code);
200: fnd_file.put_line(fnd_file.log,' gv_country :'||gv_country);
201: fnd_file.put_line(fnd_file.log,' gv_repent_phone_number :'||gv_repent_phone_number);
202: fnd_file.put_line(fnd_file.log,' gv_tax_office_location :'||gv_tax_office_location);
195: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_1 :'||gv_repent_address_line_1);
196: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_2 :'||gv_repent_address_line_2);
197: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_3 :'||gv_repent_address_line_3);
198: fnd_file.put_line(fnd_file.log,' gv_repent_town_or_city :'||gv_repent_town_or_city);
199: fnd_file.put_line(fnd_file.log,' gv_repent_postal_code :'||gv_repent_postal_code);
200: fnd_file.put_line(fnd_file.log,' gv_country :'||gv_country);
201: fnd_file.put_line(fnd_file.log,' gv_repent_phone_number :'||gv_repent_phone_number);
202: fnd_file.put_line(fnd_file.log,' gv_tax_office_location :'||gv_tax_office_location);
203: fnd_file.put_line(fnd_file.log,' gv_tax_office_number :'||gv_tax_office_number);
196: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_2 :'||gv_repent_address_line_2);
197: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_3 :'||gv_repent_address_line_3);
198: fnd_file.put_line(fnd_file.log,' gv_repent_town_or_city :'||gv_repent_town_or_city);
199: fnd_file.put_line(fnd_file.log,' gv_repent_postal_code :'||gv_repent_postal_code);
200: fnd_file.put_line(fnd_file.log,' gv_country :'||gv_country);
201: fnd_file.put_line(fnd_file.log,' gv_repent_phone_number :'||gv_repent_phone_number);
202: fnd_file.put_line(fnd_file.log,' gv_tax_office_location :'||gv_tax_office_location);
203: fnd_file.put_line(fnd_file.log,' gv_tax_office_number :'||gv_tax_office_number);
204: fnd_file.put_line(fnd_file.log,' gv_tax_office_code :'||gv_tax_office_code );
197: fnd_file.put_line(fnd_file.log,' gv_repent_address_line_3 :'||gv_repent_address_line_3);
198: fnd_file.put_line(fnd_file.log,' gv_repent_town_or_city :'||gv_repent_town_or_city);
199: fnd_file.put_line(fnd_file.log,' gv_repent_postal_code :'||gv_repent_postal_code);
200: fnd_file.put_line(fnd_file.log,' gv_country :'||gv_country);
201: fnd_file.put_line(fnd_file.log,' gv_repent_phone_number :'||gv_repent_phone_number);
202: fnd_file.put_line(fnd_file.log,' gv_tax_office_location :'||gv_tax_office_location);
203: fnd_file.put_line(fnd_file.log,' gv_tax_office_number :'||gv_tax_office_number);
204: fnd_file.put_line(fnd_file.log,' gv_tax_office_code :'||gv_tax_office_code );
205:
198: fnd_file.put_line(fnd_file.log,' gv_repent_town_or_city :'||gv_repent_town_or_city);
199: fnd_file.put_line(fnd_file.log,' gv_repent_postal_code :'||gv_repent_postal_code);
200: fnd_file.put_line(fnd_file.log,' gv_country :'||gv_country);
201: fnd_file.put_line(fnd_file.log,' gv_repent_phone_number :'||gv_repent_phone_number);
202: fnd_file.put_line(fnd_file.log,' gv_tax_office_location :'||gv_tax_office_location);
203: fnd_file.put_line(fnd_file.log,' gv_tax_office_number :'||gv_tax_office_number);
204: fnd_file.put_line(fnd_file.log,' gv_tax_office_code :'||gv_tax_office_code );
205:
206:
199: fnd_file.put_line(fnd_file.log,' gv_repent_postal_code :'||gv_repent_postal_code);
200: fnd_file.put_line(fnd_file.log,' gv_country :'||gv_country);
201: fnd_file.put_line(fnd_file.log,' gv_repent_phone_number :'||gv_repent_phone_number);
202: fnd_file.put_line(fnd_file.log,' gv_tax_office_location :'||gv_tax_office_location);
203: fnd_file.put_line(fnd_file.log,' gv_tax_office_number :'||gv_tax_office_number);
204: fnd_file.put_line(fnd_file.log,' gv_tax_office_code :'||gv_tax_office_code );
205:
206:
207:
200: fnd_file.put_line(fnd_file.log,' gv_country :'||gv_country);
201: fnd_file.put_line(fnd_file.log,' gv_repent_phone_number :'||gv_repent_phone_number);
202: fnd_file.put_line(fnd_file.log,' gv_tax_office_location :'||gv_tax_office_location);
203: fnd_file.put_line(fnd_file.log,' gv_tax_office_number :'||gv_tax_office_number);
204: fnd_file.put_line(fnd_file.log,' gv_tax_office_code :'||gv_tax_office_code );
205:
206:
207:
208: OPEN c_currency_vat_reg_num ;
211: , gv_vat_reg_num
212: , gv_vat_country_code ;
213: CLOSE c_currency_vat_reg_num;
214:
215: fnd_file.put_line(fnd_file.log,' gv_currency_code :'||gv_currency_code);
216: fnd_file.put_line(fnd_file.log,' gv_name :'||gv_name);
217: fnd_file.put_line(fnd_file.log,' gv_vat_reg_num :'||gv_vat_reg_num);
218: fnd_file.put_line(fnd_file.log,' gv_vat_country_code :'||gv_vat_country_code );
219:
212: , gv_vat_country_code ;
213: CLOSE c_currency_vat_reg_num;
214:
215: fnd_file.put_line(fnd_file.log,' gv_currency_code :'||gv_currency_code);
216: fnd_file.put_line(fnd_file.log,' gv_name :'||gv_name);
217: fnd_file.put_line(fnd_file.log,' gv_vat_reg_num :'||gv_vat_reg_num);
218: fnd_file.put_line(fnd_file.log,' gv_vat_country_code :'||gv_vat_country_code );
219:
220: IF(gv_currency_code = 'PTE') THEN
213: CLOSE c_currency_vat_reg_num;
214:
215: fnd_file.put_line(fnd_file.log,' gv_currency_code :'||gv_currency_code);
216: fnd_file.put_line(fnd_file.log,' gv_name :'||gv_name);
217: fnd_file.put_line(fnd_file.log,' gv_vat_reg_num :'||gv_vat_reg_num);
218: fnd_file.put_line(fnd_file.log,' gv_vat_country_code :'||gv_vat_country_code );
219:
220: IF(gv_currency_code = 'PTE') THEN
221: gn_thousands:= 1000;
214:
215: fnd_file.put_line(fnd_file.log,' gv_currency_code :'||gv_currency_code);
216: fnd_file.put_line(fnd_file.log,' gv_name :'||gv_name);
217: fnd_file.put_line(fnd_file.log,' gv_vat_reg_num :'||gv_vat_reg_num);
218: fnd_file.put_line(fnd_file.log,' gv_vat_country_code :'||gv_vat_country_code );
219:
220: IF(gv_currency_code = 'PTE') THEN
221: gn_thousands:= 1000;
222: ELSE
283: );
284:
285: END LOOP;
286:
287: fnd_file.put_line(fnd_file.log,' After inserting the data into Global Temp Table');
288:
289: RETURN (TRUE);
290: END;
291:
329: RETURN (bal_segment_value);
330:
331: EXCEPTION
332: WHEN NO_DATA_FOUND THEN
333: fnd_file.put_line(fnd_file.log,' No record was returned for the GL_Balancing segment. Error : ' || SUBSTR(SQLERRM,1,200));
334: RETURN NULL;
335:
336: END get_bsv;
337: