cancel
Showing results for 
Search instead for 
Did you mean: 

form should print only once

Former Member
0 Kudos

Hi All,

I have done a script for the WC Document,

But now the client requires it to print it only once for a particular document number,

How can we do. Is there any such coding to restrict the print only once per document.

If any knows the solution please post the solution

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Mar 27, 2009 10:40 AM

Accepted Solutions (0)

Answers (4)

Answers (4)

venkatesan_nagiah
Active Participant
0 Kudos

You can control the printing in many ways.

Using Document status:

Check whether the WC document having any status from which you can determine that this document already printer.

Using message control:

If the form is controlled via message control then table NAST having field VSTAT. If the VSTAT is '1' for the OBJKY(ie document number) then you can block printing.

If nothing possible above said then:

If there is nothing like that then you have to create a Z table. Whenever that document is printed , you check record in the z table for this document, if one exists (means already printed) block tahe printing otherwise continue printing. You have code it in the driver program

Former Member
0 Kudos

HI,

You create a zprogram to restrict print out and just check a table TSP03C.

Regards

Ansari

Former Member
0 Kudos

Hi,

just check in the Data Base Table where u are taking the document number from....for the Print Indicators...you can use them for not printing it again.

Regards,

Neha

Former Member
0 Kudos

Hi,

just check in the Data Base Table where u are taking the document number from....for the Print Indicators...you can use them for not printing it again.

Regards,

Neha