Application Development 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: 

regarding context-dependent BAdIs ?

Former Member
0 Kudos

Dear all:

First thank you for your help

What is context-dependent BAdIs ? any other badis?

couldn't thank you more.

Your truely

Frank

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Context Dependent BADIs:

It makes sense to bind a BAdI to a context only if the same BAdI is called several times and has instance methods. The context guarantees that an already instantiated implementation class is reused provided that the same context is transferred. If the implementation uses local data, it is kept.

· If a BAdI interface contains only static methods, you have to, for performance reasons, always use a non-context-dependent BAdI with instance reuse.

· If a BAdI is used only once in an internal session, you should again, for performance reasons, always use a non-context-dependent BAdI with instance reuse.

· In all other cases, you must use a non-context-dependent BAdI without instance reuse.

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

1 REPLY 1

Former Member
0 Kudos

Hi,

Context Dependent BADIs:

It makes sense to bind a BAdI to a context only if the same BAdI is called several times and has instance methods. The context guarantees that an already instantiated implementation class is reused provided that the same context is transferred. If the implementation uses local data, it is kept.

· If a BAdI interface contains only static methods, you have to, for performance reasons, always use a non-context-dependent BAdI with instance reuse.

· If a BAdI is used only once in an internal session, you should again, for performance reasons, always use a non-context-dependent BAdI with instance reuse.

· In all other cases, you must use a non-context-dependent BAdI without instance reuse.

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.