on 2009 Mar 16 1:46 PM
Dear all,
I am downloading the smartform in PDF format using convert OTF to PDF FM. My smartform printout will contain 5 copies of orginal page,but my PDF file contains only one page , i want all the the five pages.pls help.
Regards ,
Venkat
hi Venkat,
I guess the problem is with the tables parameters in the function module CONVERT_OTF,
when you are calling the form you have to append the data into that tables parameter, so that
your table contains data of 5 forms( i mean how many times you want).
Regards,
Jayaram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
this is what i am passing in the FM convert to OTF
call function 'CONVERT_OTF_2_PDF'
importing
bin_filesize = p_bin_filesize
tables
otf = tab_otf_final1
doctab_archive = p_docs
lines = p_lines
exceptions
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
others = 3.
and one more thing while taking the print i will be changing the values in a specific window(i.e in smart form) depending on the page copy number .
@ Frank
as per your idea if i print in loop , i think my spool will contain only the first page as 5 copies.
correct me if i am wrong.
Venkat.
Edited by: Venkat on Mar 23, 2009 11:43 AM
Hi did u check wat u r passing to user setting parameter of ur smartform fm, i think making it space and then passing td copies will work or just do this.
get ur otf in an internal table then do like this.
do 5 times.
append lines of it_otf to it_otf_final.
enddo.
Now pass it_otf_final to convert_otf fm ur pdf will have five copies.
кu03B1ятu03B9к
Edited by: kartik tarla on Mar 23, 2009 7:04 PM
let me explain whats happening in my code.
in my smartfrom i just want to change the header details of the page.ie first page will be like original copy,2nd will be bank copy etc. so while printing i changed the header data by validating the copy count. and i have declared the window type as copies window , Original and copies - Copies Differ.
i have cross checked the OTF internal table. all the header data were present one after another and the remaining part of the smartform came once.
internal table contents.
TDPRINTCOM TDPRINTPAR
// XSWIN 0620 00000+00000+1
IN 04EZSDGINV_T
IN 05%PAGE1
OP DINA4 P 144 240 1683811906000010000100001
IN 06COPIES 001001
MT 842401204
CP 11000000E
FC HELVE 080X 00068XSF101SF011110000045E X
UL 0
SW 45
CT 0
ST 0212121*ORIGINAL FOR CUSTOMER*
IN 06COPIES 002002
MT 799501204
CP 11000000E
FC HELVE 080X 00068XSF101SF011110000045E X
UL 0
SW 45
CT 0
ST 0255025*BANK COPY*
IN 06COPIES 003003
MT 832001204
CP 11000000E
FC HELVE 080X 00068XSF101SF011110000045E X
UL 0
SW 45
CT 0
ST 0222523*COPY 3*
.
.
.
THEN THE REMAINING PART OF MY SMARTFORM
My PDF file Picks only the first page with the heading as ORGINAL FOR CUSTOMER.
how to make it workable for all the five pages.
and i have also tried using
the FM CONVERT_OTF.
COPYNUMBER.
but no luck....
regards,
Venkat.
enter pdf! in commandfield in printpreview smartform screen . it is automatically converted to pdf output..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can make use of rstxpdf report for conversion.
or
we can go through with fm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can make use of rstxpdf report for conversion.
or
we can go through with fm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkat,
Even i have the same problem.I need to convert 2 copies of the first and the only page to PDF . But my spool request consistes of only the first page, so I am able to get only the original copy in my pdf. How can i get my second copy converted to PDF.
Please help.
Regards,
Karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
pass tdcopies as 5 in the output options of the smartform fm and ur spool will have 5 pages so the resulting otf and the pdf will have 5 pages.
кu03B1ятu03B9к
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
That 1 page that you have in spool will printed 5 times.
So you have 1 page in spool
The printout is 5 pages.
If you wanna 5 page in spool you have to build-in a loop in your printer program.
Take care that only the first goes in a new spoolid. The others have to be added to that spool.
Gr., Frank
How many copies you can see in SPOOL, the PDF will contain the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
10 | |
9 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.