收到錯誤-不是 SAP 方法中缺少的內部表“OCCURS n”規範


您需要將 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.

更新日期:13-Jun-2020

2K+ 瀏覽

開啟你的 職業

完成課程,獲得認證

開始
廣告
© . All rights reserved.