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

Question on BADI implementation

Former Member
0 Likes
1,236

Hi Experts,

I have a standard BADI and I have multiple implementations for this BADI, for suppose if there are 5 implementations and if I want to control the order of 5 implementations.

Like 5 implementations are present and I want one implementation to be executed first and remaining 4 implementations to be executed next. How can I control the order for implementations.

As far as my knowledge I dont think we can control the order for implementation for a BADI.

Thanks,

RG

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
936

Depending on BAdI type:

  • Classical BAdI, create an implementation of BADI_LAYER (ref: Sorting Classic BAdI Implementations) then attach it to BAdI thru SE18 menu : utilisties, sort.
  • Enhancement Framework, create an implementation of enhancement spot BADI_SORTER (ref:Calling BAdIs) add the Enhancement you want to sort in the filter of the BAdI implementation.

Regards,
Raymond

3 REPLIES 3
Read only

Former Member
0 Likes
936

By Applying Sort Method you can execute the BADI'S in any order.

GO to SE18 transaction code and Utilities>Sort, where in Interface Tab we can give the list of implementations in a
order.
What ever the order we are maintaining in that order the BADI implementations will execute.

I hope this will solve your problem.

Read only

0 Likes
936

Thanks for the reply

Read only

RaymondGiuseppi
Active Contributor
937

Depending on BAdI type:

  • Classical BAdI, create an implementation of BADI_LAYER (ref: Sorting Classic BAdI Implementations) then attach it to BAdI thru SE18 menu : utilisties, sort.
  • Enhancement Framework, create an implementation of enhancement spot BADI_SORTER (ref:Calling BAdIs) add the Enhancement you want to sort in the filter of the BAdI implementation.

Regards,
Raymond