378: where event_id = p_event_id
379: and actual_flag = 'E'
380: and pck.ledger_id = cbc.set_of_books_id(+)
381: and exists 382: (select 1 from gl_ledgers l 383: where l.ledger_id = pck.ledger_id
384: and l.ledger_category_code = 'PRIMARY');
385:
386: l_return NUMBER := 1;