Setting Runtime Error Analysis in the Application Program 
If the system outputs a runtime error FPRUNX001, FPRUNX002, or FPRUNX004 when the generated function module is called, you can use troubleshooting to find the cause of the error.
To do this, you can call function modules in the application program that provide the following information:
Troubleshooting texts
Trace of Adobe Document Services
You have created the form layout with Adobe LiveCycle Designer.
To get information about the cause of the error, once you have called the generated function module, call the function module FP_GET_LAST_ADS_ERRSTR.
In parameter IE_OUT_OUTPARAMS (type SFPOUTPUTPARAMS) of function module FP_JOB_OPEN, set the field ADSTRLEVEL to a value between '01' and '10'.
To get the trace, once you have called the generated function module, call the function module FP_GET_LAST_ADS_TRACE.
SAP Note 717568