出现错误- 不是内部表SAP方法中缺少“ OCCURS n”规范
您需要定义类型为SFLIGHT的et_flights参数。根据定义的方法,您具有此类型作为结构类型,并且还同时声明了透明表SFLIGHT。
对于et_flight,应使用具有SFLIGHT行结构的现有字典表类型。
您应该在类定义中的方法内部将et_flights声明为私有成员或方法的返回值。
class myclass definition.
public section.
types ty_mytable type standard table of sflight.
methods mymethod exporting mydata type ty_mytable.
endclass.
class myclass implementation.
method mymethod.
select * from sflight into table mydata.
endmethod.
endclass.