How to findout whether user clicked print or preview
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
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.