cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Smart forms waterma

former_member767623
Participant
0 Kudos

Hi Gurus,

I am developing the smart form with water mark, it works fine, but now client requirement is,

1) when he gives the print, there should be the two copies and first copy should not display water mark and second copy should be display the watermark.

Thanks in advance,

Thanks & Regards,

Radhakrishna.ette

SAP ABAP Consultant

Accepted Solutions (1)

Accepted Solutions (1)

former_member767623
Participant
0 Kudos

Hi to all

I have done by this way,

I have taken copies window as the same dimensions of main window , in the copies window i taken text , their available the condition tab in codition tab i have provided the condtion like

SFSY-COPYCOUNT <> 001.

So this copy window will be triggered when we give prints as 2,3... on print lable box.

My second requirement:

Here my requirement is always two prints one original and second one is duplicate  so by default i set the no of copies 2 on print label box so from driver program i coded like this

   DATA: wa_output_options TYPE ssfcompop.

wa_output_options-tdcopies = 2.

   CALL FUNCTION fm_name

     EXPORTING

*   ARCHIVE_INDEX              =

*   ARCHIVE_INDEX_TAB          =

*   ARCHIVE_PARAMETERS         =

*   CONTROL_PARAMETERS         =

*   MAIL_APPL_OBJ              =

*   MAIL_RECIPIENT             =

*   MAIL_SENDER                =

    OUTPUT_OPTIONS             = wa_output_options

    USER_SETTINGS              = ' '

Now its automatically coming 2. so user just click the print button it comes 2 copies.

Thanks & Regards,

Radhakrishna.Ette

Answers (2)

Answers (2)

former_member213851
Active Contributor
0 Kudos

Hi Krishna,

Yoy may use 2 different smartforms.

In NACE assign thse SMARTFORMS to same driver program.

Now in driver program, use below logic

To get current number of copy, use  SFSY-COPYCOUNT and call relevant Smartform accordingly.

Eg:

IF SFSY-COPYCOUNT = 1 and server is NE 'PEP'         "except Production

       *--------------------- print Smartform with  watermark image

else.

   if server is NE 'PEP'       

        "*-----------------  print Smartform w/o watermrk image.

endif.

endif.   

laurent_fournier2
Contributor
0 Kudos

Try copying the page to a new one with watermark so first page is without and second with watermark. You may need to alter the form flow to print both pages.

former_member767623
Participant
0 Kudos

Dear Laurent i have copied the page , But could you please tell me how to alter the form to print both pages

Thanks in advance

Radhakrishn.Ette

SAP ABAP Consultant

former_member767623
Participant
0 Kudos

Dear Laurent,

I have copied the first page and created the second page with watermark Result is it display the water mark on second page. But I want to display total data of first page(it may have n number of pages), then display the second page data with water mark.

Step1) I have 10 materials has to display so it will comes on two pages, if 15 materials it may take 3 pages to Print the data.

Step2) same First page Data has to print again with water mark(Water mark containing Duplicate copy).

So  Step1 print gives to those Users and Step2 print keep with my Client(it refers  Duplicate).

Thanks in advance

Thanks n Regards,

Radhakrishna.Ette

laurent_fournier2
Contributor
0 Kudos

Hi again,

I'm not very sure that this will work but you can give it a try.

Copy the first page  to a page named last exactly as it is ( Including loops etc )

First page attributes declare as next page first page.

at the end of form flow logic of  first page insert a command to call last page.

I believe that with this way, you will let's say print the first page 3 times ( if it has many items ) and then by calling the last page you will again print it 3 times with watermark since whole logic is the same.

former_member767623
Participant
0 Kudos

Dear Laurent Fournier,

when i insert a command of last flow logic in first page it getting error is

No other column available (see long text!).

Please help.


laurent_fournier2
Contributor
0 Kudos

can you please paste a screen shot of you form flow logic ?

If you have a table try adding  the command within the main window after the table.

laurent_fournier2
Contributor
0 Kudos

Are you sure that this error is produced cause of the command ? If you remove the command, can you activate the form ?

former_member767623
Participant
0 Kudos

yes  i tried for this check if i remove this command it is activating.

laurent_fournier2
Contributor
0 Kudos

can you please paste a screen shot of you form flow logic ?

If you have a table try adding  the command within the main window after the table.