‎2006 Nov 16 10:49 AM
hi,
have anyone worked with function module in BADI.if so plz
let me know how how to do
my current requirment is on that
poits will be rewarded
regards
raj
‎2006 Nov 16 10:52 AM
You have to create a method as part of the BADI.
In the method you can write your own piece of code like a call to the function module.
Rgds
meera
‎2006 Nov 16 10:53 AM
Calling a function module in a badi is just the same as you would call it anywhere else.
for example, you can call it like this:
call function '<FM NAME>......
exporting
.
.
.
importing.
.
.
.
tables
.
.
.
exceptions
.
...
If you want to call in in update task, then call it like this:
call function '<FM NAME' in update task....
exporting
.
.
.
importing.
.
.
.
tables
.
.
.
exceptions
.
...
REgards,
Ravi
‎2006 Nov 16 10:54 AM
Hi,
Are you talking about implementing a BAdI and its methods or calling some other FMs inside these methods?
Regards,
Shikha
‎2006 Nov 16 10:54 AM
Hi Raj,
check out these links
http://help.sap.com/saphelp_erp2005/helpdata/en/a3/1d40425c459923e10000000a155106/frameset.htm
BAdI(Business Addins) are enhancement techniques using Object Oriented Technique.
Users of BAdI can customize the logic according to the specific requirements (User-defined) or use the standard logic available.
Each Business Add-In has
At least one BAdI definition
A BAdI interface
A BAdI class that implements the interface
For User-defined BAdI,
developer creates an interface for the add-in.
Enhancement management creates an adapter class that implements the interface
Developer creates an instance of the class in the application program and calls the corresponding methods.
For standard BAdI, interface and class will be predefined by SAP.
Adapter class performs these tasks
Control ( the class calls all active implementations)
Filtering (If the Add-in has to be executed under certain conditions, the class ensures that only certain implementations are executed)
‎2006 Nov 16 11:15 AM
Hi Raj,
you can call the FM inside the BADI method, in a normal way as you call the FM in reports etc...
Regards
Vijay