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 - Methods and Events

Former Member
0 Likes
863

Hi Experts,

Can you tell me know what is the difference between Methods and Events in BAPI?

Regards

Dinesh

4 REPLIES 4
Read only

Former Member
0 Likes
609
Read only

former_member212005
Active Contributor
0 Likes
609
Read only

Former Member
0 Likes
609

Hi,

Methods are like function modules to carry out a certain process of the business object.

Say for example for business object BUS2075-Internal order

The method InternalOrder.Create basically creates an internal order.

This method is achieved using the BAPI BAPI_INTERNALORDER_CREATE.

An event is something which is triggered after processing certain method of the object.

Say for example in business object BUS2032 Sales Order

we have the event SalesOrder.CREATED.

It will be triggered once the sales order has been created.

Please check teh following link for more details.

[http://help.sap.com/saphelp_47x200/helpdata/en/7e/5e11a84a1611d1894c0000e829fbbd/frameset.htm]

Regards,

Ankur Parab

Read only

Former Member
0 Likes
609

Dear Dinesh,

I will explain u in simple terms...

Methods- here u write ur code

Event- this is used for trigerring.

for example:

when u create a material in mm0, u can trigger workflow automatically through the event.

After the event got executed, u may call the method 'zupdate' (for eg) to update ur z table.

Hope u r clear now..

kind regards

Sajid.