185: function cf_acc_messageformula(org_id in number) return number is
186: begin
187: IF arp_util.open_period_exists('3000',org_id,p_gl_start_date,p_gl_end_date) THEN
188:
189: FND_MESSAGE.SET_NAME('AR','AR_REPORT_ACC_NOT_GEN');
190: cp_acc_message := FND_MESSAGE.get;
191:
192: ELSE
193: cp_acc_message := NULL;
186: begin
187: IF arp_util.open_period_exists('3000',org_id,p_gl_start_date,p_gl_end_date) THEN
188:
189: FND_MESSAGE.SET_NAME('AR','AR_REPORT_ACC_NOT_GEN');
190: cp_acc_message := FND_MESSAGE.get;
191:
192: ELSE
193: cp_acc_message := NULL;
194: END IF;