cancel
Showing results for 
Search instead for 
Did you mean: 

Returning a "Printed" variable from Adobe Form ?

former_member186822
Participant
0 Kudos

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 ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

rakesh_m2
Contributor
0 Kudos

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.