Skip to Content
avatar image
Former Member

Changes to Texts

Dear All,

I have a sap script and I am stuck in situation where in i need be print 3-4 copies and each copy shld have

different text.

Like Copy 1 - test & Copy 1 - test1 and so on.

Can any body please help me in this regard.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 18, 2008 at 11:14 AM

    on the selection screen ask user to enter number of copys.

    do copy times.

    l_index = sy-index - 1.

    concatinate 'copy'

    l_index

    into text.

    perfrom print_script.

    enddo.

    and see to that all the time it is printed to one spool write that text where ever u want in script..

    Edited by: S.r.v.r.Kumar on Jun 18, 2008 4:44 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 18, 2008 at 11:17 AM

    Hi!

    In the SD module, during printing you can see a line in the driver progra, like this:

    DO nast-anzahl TIMES.

    ...

    ENDDO.

    Here the nast-anzahl field contains the number of the copies.

    If you give 3 in the copies number, the program will run 3 times.

    You just have to define a global variable, and increase it by 1 within the DO...ENDDO.

    CLEAR gv_copy_nr.

    DO nast-anzahl TIMES.

    ADD 1 TO gv_copy_nr.

    ...

    ENDDO.

    Regards

    Tamá

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 18, 2008 at 01:25 PM

    Ranjith,

    Printing number of copies can be fixed thru configuration for the output type you are using for printing .

    And then u can use the nast table field which holds the number of copies and the use the field to display the required text .

    You have to configure the Message output type for number of copies.

    Regards...

    Add comment
    10|10000 characters needed characters exceeded