on 11-23-2010 9:24 AM
I have followed the boards that I found in the thread:
But the pdf that I get is empty.
If I stop the execution between:
IF ( t_tsp01-rq0name = 'SMART' OR t_tsp01-rq0name = 'SCRIPT' ).
* For Scripts and Smartforms.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = t_tsp01-rqident
TABLES
pdf = it_pdf.
ELSEIF t_tsp01-rq0name = 'LIST1S'.
*for Reports.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = t_tsp01-rqident
TABLES
pdf = it_pdf.
ENDIF.
and:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = gv_string
filetype = 'BIN'
TABLES
data_tab = it_pdf.
I can see several rows in my it_pdf. After the gui_download, I find a new .pdf in the expected folder, but it is empty.
I tried both, sapscript spools (SCRIPT) and normal report spools (LIST1S), but I got the same result.
What can be the problem?
Another thing: I find some spools SAP08 (neither LIST1S nor SMART/SCRIPT), what must i use for these files?
Iu2019m working by the 4.6c u2026
I have solved!
I was missing the BIN_FILESIZE parameter.
Thanks to all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Give it a try with the code below for the transfer from your pdf-tab to the file
PERFORM download_w_ext(rstxpdft) TABLES pdf_tab
USING p_file
'.pdf'
'BIN'
binfilesize
cancel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Give it a try with the code below for the transfer from your pdf-tab to the file
I believe it is the final solution ... in another release.
In 4.6c I find the program RSTXPDFT with only three forms, and no one is "download_w_ext".
If I look the same program in another server with the rel. 7.00, I can find the form.
Now I'll try to study the "download_w_ext" to understand if I can carry it from 7.00 to 4.6c.
Thank you.
Try rq-rqdoctype = 'SMART' or rq-rqdoctype = 'OTF'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Try rq-rqdoctype = 'SMART' or rq-rqdoctype = 'OTF'.
Ok: I have seen the field value and it is 'OTF' for my "SAP08" spool. So I have modified the code:
IF ( t_tsp01-rq0name = 'SMART' OR t_tsp01-rq0name = 'SCRIPT'
OR t_tsp01-rq0name = 'SAP08').
* For Scripts and Smartforms.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
But the main problem remains: the pdf files continue to be empty.
Boths the kinds of files, from 'CONVERT_ABAPSPOOLJOB_2_PDF' and from 'CONVERT_OTFSPOOLJOB_2_PDF', are empty.
Perhaps the problem is gui_download: must I do something on the "tline" table before downloading?
Thank you for the board!
Regards.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.