on 05-12-2010 7:47 PM
I have two tables in the MAIN window in smartforms. How do I make sure that the HEADER, MAIN, FOOTER section of each TABLE dont print if that internal table is blank?
Regards,
Salil
Hi ,
Here is the solution, Pls follow the steps,
1. Create a Global variable in Global definition, say w_flag type flag
2. In your window node, Create -> Flow Logic -> Program Lines .. After that, In this node, In genral attributes tab, in Input parameters put following two parameters, w_flag then i_tab (name of your internal table). Here in Output parameters put w_flag only.
In code edityor section put the below code.
clear w_flag.
if i_tab is not INITIAL.
w_flag = 'X'.
endif.
3. Now double click on your I_tab table, In the Conditions tab, put the values as below:
Field name relational operator Com value
W_FLAG = 'X'
Now you table will only print if i_tab has something to print...
Thats all you need...
Regs,
Lokesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.