Quantcast
Channel: SCN : Blog List - ABAP Development
Viewing all articles
Browse latest Browse all 943

~ To Print Different Pages in Smartforms using Command ~

$
0
0

Hey There


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.

                         Img1.png


Step 2.  Create Main Window inside both the Pages (with both Dimensions) :

                                                                   Page1 – Main Window

      Img2.png

     

                                                                  Page2 – Main Window

    Img3.png

 

 

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.

                                           

                                                            Img4.png

 

1st table Loop : Loop it with  First Internal Table which needs to display on first page.    

                                                       Img5.png

2nd Table Loop:Loop it with Second Internal Table which needs to display on second page.

                                                      Img6.png

3rd Table Loop: Loop it with Third Internal Table which needs to display on second page

                                                     Img7.png


 

Command #1: In attribute Tab, tick the check box and put PAGE 2 as the next page. As shown below :

                                      Img8.png

Command #2: In attribute Tab, tick the check box and put PAGE 2 as the next page. As shown below:

                                                   Img9.png


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 


Stay Awesome

   Romit Raina



Viewing all articles
Browse latest Browse all 943

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>