Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding SmartForms

Former Member
0 Likes
469

Hi,

I have one table to get printed.

It's header line fields are some a b c and so on.

And If the table don't have any rows in it , then it should not get printed(header line also).

How this will happen?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
448

If you are looping through your internal table in the DATA tab of your table node, then the header shouldn't print if there are no lines in your internal table.

You can also use the Conditions tab of your table node.

itab[] <> INITIAL.

3 REPLIES 3
Read only

Former Member
0 Likes
448

hi,

Try using describe statement in program lines node of smartform and set a variable to 'X'. Specify this variable in the output conditions of table node in smartforms.

If you have not achieved with the above, try with this.

Check whether there are entries in the table by using describe statement in your driver program. Based on it, set a flag variable (V_rec_exist). Pass this value to the Function module. In output conditions of table, check whether v_rec_exist is 'X' or not.

Regards,

Sailaja.

Read only

Former Member
0 Likes
449

If you are looping through your internal table in the DATA tab of your table node, then the header shouldn't print if there are no lines in your internal table.

You can also use the Conditions tab of your table node.

itab[] <> INITIAL.

Read only

Former Member
0 Likes
448

Hi,

While defining your header in smartform , there is a tag with Conditions,there you can give the required condition.