‎2009 Jun 19 6:22 AM
Hi Experts,
Can you tell me know what is the difference between Methods and Events in BAPI?
Regards
Dinesh
‎2009 Jun 19 6:24 AM
Hi,
Events are triggered if a user triggers some action...
Methods are similar to FM where you write your logic to be followed...
Also go through this link:
http://help.sap.com/saphelp_nw04/helpdata/en/71/a8a77955bc11d194aa0000e8353423/frameset.htm
http://www.erpgenie.com/abaptips/content/view/481/62/
http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e99725311d396a80004ac96334b/frameset.htm
‎2009 Jun 19 6:26 AM
Please search before posting these questions...
Please refer the below documentation...you can get all details.
http://help.sap.com/saphelp_nw04/helpdata/en/71/a8a77955bc11d194aa0000e8353423/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/EN/71/a8a77955bc11d194aa0000e8353423/content.htm
‎2009 Jun 19 6:29 AM
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
‎2009 Jun 19 6:48 AM
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.