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

Blocking of Multiple SAPScript print outputs

Dear All,

Is there a way where we can stop users from printing a SAPScript Output,if its already printed once...

Regards,

srini

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 10, 2005 at 03:24 PM

    Hi Srini,

    in standard invoice print program (Report RVADIN01) following routine can be found:

    *---------------------------------------------------------------------*
    *       FORM CHECK_REPEAT
    *---------------------------------------------------------------------*
    *       A text is printed, if it is a repeat print for the document.  *
    *---------------------------------------------------------------------*
    FORM check_repeat.
    
      CLEAR repeat.
      CLEAR anzal.
      SELECT * INTO *nast FROM nast WHERE kappl = nast-kappl
                                    AND   objky = nast-objky
                                    AND   kschl = nast-kschl
                                    AND   spras = nast-spras
                                    AND   parnr = nast-parnr
                                    AND   parvw = nast-parvw
                                    AND   nacha BETWEEN '1' AND '4'.
        IF *nast-vstat = '1'.
          anzal = anzal + *nast-anzal.
          repeat = 'X'.
        ENDIF.
      ENDSELECT.
    ENDFORM.                    "CHECK_REPEAT
    

    Variable <i>repeat</i> can be used to add an additional text like 'COPY' or to exit print program without printing second version.

    I guess, this select is not fool proofed - users still might find a way to print twice without your notice, but it's a start. You should have a look at <i>anzahl[/i), too - this variable steers the number of copies and should be set to 1 in your requirement.

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 11, 2005 at 06:28 AM

    Yes it can be done,

    For a example in PM module table/field T392_V-TDCOPIES is used to store number of copies printer.

    Prabhu Rajesh.

    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.