cancel
Showing results for 
Search instead for 
Did you mean: 

smart form to PDF Conversion Problem.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Venkat,

you're completely right. I forgot you worked with a PDF to spool. Sorry.

Gr., Frank

Former Member
0 Kudos

Hi Venkat,

maybe you could better use the FM: CONVERT_OTFSPOOLJOB_2_PDF

Then you print it first to spool (with my builtin loop)

Then this spool is converted into a PDF to the place you specify.

Just an idea.

Gr., Frank

Former Member
0 Kudos

Hi Venkat,

another idea.

Use FM CONVERT_OTF.

Here you have a parameter COPYNUMBER.

Gr., Frank

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Answers (6)

Answers (6)

0 Kudos

enter pdf! in commandfield in printpreview smartform screen . it is automatically converted to pdf output..

0 Kudos

You can make use of rstxpdf report for conversion.

or

we can go through with fm

0 Kudos

You can make use of rstxpdf report for conversion.

or

we can go through with fm

Former Member
0 Kudos

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

Former Member
0 Kudos

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к

Former Member
0 Kudos

yes i am passing 5 in tdcopies...... but i am not getting 5 pages in my spool..... in print preview i have 1 page and 5 copies..... is there any way of getting the five copies in the spool request???

Former Member
0 Kudos

have u passed user settings parameter as space in fm of smartform.

It is probably set to X currently.

Former Member
0 Kudos

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

amit_khare
Active Contributor
0 Kudos

How many copies you can see in SPOOL, the PDF will contain the same.

Former Member
0 Kudos

Spool req contains 1st page only. is there any other way to get all the five pages???

Regards,

Venkat

Former Member
0 Kudos

Hi

As Amit already asks. How many copies are there in spool.

In spool can be 1 page. But if copies is 5 you get 5 pages.

Please look at copies.

Gr., Frank