‎2021 Feb 11 6:20 AM
I'M trying to implement a classic badi to divide 2 numbers. While defining methods i gave 2 importing parameters and 1 exporting parameter. While activating this BADI a popup displays that Interface for BAdI definition is not valid and changes will be made. The declaration type of 'exporting' parameter changes to 'changing' parameter which gives me a run time error while calling the method in SE80 program. Ss for references attached.
‎2021 Feb 11 7:06 AM
well, if it is a changing parameter now, use changing when calling badi:
Call badi ... ( ...
changing e_result ).
PS: in case of modern BADIs, you can use exporting/returning only if it is a single-use BADI. if several BADI implementations can be called after oneanother (multiple use), then only CHANGING parameters can be used to "produce the result".
It's a very long time ago I defined a classic BADI (did I ever? if I did, then only for excercise purpose), but assume that something very similar is happening here.
‎2021 Feb 11 7:06 AM
well, if it is a changing parameter now, use changing when calling badi:
Call badi ... ( ...
changing e_result ).
PS: in case of modern BADIs, you can use exporting/returning only if it is a single-use BADI. if several BADI implementations can be called after oneanother (multiple use), then only CHANGING parameters can be used to "produce the result".
It's a very long time ago I defined a classic BADI (did I ever? if I did, then only for excercise purpose), but assume that something very similar is happening here.