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

Former Member
0 Likes
432

Hi All,

I hv a doubts in BAPI ?.

1. How to upload PO data into sap system with BAPI ? and send me information about that with coding.

2.what is this bapi function module do 'BAPI_MATERIAL_SAVEDATA' ?.

3. How to find out bapi's to realted perticular t'code.?

4.How many type's bapi's there in sap.?

bye.

Thanks and Regards.

Srinivas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
406

BAPI (Business Application Programming Interface) is an API method of a business object which intern is a RFC enabled Function Module.

Business Objects are the Objects which has business sence associated to it. Ex. Sales Orders, Purchase Orders etc.

The Properties of BAPI are:

Every BAPI name should start with letters 'BAPI'.

It is an API method of a Business Object.

it does not contain a internal COMMIT statement in the Function Module.

It does not contain "CALL TRANSACTION" statements.

BAPI do not raise 'EXCEPTIONS'.

a RETURN structure is defined as an interface parameter of a BAPI which is used to log all the errors, warnings and the successful processes tha are triggered in the course of execution of a BAPI.

A successful execution of a BAPI requires the data to be commited and this process of performing a COMMIT is achieved by calling the BAPI_TRANSACTION_COMMIT' explicitly if there are no errors logged in the RETURN structure.

There are two types of BAPI's: Instance Dependent & Instance Independent.

BAPI provides an access to the SAP system for external applications to have the business data processed in the form of web services. When BAPI's are used to post the data in SAP system these are used as Function Modules.

For Sales order:

Check these BAPI

BAPI_SALESORDER_CHANGE

BAPI_SALESORDER_CREATEFROMDAT2

for Purchase Order:

check these combination

1) BAPI_PO_CREATE

2) BAPI_TRANSACTION_COMMIT

Reward points if useful.

3 REPLIES 3
Read only

Former Member
0 Likes
407

BAPI (Business Application Programming Interface) is an API method of a business object which intern is a RFC enabled Function Module.

Business Objects are the Objects which has business sence associated to it. Ex. Sales Orders, Purchase Orders etc.

The Properties of BAPI are:

Every BAPI name should start with letters 'BAPI'.

It is an API method of a Business Object.

it does not contain a internal COMMIT statement in the Function Module.

It does not contain "CALL TRANSACTION" statements.

BAPI do not raise 'EXCEPTIONS'.

a RETURN structure is defined as an interface parameter of a BAPI which is used to log all the errors, warnings and the successful processes tha are triggered in the course of execution of a BAPI.

A successful execution of a BAPI requires the data to be commited and this process of performing a COMMIT is achieved by calling the BAPI_TRANSACTION_COMMIT' explicitly if there are no errors logged in the RETURN structure.

There are two types of BAPI's: Instance Dependent & Instance Independent.

BAPI provides an access to the SAP system for external applications to have the business data processed in the form of web services. When BAPI's are used to post the data in SAP system these are used as Function Modules.

For Sales order:

Check these BAPI

BAPI_SALESORDER_CHANGE

BAPI_SALESORDER_CREATEFROMDAT2

for Purchase Order:

check these combination

1) BAPI_PO_CREATE

2) BAPI_TRANSACTION_COMMIT

Reward points if useful.

Read only

dhruv_shah3
Active Contributor
0 Likes
406

Hi,

1) To upload the data first you have to find the respective BAPI. Then either you have to flat file which has the data.

Also you have to create the RFC Destination for it.

2) For 'BAPI_MATERIAL_SAVEDATA' , go to se37 and view the Import, export parameters of it. Also click the Function Module Documentaion in the Application Tool Bar, you will get the Better Idea.

3) BAPI's are Asynchronous and Synchronous. Also BAPI should be RFC Enabled.

Regards,

DS