SAP Tutorials Blog


 


DATA txt_e TYPE c LENGTH 10 VALUE '0123456789'.

TYPES c1 TYPE c LENGTH 1.

FIELD-SYMBOLS <fs_txt_e> TYPE c1.


DO 11 TIMES.

  DATA(off) = sy-index - 1.

  ASSIGN txt_e+off(1) TO <fs_txt_e>.


  IF sy-index < 11.

    ASSERT <fs_txt_e> IS ASSIGNED.

  ELSE.

    ASSERT <fs_txt_e> IS NOT ASSIGNED.

  ENDIF.

ENDDO.



Serkan AKKAVAK

Computer Engineer BSc

Head of SAP & Software Department

Contact : serkurumsal@yandex.com