Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI and BAPI WRAPPER??

Former Member
0 Likes
465

Hi All,

I would like to know the difference between a BAPI and a BAPI Wrapper in detail.

I would also like to know the procedure to create the various types of BAPI Wrappers- Getlist, GetDetail, Create, Modify and Delete.

Do I need Object oriented ABAP knowledge to create BAPI Wrappers??

regards,

Sunil

2 REPLIES 2
Read only

Former Member
0 Likes
386

HI,

Have a look at these:

All a BAPI Wrapper is, is an Remote enabled FM...

1) General information about SmartSync:

- This is a technical guide for MI 2.5 but I think the concepts of SmartSync are well explained in there (chapter 4) and they are still valid for 7.0. Generic sync is also compared to Smart Sync in this guide.

<<TIG.pdf>>

2)There is some documentation about how to develop mobile applications based on smart sync:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21eba3a7-0601-0010-b982-92f1fca3...

It contains the following links as well.

3) What is a BAPI wrapper?

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile-infrastru...

What types of BAPI wrappers need to be created to fullfill the interface of a SyncBO?

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile-infrastru...

How can you test the BAPI wrappers? (usually in se37)

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile-infrastru...

4) SyncBOs:

How can you define a SyncBO? Especially the part about mapping is important. Basically there is a wizard that creates the structure of the SyncBO in the Middleware from the BAPI's structure. You shouldn't care too much about filtering, it's usually not used as it is rather static.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile-infrastru...

Testing SyncBOs:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile-infrastru...

Read only

Former Member
0 Likes
386

A BAPI wrapper is a function module more or less like a BAPI and follows certain rules to be a BAPI wrapper. Conceptually, a BAPI wrapper has the role of a private method of a business object (SyncBO) and resides in a backend system. That is, a SyncBO in Smart Synchronization calls the BAPI wrapper based on the request from a mobile device. Therefore, it is important that each BAPI wrapper has the parameters expected by Smart Synchronization and behaves as expected by Smart Synchronization. For each business object, up to 5 BAPI wrappers can be created and used:

GetList Returns a list of business object header data based on the selection criteria specified in the Import parameters.

GetDetail Returns one header data as Export parameter out of the header data list based on the object key(s) specified in the Import parameters. It also returns one or more list of item entries associated with the header data.

Create Creates a single business object, and returns object key(s).

Change Modifies the header and/or items of the specified business object. The function needs to replace the entire item data with the entries of Tables parameters

Delete Deletes the specified business object (including the items).

BAPI wrapper is called as such, because it typically wraps an existing standard BAPI. When a standard BAPI is available for the business object of interest, it is strongly recommended to use the BAPI in the BAPI wrapper. This is because SAP guarantees that the interface of BAPIs are stable and they are supported in every version of SAP systems, which results in less maintenance of the BAPI wrapper that uses BAPIs. That is, using BAPIs minimizes the risk to encounter unexpected behavior of a BAPI wrapper due to the changes made in the backend system.

Have a look at below link:

[What is a BAPI Wrapper?|https://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/appdev/smartsync/what_is_a_bapi_wrapper.html]

I hope it helps.

Best Regards,

Vibha

Please mark all the helpful answers