BAPI BASICA CONCEPT

1, BAPIs Must not contain call transaction or submit report.

2, BAPI structure must not use includes or append.

3, BAPIs should not use dialogs.

4, Asynchronous BAPIs use the ALE interface in this way:
.Creates an IDOC from the BAPI data
.Sends the IDOC to the target system
.Receives the IDOC in the target system, create the BAPIs data from the IDOC and the BAPI.
.An ALE interface for a BAPIs is created in transaction BDBG.

5, Programming a BAPI consists of follow major tasks:
.Defining BAPI data structrues in se11.
.Program a RFC enabled BAPI function module for each method.
.Create a Business object for the BAPI in the BOR.
.Documentation the BAPI.
.Generate ALE interface for asychronous BAPIS.
.Generate and release.

6, Each BAPI must have its own fuction group. we would create related BAPIs in the same fuction pool. so they will by able to share global data.


7, Step by step to create BAPI.
.Define a structure for the BAPI.
.Write Function Moudle
.create the API Method Using the BAPI wizard.
.Final steps.
.Release the BAPI function module(in the function builder).
.Release the business object type(in the BOR objecttype->implemented).
.Release the BAPI as a mehtod in the BOR.
.For potential write BAPIS: Release the IDOC and its segments.


8, Every BAPI must have a return parameter that is either an export parameter or an export table


9, Every BAPI must have an extensionln and an extensionout parameter to enabel customer enhancements.


10, In BAPI technical conventions: All data elements for date fields have the format yyyymmdd


11, You cnanot use exceptions in a BAPI. Instead, all error messages are returned to the calling program using the standardized parameter RETURN.


12, The documentation developer then saves the active version of the function module and parameter documentation(otherwise the documentation cannot be translated).


13, BAPIS are not end user interfaces, they are programming interfaces that can be used in diverse application areas.


14, In generally, all R/3 currency data types have two digits after the decimal point.


15, If buffering has benn implemented for a business object type,all write BAPIs of this business object type must also be implemented with buffering.


16, BAPIs with buffering must not execute commit work or rollback work commands.


17,About BAPI Replicate(), Calling the SaveReplicate() methods in the receiving system.


18, About BAPI message, Note that for type A error messages(abort), an application log is not created, as in this case there is no commit work.


19, For sap internal development, each enhancement to a BAPI must be created in a project in the BAPI explorer.

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/588201/viewspace-903071/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/588201/viewspace-903071/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值