‎2006 Jun 16 8:51 PM
Hi,
i need to pass tables, variables etc. in a BAdi from one method to another. is it a good idea to declare those in public section. i did so and it worked fine. however, when i execute the BAdi it says sytax error though it didnt say anything while syntax check and activation...but it worked fine for my funtionality.
any suggestions.
Thanks,
venu.
‎2006 Jun 16 9:37 PM
Am not sure if your question is declaring the variables and/or passing those to methods (which methods??). Also what do you mean by executing BADI, BADI's are basically enhancements provided by SAP and are executed during some standard transaction(s). Someone can help you if you post more about your problem, which BADI you are trying to enhance and also if you can post the code that would be helpful.
hith
Sunil Achyut
‎2006 Jun 16 9:53 PM
Hi,
my question was about declarations in the public section of a badi. i'm trying to figure out whether is it a deviation of standards to declare in that way or is it ok.
Thanks,
venu
‎2006 Jun 17 12:20 AM
When you implement a BADI, you are basically creating a class that implements the interface and this is a normal class. Your declarations in public section will in no way deviate from standards, atleast I dont think you are deviating.
hith
Sunil Achyut
‎2006 Jun 17 5:44 AM
Open the interface of the badi and go to methods tab there is a button 'Parameters' declare your variable there to use in methods.
Regards,
Wasim Ahmed
‎2006 Jun 17 6:33 AM
do the F2 and F3 in the initial Screen of the BADI not in the Method Screen.
regards
Prabhu