select a~BUKRS a~ebeln a~ekorg a~ekgrp a~bedat b~matnr a~lifnr b~menge b~netpr
          a~FRGZU b~werks b~lgort c~BELNR c~BEWTP c~SHKZG b~EBELP c~BUZEI b~MEINS b~NETWR
          b~KNTTP b~TXZ01 c~budat
          into corresponding fields of table itab
          from ekko as a inner join ekpo as b
          on a~ebeln eq b~ebeln
          left outer join ekbe as c
          on b~ebeln eq c~ebeln and b~EBELP eq c~EBELP
       where a~ebeln in s_ebeln
          and a~ekorg in s_ekorg
          and a~ekgrp in s_ekgrp
          and b~matnr in s_matnr
          and a~bedat in s_bedat
          and b~werks in s_werks
          and a~BUKRS in s_BUKRS
          AND A~FRGZU = P_FRGZU
          AND C~bewtp IN ('E','Q').
语句报错,请大侠看一下问题出在哪?