cancel
Showing results for 
Search instead for 
Did you mean: 

how to edit the contents of spools generated by smartforms

Former Member
0 Kudos

Hi All,

I am developing a print form using print work bench & smartforms.

There is a requirement to generate both preprinted forms (contains only datas) and Non-preprinted forms (contains u2026 data + layout + colors + picturesu2026etc) using a single smartform.In which the non-preprinted part should only get converted into pdf & preprinted should only be get printed.

For this I am making a replica of the first two pages of non-preprinted into preprinted format in the same smartform(total 4 pages).

Here I am able to extract & save the non-preprinted part from the spool into PDF.

After the above process, I want to edit the spool content, & then sent to printer.

But clueless about editing the spool content...

( for eg:- delete the first two pages of content in the spool & print the rest)

So my question is u2026.

-Is it possible to edit the contents of spool generated by smartforms u2026 ?

(Is it possible to copy the content of existing spool ,edit, save it into new spool and delete the old one. )

Any solutions / suggestions u2026 ?

Thank you for your attention.

With Regards,

santh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>

> Hi All,

> Here I am able to extract & save the non-preprinted part from the spool into PDF.

> After the above process, I want to edit the spool content, & then sent to printer.

> But clueless about editing the spool content...

> ( for eg:- delete the first two pages of content in the spool & print the rest)

Hey tell me if u r able to delete the first two pages of content in the spool would ur problem be solved?

I am experimenting with the spool, so if the above mentioned is ur requirement, then i can concentrate on that part itself.

кu03B1ятu03B9к

Edited by: kartik tarla on Jan 25, 2009 7:13 PM

Former Member
0 Kudos

Hi Kartik,

>

> Hey tell me if u r able to delete the first two pages of content in the spool would ur problem be solved?

>

> I am experimenting with the spool, so if the above mentioned is ur requirement, then i can concentrate on that part itself.

>

> кu03B1ятu03B9к

>

> Edited by: kartik tarla on Jan 25, 2009 7:13 PM

Yes absolutely, deleteing the first two pages of the spool content is enough for me.

I am also working on the same...with some RSPO_* function modules.

If you can , please help me to cross this hurdle...

Regards,

santhv

Former Member
0 Kudos

Did u try this way?

Change ur control parameters and output options inside ur smartforms after ur two pages get printed, i.e let first two pages print with default settings then change ur control parameters to set getotf = X and set other parameters to supreess the spool and let me know if ur succesful with this or not.

кu03B1ятu03B9к

Former Member
0 Kudos

Yes, I tried..

but unable to set / reset the GETOTF flag with in the smartform.

b/w even if it is possible thats not a solution... Because I am having a

third page which is common to preprint and non-preprint.

Still I'm trying to delete first 2 pages from the spool with the hints u hav specified.

Note done yet, Pls let me know , if u find a solution regarding this.

Regards,

santhv

Former Member
0 Kudos

Hi,

check this include,LSTXWFPD it contains subroutines used to convert spool to pdf, so check out the code, they may be useful and in a way may be helpful in knowing how to edit spool if possible.

the include is used in this program

rstxpdf5

кu03B1ятu03B9к

Edited by: kartik tarla on Jan 27, 2009 5:20 PM

Former Member
0 Kudos

Gone thru the include,

got a function module... PRINT_OTF...

I am just working around it... still there is hope I think..

Former Member
0 Kudos

Hi Kartik,

Done !

Problem resolved...

Took the spool content , split it into pdf(non-preprint) part and preprint part.

With the preprint data generated a new spool using the FM 'PRINT_OTF'.

and deleted the old spool.

Thank you very much for your constant support & guidance...

Regards,

santhv

Answers (2)

Answers (2)

Former Member
0 Kudos

-Is it possible to edit the contents of spool generated by smartforms u2026 ?

not possible

(Is it possible to copy the content of existing spool ,edit, save it into new spool and delete the old one. )

not possible

-


try to control it in smartform itself.....(above idea will not work).

in every window we have tab output option

in box and shading

in frames

we have option lines with if it is checked u will get layout....

try this ...

from ur driver program pass a variable to identify o/p is preprinted forms or non-preprinted forms

variable for preprinted forms (pp)

variable for non-preprinted forms (nonpp)

create two windows for every title (address).....

one window u specify lines with

in condition tab specify variable to identify non-preprinted forms nonpp = 'X'

in another window u dont specify line with

in condition tab specify variable to identify preprinted forms pp = 'X'

Former Member
0 Kudos

Hi Niki,

Thank you for your time & suggestions....

>

>

> try to control it in smartform itself.....(above idea will not work).

>

> try this ...

> from ur driver program pass a variable to identify o/p is preprinted forms or non-preprinted forms

Yes, I got your point... I even tried this option also.

First of all the user want both(preprinted-hardcopy & non-preprinted pdf) form in a single process, so that data integrity is maintained both in hardcopy & soft copy.

Even if I negotiate tha above requirement....

The problem is , I am using Print WorkBench , not an user-defined driver program.Inside printworkbench , the smartform is mentioned.

The process is as follows...

ea40/ea60(isu billing transaction) -> Printworkbench ->smartforms -> spool -> printer(preprint part) / pdf(non - preprint).

Hope u understand my limitations....

Still expecting a solution...

Regards,

santh

Former Member
0 Kudos

Anybody having a solution for this,

or need more clarification ?

Please reply...

Regards,

santh v

Former Member
0 Kudos

Editing spool is not suggested,

so better idea wud be to use same print program to trigger two smartforms both print and non print one after another or on conditional basis as u like.

Let the printable smartform generate spool and print it and other non printable form just get its otf so its spool is supressed and convert it to otf.

кu03B1ятu03B9к

Edited by: kartik tarla on Jan 23, 2009 11:52 PM

Former Member
0 Kudos

Hi Kartik,

>

> Editing spool is not suggested,

> so better idea wud be to use same print program to trigger two smartforms both print and non print one after another or on conditional basis as u like.

Thank you, good suggestion..

But, as I have mentioned early the problem is with the print program.

I am using Print work bench which is associated with a single smartform,

(smartform called only once).Don't know how far we can customize this.

Are you into print work bench....

How to call samrtform twice in a printwork bench.

Any solution regarding this........

Regards,

santhv

Former Member
0 Kudos

Hi,

I am not on sap system right now, I wud analyse ur problem on monday when i'll be on my sap system, Ur requirement seems very interesting to me so definately i wud try to solve it,

кu03B1ятu03B9к

Former Member
0 Kudos

Thank you !, Thank you very much...

Looking forward to hear from you......

Regards,

santhv

Former Member
0 Kudos

Hi santh,

I never worked on print workbench so not much aware of all its options, so dont know if it can call 2 smartforms at once or not,

probably u can try with the possibility of not using the workbench as it would give more flexibility with the driver program.

кu03B1ятu03B9к

Former Member
0 Kudos

not possible for 2 conditions...

Former Member
0 Kudos

Hi,

Please explain.....

Is it possible to convert otf back to spool.?

(means take otf from spool , edit the otf and then convert it back into spool)

PLEASE HELP !!!

Regards,

santh