Hi,
Check the value in variable x_header-frm_on_new that should have a valid name of a perform and also you need the program name in which the perform exist after IN PROGRAM. The general call pattern is
PERFORM (<fsubr>)[IN PROGRAM (<fprog>)][USING ... <pi>... ]
[CHANGING... <pi>... ]
[IF FOUND].
Cheers,
Arindam