Skip to Content
avatar image
Former Member

Problem in smartforms

Hi Guru's,

I am looping one internal table. In my itab iam having 10 records, I want to print all 10 records in form .

for example :



CALL FUNCTION 'FI_PRINT_ZTERM'
 EXPORTING
   I_ZTERM               = WA_EKKO-ZTERM
   I_LANGU               = SY-LANGU
   I_XT052U              = 'X'
*   I_T052                =
  TABLES
    T_ZTEXT               = IT_ZBTXT
          .

LOOP AT IT_ZBTXT INTO WA_ZBTXT.
  CASE SY-TABIX.
    WHEN 1.
      CONCATENATE 'TERM' '1' INTO TERM.
    WHEN 2.
      CONCATENATE 'TERM' '2' INTO TERM.
    WHEN 3.
      CONCATENATE 'TERM' '3' INTO TERM.
    WHEN 4.
      CONCATENATE 'TERM' '4' INTO TERM.
    WHEN 5.
      CONCATENATE 'TERM' '5' INTO TERM.
    WHEN 6.
      CONCATENATE 'TERM' '6' INTO TERM.
    WHEN 7.
      CONCATENATE 'TERM' '7' INTO TERM.
    WHEN 8.
      CONCATENATE 'TERM' '8' INTO TERM.
    WHEN 9.
      CONCATENATE 'TERM' '9' INTO TERM.
    WHEN 10.
      CONCATENATE 'TERM' '10' INTO TERM.
  ENDCASE.

  READ TABLE IT_ZBTXT INTO WA_ZBTXT WITH KEY TERM.

  IF SY-SUBRC EQ 0.
*     V_TEXT1 = WA_ZBTXT-TEXT.
     MODIFY IT_ZBTXT FROM WA_ZBTXT index sy-tabix.
  ENDIF.

  TERM =  ' '.

ENDLOOP.

in debugging i am getting 10 records but in Form's Text node i am getting only last record.

In Text node i have given like &WA_ZBTXT-TEXT&.

Thanks in Advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 22, 2010 at 10:07 AM

    Hi,

    Where you are displaying the internal table.In main window?

    Loop the internal table in the main window and clear work area after modifying the internal table.

    Regards,

    Rajesh.

    Add comment
    10|10000 characters needed characters exceeded