cancel
Showing results for 
Search instead for 
Did you mean: 

To Print 3 copies from output type with different TITLE

Former Member
0 Kudos

Hello GURUS,

I am facing one problem in smartform,

In output type of vf03 i want printout with three copies , on which 'ORIGINAL' , 'DUPLICATE' 'TRIPLICATE' written on the on the copies.

how is it possible .

Please guide me .

its very urgent.

points will be surely rewarded.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Priya,

Create three pages in smartform.

Create header window for ur title and create text into header window 'Original'.

Copy all windows of first page into second and third except header window from first page.

Then create header1 window in second page and create text which prints 'Duplicate'

Then create header2 window in third page and create text which prints 'Triplicate'

And in last window of first page just right click ->create command and click go to new page and give the name of second page.

Same with second page but give name of third page as next page.

Reward if useful.

Former Member
0 Kudos

HI ANIL,

sorry i got busy in some work,

i am working on your suggestion ! may it will be help ful.

thanks , after trying i will tell u the results

Former Member
0 Kudos

HI,

I had tried your way ,it works but as i had original and duplicate.

if in first page enteries exceed then it will print in duplicate page .

is thier any way to get out of it.

Former Member
0 Kudos

Hi,

Try to use page protection if u have data within internal table

And if u r using table node

1. Create one folder in main area of table

2. Insert the line item(row) within that

3. Click the page protection which is in output options of folder.

Or u can apply the same on the other nodes of window which contains large amount of data.

Try it and let me know if thr is any problem.

Former Member
0 Kudos

hi,

I had done but that page protection is in disable mode.

This page protection flag is in table node also but it is also in disable mode.

Former Member
0 Kudos

Hi Priya,

Page protection for folder is available only in main window.

So please the window which contains large amount of data

Declare it as main and thr should only one main window in one page so u can declre other windows as secondary windows.

Please Try this and let me know if any prblm.

Former Member
0 Kudos

Hi Priya,

First make ur Title window as 'Copies Window' and ve three Text elemnts in it.

In the First text element condition tab, ve a condition - 'SFSY-COPYCOUNT = '001' and in general attributes Print 'Original'.

In the second text element condition tab, ve a condition - 'SFSY-COPYCOUNT = '002' and in general attributes Print 'Duplicate'.

In the Third text element condition tab, ve a condition - 'SFSY-COPYCOUNT = '003' and in general attributes Print 'Triplicate'.

Finally in Print Dialog Box, Give 3 as input to the field ' No. of Copies'.

If u r passing values to the Print Dialog through program, then pass the value '3' to SSFCOMPOP-TDCOPIES field.

Please let me know whether its working.

Regards,

Prabhu

Edited by: Prabhuraj Krishnan on Apr 8, 2008 12:35 PM

former_member184657
Active Contributor
0 Kudos

Thanx prabhu,

the above solution provided by u worked to perfection for me.

thanx a ton.

pk

Former Member
0 Kudos

Hi,

I had not tried it before but try this one

As said by some above

use the COPYCOUNT

variable in the conditions of your heading

take three different text elements and give your conditions & headings &

In your driver program

DATA: x_output_options TYPE ssfcompop.

x_output_options-tdcopies= 3.

& in your function module pass this value as

CALL FUNCTION g_fname

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS = x_control_parameters

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

OUTPUT_OPTIONS = x_output_options

Thanks,

Phani.

Former Member
0 Kudos

Hi Priya,

For 3 Copies.....First Declare one Variable and Assgin no of copies is 3(formpages).

if formpages = 1.

Original,

elseif formpages = 2.

dublicate.

else.

dublicate2.

endif.

thanks,

kumar.

Former Member
0 Kudos

can u explain in detail

Former Member
0 Kudos

Hi,

SFSY is Structure which is Populated during Runtime.

The value of the field &SFSY-COPYCOUNT& if it is 1 Then it is Original, If 2 then 1st Copy etc.

Regards

Sandipan

Former Member
0 Kudos

Hi Priya

Please follow the following steps:

1) select a record with the following attribute from the table

NAST

KAPPL = V3

OBJKY = INVOICE NUMBER

KSCHL = YOUR CONDITION TYPE

VSTAT = 1.

If you find a record with this attributes it means that the invoice is already printed once,

so you can set a flag and display the TITLE depending on the flag,

Please let me know if you have any doubts,

Reward if Usefull

Former Member
0 Kudos

Hi,

In Your SAPScript Write This field

&PRINT_CO-DRTXT&

This will be get printed in runtime according to your driver program .

Regards

Sandipan

Former Member
0 Kudos

hi,

thanks for youe response,

but i am asking for smartform , is it possible in it

Former Member
0 Kudos

Hi,

It is also possible in smartform press the ICon beside Form Painter(CtrlSfiftF4)

Under System Fields>SFSY>There are Two fields COPYCOUNT and COPYCOUNT0.

Select the field and drag it into the window where you want to display.

Regards

Sandipan