Error while submitting 'GLPREV' program from backend
I am submitting 'GLPREV' program from backend. But I'm getting error as 'A journal header can be reversed only if it is marked for reversal'. Can someday suggest what am I missing.
I am submitting the program as below. I'm trying to reverse secondary ledger journal
l_conc_id := fnd_request.submit_request(
application => 'SQLGL',
program => 'GLPREV',
description => NULL,
start_time => sysdate,
sub_request => false,
argument1 => l_access_set_id, --data access id
argument2 => p_header --secondary ledger header id
);