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.
Calling Troubleshooting Texts
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.
Activating Trace Output
In parameter IE_OUT_OUTPARAMS (type SFPOUTPUTPARAMS) of function module FP_JOB_OPEN, set the field ADSTRLEVEL to a value between '01' and '4'.
To get the trace, once you have called the generated function module, call the function module FP_GET_LAST_ADS_TRACE.
Note that if ADSTRLEVEL = 04, a PDF with additional information is generated, if a PDF is requested in the print program. Printing such a PDF using device type SAPWIN with SAPSPRINT (as of SAP NetWeaver 7.3) is not supported. However, you can view the PDF with additional information in the spool in the preview.