cancel
Showing results for 
Search instead for 
Did you mean: 

How to know whether document is only printed or only viewed as print preview in SAP Script?

poojatalashilka
Explorer
0 Kudos

Dear All,

We have developed a script for cheque printing, and further requirement is to enable the user to print the cheque only once while he can preview it any number of times.

In Smartform we have control_parameters, output_options, JOB_OUTPUT_INFO, JOB_OUTPUT_OPTIONS, etc.

But, is there a way to find out if user has only done print preview or actually Printed the document in SAP script?

kiran_k8
Active Contributor
0 Kudos

Pooja,

To my knowledge, a cheque with a unique number can only be printed once as per SAP Standard.

Correct me if I am wrong.

K.Kiran.

Accepted Solutions (0)

Answers (1)

Answers (1)

hedvig_rohonyi
Employee
Employee
0 Kudos

Hi,

You can use parameter RESULT when you call the function CLOSE_FORM in your print program.

CALL FUNCTION 'CLOSE_FORM'

IMPORTING RESULT =

Field RESULT-TDSPOOLID contains the spoolid when the document was printed.

Best regards,

Hedvig

poojatalashilka
Explorer
0 Kudos

Hi Hedvig,

Thanks for your response. I'm working on the issue and will reply here once I get a solution.

Regards,

Pooja Talashilkar