Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to findout whether user clicked print or preview

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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 Kudos

Thank you

Awarded full points

ferry_lianto
Active Contributor
0 Kudos

Hi,

Have you looked ITCPP structure?

Regards,

Ferry Lianto