Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to findout whether user clicked print or preview

Hi ALL,

i NEED TO UPDATE A ZTABLE ONLY WHEN THE SCRIPT OUTPUT IS PRINTED. IF THE USER CLICKS PRINT PREVIEW OR CANCEL THEN I SHOULDN'T UPDATE THE TABLE.

cAN ANYONE TELL WHAT PARAMETER I NEED TO CHECK. I'm looking at itcpo structure in debug mode i didnot found any difference when i clicked print or print preview

THANKS

Tags:
Former Member
Former Member replied

check the sy-ucomm

Print = PRNT is Ok code

Print preview is PREV is Ok code

keep the break point at OPEN_FORM and use sy-ucomm in debugging.

Thanks

Seshu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question