cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Internal Table in smartforms if Data is Present

former_member182379
Contributor
0 Kudos

Hi,

   I have Design a smartforms which has two internal tables both the tables have different types of data and the layout structure is also different but in case if there is no record in the table I don't want to display that table, in present case system is displaying the header of that tables if there is no line items in that How to avoid this in case table is empty. I have try by adding the field in where condition in the data tab, by checking the the field is present or not but it is not working.

regards,

zafar

Accepted Solutions (1)

Accepted Solutions (1)

former_member200345
Contributor
0 Kudos

Hi, Count the lines of the internal table by using DESCRIBE TABLE statement and use the variable in the where conditions of the HEADER -> LINE of the TABLE.

Answers (1)

Answers (1)

former_member213851
Active Contributor
0 Kudos

Hi Zafar,

Please put condition on the Text node such taht Text node will be printed only if Internal table is nor Initial.

or,

simply count no of records using Describe stmt in variable gv_count and put condition such that :  gv_count > 0  then only print Text in output.