Hi Yuan Yuefeng,
Check if the DEVICE parameter was set on OUTPUTPARAMS structure. That means, if a valid printer was assigned on runtime.
How to check:
1) set a breakpoint on FP_JOB_OPEN Function Module;
2) check in the stack, if the program that calls FP_JOB_OPEN passes the DEVICE parameter with a valid printer;
If it has a printer, then check the error on ADS trace.
See how to set up the trace on the KBAs below, depending on JAVA version.
2218551 How to activate ADS trace in NW 7.0x [Video]
2226341 How to activate ADS trace in NW 7.1 and higher? [Video]
Regards,
Diego








.jpg)


