Skip to Content
author's profile photo Former Member
Former Member

script

hi all ,

i have a scenario like this . i have to print an invoice five times for each time when they give the print with different headings . can anybody tell me the way how to do it.

thanks & regards

magesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2007 at 06:47 AM

    If u are using Smart Forms u've this option, don't know if there is anything similar in Scripts

    create a window of type COPIES window in ur smartform and capture the no.of the copy that is currently output using the system variables SFSY-COPYCOUNT or SFSY-COPYCOUNT0, and display the headings text accordingly.

    Also check this link

    http://help.sap.com/saphelp_47x200/helpdata/en/b1/243fe0beee11d4b633006094192fe3/content.htm

    Message was edited by:

    Rajesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2007 at 06:53 AM

    Hi Magesh,

    In scripts you have the current copy stored in Nast structure field is anzal. Use this field and you can programatically handle the situation.

    Award points if useful,

    Aleem.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2007 at 06:53 AM

    <b>Copies Window</b>

    Use

    You use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed.

    Prerequisites

    You use this window type only if you want to print copies of your form. In the spool dialog in the Number input field of the Copies group box enter the number of copies (including the original).

    Features

    You can determine where to print the inferior nodes of a copies window:

    • Both on the original and on the copies (

    • Original and Copies ) Only on the original (

    • Only Original ) Only on the copies (

    Only Copies )

    You can use the system fields SFSY-COPYCOUNT or SFSY-COPYCOUNT0 to query whether the current output is the original or, respectively, which number the copy has.

    Extras

    You frequently print a graphic on the copies to flag them as copies. If, independent of the copy, the graphic is always the same, SAP Smart Forms can buffer the graphic before printing the page and thus increase performance. To do this, you must flag the copies window accordingly:

    • If you mark

    • Identical Copies SAP Smart Forms buffers the output to increase performance. Within such a window, any queries of the system fields SFSY-COPYCOUNT or SFSY-COPYCOUNT0 have no effects. If you mark

    Different Copies SAP Smart Forms generates the contents again for each copy. You use this option if, for example, you want to number your copies consecutively (Copy 1, Copy 2, Copy 3, and so on).

    Regards,

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2007 at 06:55 AM

    HI,

    if you look at the table NAST there is a field ANZAL, look at the field, this field will contain the Number of copies of the Script, based on this write the header ...

    Write the select based on the Output type, then

    IF &NAST-ANZAL& = 1.
     First header.
    ELSEif &NAST-ANZAL& = 2.
     Second header.
    ELSEif &NAST-ANZAL& = 3.
     Third header.
    Endif.

    Regards

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.