on 08-03-2009 12:08 PM
Hi ,
I am tring to check spool no generated for a print form as I need to send the output of the form to a mail Id.
For that purpose I am putting break-point on close_form .When I press on print preview it goes to debugg screen but that time ITCPP-spoolid is not getting generated.
when I press print that time it is not getting stop at break-point.
Can any body tell me whats the reason behind it.
help will be appretiated.
Thanks and Regards,
Tanisha
Hi Tanisha,
In spite, capturing spool ID, why not you are trying to acieve the same in different way? Please check the below link:
https://wiki.sdn.sap.com/wiki/display/Snippets/emailsendthroughoutputcontrols
Might be it will help you out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Print previews will not generate spools and therefore no spool id is available. You must actually send the document to print to have a spool.
You also might want to try checking syst-spono.
Becky
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any output generated in spool ?
Check SP02 after the excution of program.
Usually if output is generated the spoolid is returned by CLOSE_FORM function module
DATA WA_RESULT TYPE ITCPP .
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = WA_RESULT .
WRITE WA_RESULT-TDSPOOLID .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello:
Not to seem silly, but are you sure the routine your close_form function is in is being executed? You might want to debug your program more closely. It is possible the form is being closed by the end of the program and not your 'close_form' function.
One of the other people posting is correct in that you might want to consider alternate ways to do this also. The smartform reference might not work for you, but if you are sending this to a customer, you might want to look how rvador01 or rvadin01 handle this. If you are sending this to a vendor, you might want to look at the logic in function ME_PRINT_PO.
Becky
After print preview you press back button and then the system would stop after the CLOSE_FORM call, here you can able to see the spool id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.