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

function module in BADI

Former Member
0 Likes
1,976

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,012

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

Read only

Former Member
0 Likes
1,012

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

Read only

Former Member
0 Likes
1,012

Hi,

Are you talking about implementing a BAdI and its methods or calling some other FMs inside these methods?

Regards,

Shikha

Read only

Former Member
0 Likes
1,012

Hi Raj,

check out these links

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb9...

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)

Read only

Former Member
0 Likes
1,012

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