cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms: How to clear the header of the internal table in node TABLE

Former Member
0 Kudos

Dear all

I have used a node TABLE in main window of SSF page .

in that TABLE => DATA tab i have some thing like

T_ITEM INTO WA_ITEM .

now the problem is its repeating the just immediate previous header content in printing if few fields are blank for the next record. So i need to clear WA_ITEM everytime i SSF prints a new Line Item in the Table part in my mian window.

I hope i hav explained completely .

Thnx

Moni

Message was edited by: md monirujjaman

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear monirujjaman!

Try the statement

CLEAR WA_ITEM .

hope it serves the purpose.

ZAHID

Former Member
0 Kudos

there should not be a need to clear the header of the internal table , as you might be doing something as:

LOOP AT table to workarea.

so if table record is blank , workarea will have blank values and not previous record values. Only after the last record is processed, you might have to clear work area for residue values.

Regards,

Subramanian V.

Former Member
0 Kudos

Dear Venkat

How do i clear the header ? in my driver program i cant do anything with that WA_ITEM ?

plz let me know

Thnx

Moni

Former Member
0 Kudos

You don't have to do anything in your print/driver program. In the SMARTFORM, when you created node type - Tables, you would have mentioned:

LOOP AT TABLE INTO WA.

As far as I see, there is no requirement at all to clear the work area, until the entire table is traversed.

Regards,

Subramanian V.

Former Member
0 Kudos

Dear Venkat

I m using one Table Type which i m passing it 2 SSF via form Interface .

So its repeating the values , i think

Thnx

Moni