‎2022 Jan 16 8:53 PM
Hi Experts,
I have a Z* appl form (tcode EFRM) whihc has some subroutines & is called by a std print Func Module(FM).
This Z* appl form gets called multiple times.
I need to terminate/halt this completely moving fwd based on a flagged condition as below:
If gv_flag = 'X'
exit.
endif.
I tried putting exit / return statements in various places. The program control is exiting out of the processing block
but again in nested calls the application form is getting called.
How can i handle this?
‎2022 Jan 16 11:09 PM
Hi Ricky,
Within Application Form if you want to terminate (or cancel) the current print job one of the better way is to use macros provided by SAP.
You can try any of the below depending on your scenario along with required parameters:
mac_print_cancel
mac_msg_putx
Thanks,
Srini
‎2022 Jan 16 11:09 PM
Hi Ricky,
Within Application Form if you want to terminate (or cancel) the current print job one of the better way is to use macros provided by SAP.
You can try any of the below depending on your scenario along with required parameters:
mac_print_cancel
mac_msg_putx
Thanks,
Srini