Skip to Content
0
Former Member
Feb 20, 2009 at 10:06 AM

error in vofm routine include?

306 Views

Hi All,

iam writing the following code in the include in VOFM it is giving an error of "Statement is not accessible"

how shall i write the code so that message has to create or not it will deceide.

DATA: it_zmail TYPE STANDARD TABLE OF zmail ,
      wa_zmail TYPE zmail,
      it_KOMKBEA  type KOMKBEA.
      
*     select * from zmail into t_zmail 
      sy-subrc = 4.
      if t_zmail [] is initial.
      if wa_zmail-ekgrp = KOMKBEA-EKGRP and
         wa-zmail-bsart = KOMKBEA-bsart.
         sy-subrc = 0.
         endif.
      endif.
      

Best Regards,

Oorvi