BAPI详细讲解.docVIP

  • 88
  • 0
  • 约1.2万字
  • 约 25页
  • 2015-09-13 发布于重庆
  • 举报
BAPI详细讲解,sapbapi,abapbapi,bapi.dll,创建销售订单bapi,bapigoodsmvtcreate,bapipocreate1,sapbapi接口的实现,adbwinusbapi.dll,sapbapi查找

BAPI Step by Step Example About the example This BAPI reads system status for a production order from table JEST and system status text from table TJ02T ? Name ZGetOrderStatus Function group ZBAPISTATUS Function module: Z_BAPI_GET_ORDER_STATUS Import parameters: ORDER_STATUS_IMPORT type ZBAPI_ORDER_STATUS_IMPORT: AUFNR Order number (Keyfield) SPRAS Language ExcludeInactive - Checkbox - Exclude inactive status Tables T_BAPISTAT type ZBAPISTAT: OBJNR like JEST-OBJNR STAT like JEST-STAT INACT like JEST-INACT TXT04 like TJ02T-TXT04 TXT30 likeTJ02T-TXT30 Export parameters RETURN like BAPIRETURN ? STEP 1 - Define a structures for the BAPI ? In this step a structures for the parameters and tables of the function module used for the BAPI are defined. Use Data type - Structure Define the following structures: ZBAPI_ORDER_STATUS_IMPORT which contains the following fields: ORDERID Order number (Keyfield) SPRAS Language ExcludeInactive - Checkbox - Exclude inactive status ZBAPISTAT: OBJNR like JEST-OBJNR STAT like JEST-STAT INACT like JEST-INACT TXT04 like TJ02T-TXT04 TXT30 likeTJ02T-TXT30 ? Important note: You will have to define a structure for every parameter in the BAPI. You cannot use the same structures used in existing applications because BAPI structures are frozen when BAPIs are released and then there are restrictions on changing them. ZBAPI_ORDER_STATUS_IMPORT ? ? ZBAPISTAT ? ? STEP 2 - Write Function Module Important notes: Each BAPI must have its own function group. Under the attributes tab remember to select Processing Type Remote Enabled module, otherwise the function module cannot be invoked via RFC and used as a BAPI Import/Export parameters can only be BY VALUE for an RFC enabled function module We are only creating one BAPI in this example, but you can create related BAPIs in the same function pool, so they will be able to share global data. ? Attributes Import Parameters ? Export Parameters ? Tab

文档评论(0)

1亿VIP精品文档

相关文档