0% found this document useful (0 votes)
1K views

Smartforms Demo On Copies Window (Real Time Scenario)

This document provides instructions for creating a smart form that prints different text on copies of a document based on the copy number. It describes how to: 1) Create a secondary "Copies Window" to display copy-specific text. 2) Use the SFSY-COPYCOUNT variable to determine the current copy number. 3) Define a string variable to hold the copy type text based on the copy number. 4) Add program logic to set the string variable value for each copy number. 5) Insert the string variable into the Copies Window to display the appropriate copy text.

Uploaded by

Kabil Rocky
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Smartforms Demo On Copies Window (Real Time Scenario)

This document provides instructions for creating a smart form that prints different text on copies of a document based on the copy number. It describes how to: 1) Create a secondary "Copies Window" to display copy-specific text. 2) Use the SFSY-COPYCOUNT variable to determine the current copy number. 3) Define a string variable to hold the copy type text based on the copy number. 4) Add program logic to set the string variable value for each copy number. 5) Insert the string variable into the Copies Window to display the appropriate copy text.

Uploaded by

Kabil Rocky
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Demo on Copies Window (Real time scenario)

Scenario: To print three copies of a particular document and the first copy should mention as Customer copy, second one as Bank copy and the third one say College copy. Create a Smart Form using the transaction SMARTFORMS. In this demo, we would print in the Copies window whether it is bank copy, company copy or others. Create a secondary window as shown below:

Select Window type as Copies Window as shown below:

Also name your window and give it a proper description. Do not change any other settings.

Adjust the window size using the Form Painter available on the application toolbar.

The variable SFSY-COPYCOUNT would provide us count of the copy whether it is a first copy, second copy and others. We would use this field to print the owner of the copy. We would define a string, which would hold the name of the copy (bank copy and others) depending on the value of SFSY-COPYCOUNT. Define a variable in the global definition as shown below:

Now select your Copies window, right click Select Create Flow Logic Program Lines

Enter the following code:

Do not forget to enter the variable TEXT in the output parameters. Now create a text by selecting the Copies window, right click Create Text. In this, just enter the field name as shown below by selecting insert field.

Now include a text in the Main window as well with some content.

Save and activate. Test your Smart Form. In the print preview screen, enter the number of copies as 3

Check the output:

You might also like