‎2010 Aug 02 3:37 PM
Hi,
I am posting 2 quires.
1. I would like to know when Spool will generate after CLOSE_FORM. Pls remember, I am passing printer name to this FM soe we will not get a pop-up for Printer.?
I want spool no, bcoz, want to convet it to PDF and mail it as attachment by using FM 'CONVERT_ABAPSPOOLJOB_2_PDF'.
2. In FM CONVERT_OTF_MEMORY, other FM 'READ_OTF_FROM_MEMORY'. In 2nd FM, login is
memkey = memory_key.
import otf from memory id memkey.
if sy-subrc 0.
raise memory_empty.
endif.
while debugging mode I try to find active memory id's from Menr->Goto->Sys area-> ABAP memory, Iam not able to fine ID DEF_OTF_MEMORY_KEY. It means cann't we read data from memory to OTF.
My case sy-subrc is not 0. Is this reason for this??? Please sugget how to convert data to pdf.
Thanks & Regards,
‎2010 Aug 02 5:10 PM
Hi Sandy,
To Get the spool no we can use this logic...
IN FM OPEN_FORM Import Parameter OPTIONS(Print Options) pass TDDATASET and TDCOVTITLE for spool details.
For Example If ur working for Order then maintain ur OR if invouce IN u can maintain ur custom text.
then for Title MaintainCONCATENATE p_vbeln sy-datum sy-uzeit INTO g_title SEPARATED BY '_'.
After CLOSE_FORM
Then write select statement to fetch the form
SELECT SINGLE rqident INTO tsp01-rqident
FROM tsp01
WHERE rq0name = c_rq0name
AND rqowner = sy-uname
AND rqtitle = g_title.
then pass this Spool number with path to this program PDF will be Genrated
SUBMIT rstxpdft4 WITH spoolno = tsp01-rqident
WITH p_file = v_path
Cheers,
Naveen
‎2010 Aug 02 5:10 PM
Hi Sandy,
To Get the spool no we can use this logic...
IN FM OPEN_FORM Import Parameter OPTIONS(Print Options) pass TDDATASET and TDCOVTITLE for spool details.
For Example If ur working for Order then maintain ur OR if invouce IN u can maintain ur custom text.
then for Title MaintainCONCATENATE p_vbeln sy-datum sy-uzeit INTO g_title SEPARATED BY '_'.
After CLOSE_FORM
Then write select statement to fetch the form
SELECT SINGLE rqident INTO tsp01-rqident
FROM tsp01
WHERE rq0name = c_rq0name
AND rqowner = sy-uname
AND rqtitle = g_title.
then pass this Spool number with path to this program PDF will be Genrated
SUBMIT rstxpdft4 WITH spoolno = tsp01-rqident
WITH p_file = v_path
Cheers,
Naveen