~ To Print Different Pages in Smartforms using Command ~
After hearing lots of Questions about “how can we print the data to the next page based on the certain condition?”
So here is the answer -> Use Command in the Smartforms.
Now question is how we can use the Command so that we can achieve our requirement?
Below are the step by step detail which will help you to Use Command functionality correctly.
Example: This Example shows you how you can print the 3 different Internal Tables data in 3 Different Page.
Step 1. Create the Form having 2 Pages.
Step 2. Create Main Window inside both the Pages (with both Dimensions) :
Page1 – Main Window
Page2 – Main Window
Step 3. Inside the Main Window of first page create 3 Tables and 2 Commands:
Three tables are for 3 different internal tables which we want to show in three different Pages. Also set the attributes of the Command.
1st table Loop : Loop it with First Internal Table which needs to display on first page.
2nd Table Loop: Loop it with Second Internal Table which needs to display on second page.
3rd Table Loop: Loop it with Third Internal Table which needs to display on second page
Command #1: In attribute Tab, tick the check box and put PAGE 2 as the next page. As shown below :
Command #2: In attribute Tab, tick the check box and put PAGE 2 as the next page. As shown below:
Try COMMAND in your smartform to print different details in different pages.
From the Main Window of first page we can hold the data to print in next below pages.
Note: – Things that need to take care is that Main Window of each Page should be of Same Width.
🙂 Keep Learning 🙂