on 02-15-2012 12:12 PM
Hi SAP / Adobe Gurus !
We are calling an Adobe Form to print Production Order items. ( Home-made prg and Form )
We want to create a "Print-Log" , in a Z-table , but no variables are returned where we can check if Print Button was pushed.
We return "xout" and also "result" from the "FP_JOB_CLOSE" ....but nothing to say if Form was printed:
*-----Call Adobe Form
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
ZPTL = ZPTL
IMPORTING
/1BCDWB/FORMOUTPUT = xout
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
Any suggestion how to solve this ?
Hi Rolf Hoven ,
I hope when you execute FP_JOB_OPEN, FM_NAME and FP_JOB_CLOSE then only the spool will be created..you can use the function modules to read the spool number so that you can confirm whether the spool created or not...
Use Function modules RSPO* for spool related stuff.
Regards,
Naresh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rolf,
You could write an insert for ztable, with username(sy-uname), date(sy-datum) and time(sy-uzeit) in the print even just before the Job close function. If you are performing other options such as email, fax using same routine, then check the print parameters and check the way how print funciton is executed and place an insert to that ztable, so that log could be maintained.
Thanks,
Rakesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.