Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A


Hi all,

I'm trying to print data in smartform. In my table there are some repeated values. So I want to avoid those repeated values. But if it's in new page I wanna repeat it. Avoid repeated values using a program line before print the table data. Here is the code..

IF p_no_prv <> wa_itab-index_no OR p_new_page <> sfsy-page.

   p_no_prv   = wa_itab-index_no.

   p_new_page = sfsy-page.

   p_no   = wa_itab-index_no.

   p_code = wa_itab-code.

   p_size = wa_itab-tsize.


   CLEAR: p_no, p_code, p_size.


I try to identify the new page using 'sfsy-page'. But the problem is it's repeating in 2nd line of the new page insted of 1st line.

Please help me.

See the output below..


Not what you were looking for? View more on this topic or Ask a question