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

calling another method from current method in badis

Former Member
0 Likes
1,187

hi experts,

I did an implementation for a method in badi say for material_check method.So just for my confirmation, what i did is i called another method from the cureent method(implemented).its displaying an error message with 'zxyz(called method) is unknown or protected or private'.so how can i achieve this??? and also how can i check weather the method is a public/private/protected in se18.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
882

Hi Priyank,

Based on the interface in the BAdI definition you would be able to call the methods of the BAdI implementation. These methods are generally 'Public' methods.

Incase you would like to call some other method out of the BAdI definition interface, this would result you in error.

To check the methods of the BAdI interface, check for interface in the BAdI in SE18. If you would like to check the methods type then check the BAdI implementation class.

Regards,

George

4 REPLIES 4
Read only

Former Member
0 Likes
883

Hi Priyank,

Based on the interface in the BAdI definition you would be able to call the methods of the BAdI implementation. These methods are generally 'Public' methods.

Incase you would like to call some other method out of the BAdI definition interface, this would result you in error.

To check the methods of the BAdI interface, check for interface in the BAdI in SE18. If you would like to check the methods type then check the BAdI implementation class.

Regards,

George

Read only

0 Likes
882

thank you for such a valuable info.what iam trying to achieve is-

i have created a zimplementation for method material_check and did some coding stuff in zimplementation.so finall i used call method me->zimplementation1(which is also implemented).but its not triggering.

Read only

Former Member
0 Likes
882

solved..

Read only

0 Likes
882

Hi Priyank,

What is the right way to access a different method from another method in the same BADI.

Thanks,

Gopi.