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

Global variable in BADI methods..

Former Member
0 Likes
1,441

Hi,

How can i declare a global variable in BADI method ,for example " Count type I".Can any one let me know ...

Regards,

Veera

2 REPLIES 2
Read only

Former Member
0 Likes
657

Hi,

BADI is a just an interface definition that needs to be implemented by the customer. The final implementation of a BADI is always found in a class.

You can define the variable as attribute and static if you want it to be accessed by all objects.

I hope this answers your question

Regards,

Saurabh

Read only

Former Member
0 Likes
657

Hi Veerachamy ,

Goto SE19 -> enter your BADI name.

goto the interface name.

Double click on " Name of implementing class: ".

go to the attributes tab. Here you can add the variable.

&********Reward Point if helpful***********&