- 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
您可能关注的文档
最近下载
- HG20627-2009钢制管法兰用非金属平垫片CLASS系.pdf VIP
- 儿童泌尿系感染的诊断和治疗.pptx VIP
- 精益生产精益生产之现场.ppt VIP
- 医用耗材管理专家共识.pptx VIP
- 安徽财经大学《微积分(下)》2025-2026学年第一学期考试试卷(B)卷.docx
- 2025年长沙电力职业技术学院单招职业技能测试题库(含各地真题精选).docx VIP
- 药品新版GMP试题大全.docx VIP
- AP物理C电磁 2013年真题 (选择题+问答题) AP Physics Electricity and Magnetism 2013 Real Exam and Answers (MCQ+FRQ).pdf VIP
- 带式输送机驱动滚筒和头架有限元分析及参数化设计.pdf VIP
- 肺结节中西医融合诊疗专家共识解读要点.pptx VIP
原创力文档

文档评论(0)