BAPI - ooxxvv/MySAPnotes GitHub Wiki
PageOutline {{{#!comment -------------------- 以上的部份是固定的,不要變動 ----- --------------------------------------- 在建立連結時,請標明連結的頁面類型,例如:wiki:WikiStart,而不要只用 WikiStart ----- }}}
BAPI
Features
- BAPI => Business Application Programming Interface
- BAPI 的優點
- BAPI 是面向對象的設計
- BAPI 是固定的,一般不能修改
- BAPI 可以被 sap 內部部件和非 sap 程序使用
- BAPI 的成功和錯誤信息始終通過 RETURN 返回
- BAPI 可以被許多開發平台使用
- 何時該考慮使用 BAPI 設計程序
- 用 VB、JAVA 、C++ 等語言編寫非 SAPGUI 程序訪問和處理 SAP 數據
- SAP 不同部件之間通訊
- 與非 SAP 程序或者老系統交換數據
- 使用異步通信分發數據如 ALE
- 可以通過 SAP Business Connector or Internet Application Components 與因特網程序集成
- 關於 RETURN
- RETURN 用於 BAPI 返回錯誤和成功的消息,它可以是 BAPIRETURN, BAPIRETURN, BAPIRET1, BAPIRET2 和 BAPIRET2_FIX 中的一種類型。這些結構一般都包括以下 Fields/ || TYPE || CHAR 1 || S=success message || || || || E=error message || || || ||W=warning message || || || || I=information message || || || ||A=termination message (abort) || || ID || CHAR 20 || Message ID The structure BAPIRET2 takes into account the name space extension for the message class as of Release 4.0. || || || || If you want messages to becompatible with earlier R/3 Releases, use the message classes before Release 4.0. || || NUMBER || NUMC 3 || Message number || || MESSAGE || CHAR 220 || Full message text from the message table. All variables (in fields Message_V1 to Message_V4) have been replaced with text. || || MESSAGE_V1 || CHAR 50 || Fields for the variable texts of the message || || MESSAGE_V2 || CHAR 50 || Fields for the variable texts of the message || || MESSAGE_V3 || CHAR 50 || Fields for the variable texts of the message || || MESSAGE_V4 || CHAR 50 || Fields for the variable texts of the message ||
{{{#!comment
TCODE
TABLE
FUNCTION, PROGRAM & CLASS
USER EXIST
}}}