Skip to Content
0
Apr 25, 2011 at 05:41 AM

Capture OK-CODE after Print and Print-Preview

955 Views

Hi Folks,

I have a custom program to print a Smartform in which I am storing some data into a Z table after the user clicks on PRINT (sy-ucomm = 'PRNT'). It works fine if the user clicks on PRINT directly from the pop-up, but the logic does not work if the user Prints the smartform while looking into the Preview, i.e. User first clicks on Print Preview and then while the preview is open, user select clicks the print button on the top of the Preview screen.

I am not abe to capture the OK-CODE if user clicks PRINT from the Print Preview screen.

Could you please tell me what is the OK-CODE (sy-ucomm) in this scenario?

Thank you.

Regards,

Sud