遇到的錯誤-內部表“OCCURS n”規範在 SAP 方法中缺失


你需要將 et_flights 引數定義為 SFLIGHT 型別。根據定義的方法,你將這種型別作為結構型別,同時還要宣告透明表 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.

更新日期:2020-06-13

2000+ 瀏覽量

啟動您的職業生涯

透過完成本課程獲得認證

開始
廣告
© . All rights reserved.