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

BAdi

Former Member
0 Likes
593

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.

5 REPLIES 5
Read only

Former Member
0 Likes
562

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

Read only

Former Member
0 Likes
562

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

Read only

0 Likes
562

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

Read only

dani_mn
Active Contributor
0 Likes
562

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

Read only

Former Member
0 Likes
562

do the F2 and F3 in the initial Screen of the BADI not in the Method Screen.

regards

Prabhu