Usage and System Error in SAP Adobe Forms

We have received several issues where users are not unable to preview Adobe Form. System doesn’t show any error message. When we start debugging we can see SY-SUBRC becomes 1 or 2 after FM being called. It says Usage Error or System Error.

We need to analyzed the standard program, and involves sequence of break-points. I thought it will be helpful to put the sequence, and it is going to save the time.

Here are the sequence of steps used to analyze the issue in case of such Error.

USAGE ERROR:

Start debug the FM used to call Adobe form (Press F5), and put a break-point at subroutine %WORK as shown below.

Debug the Perform, we can come to know exactly which field is causing the issue. Most of the time, issue with long text display.

SYSTEM ERROR:

Start debug the FM used to call Adobe form (Press F5), and put a break-point at FM: ‘FPCOMP_FORM_END’ as shown below

Start debug the FM: FPCOMP_FORM_END, and navigate to subroutine FINISH as shown below, and put the break-points at highlighted position below.