2011 Nov 26 7:19 AM
Hello Folks,
I am writing code in a badi but some part of code is repeating, as there is no provision for creating perform statements, I would like to create a method and put the code in that method so that the code in the badi will look modularized.
But i don't have much idea on how to do this.
Can anyone help me how we can do it.
Thanks for your help.
Regards,
Raj
2011 Nov 26 7:37 AM
Hi,
This should be very straight forward,
when you go to transaction SE19 with a particular BADI, then you can find a class attached to that BADI starting with Z, go into the class in edit mode, and add a method u want and then code it to your need. and you can call the same method from any of your BADI method with CALL METHOD me->xyz.
Regards,
Prasanna
Hello Folks,
I am writing code in a badi but some part of code is repeating, as there is no provision for creating perform statements, I would like to create a method and put the code in that method so that the code in the badi will look modularized.
But i don't have much idea on how to do this.
Can anyone help me how we can do it.
Thanks for your help.
Regards,
Raj
2011 Nov 26 7:26 AM
Hi ,
YOu can add your condition when to execute Code .
using IF endif.
regards
Deepak.
2011 Nov 26 7:37 AM
Hi,
This should be very straight forward,
when you go to transaction SE19 with a particular BADI, then you can find a class attached to that BADI starting with Z, go into the class in edit mode, and add a method u want and then code it to your need. and you can call the same method from any of your BADI method with CALL METHOD me->xyz.
Regards,
Prasanna
2011 Nov 26 8:19 AM
Thanks Prasanna.
I will check and and let You know..
Regards,
Raj
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |