Application Development 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: 

Which BAPI to be used?

former_member204370
Participant
0 Kudos

Hi

I am little confused with duplicate BAPIs.

For example, PurchaseRequisition has two BAPIs for creating a record -->

     CreateFromData = "bapi_requisition_create" and

     CreateFromData1 ="bapi_pr_create"

It is the case for few other Business objects. And these "new" BAPIs are titled additionally as "Enjoy ......" in some cases.

When i look at version info, it indicates that the new BAPI (ending with 1) are from latest versions.

Can someone throw light on which BAPIs should be used in which case?

Thanks, Ram

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi 

Ganapathi Ram ,

The latest versions of BAPI include much enhanced features and capabilities of the functionalaties.

As per my knowledge it is recommended to use the BAPI which is latest version. Because it can meet the recent updated functionalities. Even though CreateFromData and

CreateFromData1 does similar functionality , CreateFormData1 has additional capability .

Hope this helps

3 REPLIES 3

Former Member
0 Kudos

Hi,

If you find th eDuplicate  BAPI check the Release  Version and use accordingly.

1. Create from data

2. Create from Data1

Thanks

Pavan.N

Former Member
0 Kudos

Hi 

Ganapathi Ram ,

The latest versions of BAPI include much enhanced features and capabilities of the functionalaties.

As per my knowledge it is recommended to use the BAPI which is latest version. Because it can meet the recent updated functionalities. Even though CreateFromData and

CreateFromData1 does similar functionality , CreateFormData1 has additional capability .

Hope this helps

nabheetscn
Active Contributor
0 Kudos

Basically As SAP is also evolving like Enjoy transactions are coming same way these BAPI are also getting adapted. Reagrding your question related to

CreateFromData = "bapi_requisition_create" and 

     CreateFromData1 ="bapi_pr_create"  I have used both of them and found that one of the BAPI trigger implicit commit.