cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORM : Header table text

Former Member
0 Kudos

Hi Frds ,

I have 2 tables for output in a SMARTFORM , and  even when one of the table is empty those header text are getting displayed ..

I tried giving a conditions like if FS_TAB(internal table ) is not equal to empty still not working ...

Please help ,

Bharathi

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member212913
Participant
0 Kudos

Hi Bharathi,

                You can use a folder  and keep condition FS_TAB not initial on folder level and maintain table in folder.so if internal table is initial then execution wont goes into folder so header text will not get print.just let me know the status whether it worked or not..

Regards,

Mahipal.

gaurav_tripathi3
Explorer
0 Kudos

Hi Bharathi,

    

     1) From Driver Program.

     create logic in driver program for Cheking Internal table is empty or not.

             

     IF IT_XYZ is not INITAL.

          pass you values in Internal table

     ELSE.

         flag Ex: 'X' .   " Flag for Header Text

     ENDIF.

      not internal table is empty then you will get flag = 'X.

      you just check this flag value in smartform

        

     if flag = 'X' then Header Text Print and flag = ' ' (blank) then Print internal table values

      2 ) Direct in Smartfroms.

      then as Mr Yogesh suggessted:

     " In the conditions tab of TABLE use 'INITIAL' check for the itab.

       Place a program line (code section) just before your table. put a break-point in it. You can  

       check in debug if the given condition (of 'INITIAL' or "SPACE') is getting satisfied or not."

Regards,

Gaurav

Former Member
0 Kudos

In the conditions tab of TABLE use 'INITIAL' check for the itab.

Place a program line (code section) just before your table. put a break-point in it. You can check in debug if the given condition (of 'INITIAL' or "SPACE') is getting satisfied or not.

Former Member
0 Kudos

Find the number of lines in internal table, capture that value in variable.

use that variable while giving condition at header text.

alex_campbell
Contributor
0 Kudos

Specifying the condition "IF FS_TAB[] <> INITIAL" in the SmartForm's table element should work. Perhaps you can give more details?