Application Development 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: 

Accessing global variables in a BAdI

Former Member
0 Kudos

How can we access the global variables of a program from a BAdI ?The BAdI does not have that particular variable as a part of it's importing/exporting parameter.The BAdI gets triggered at a particular point in the program.The name of the BAdI is /SAPAPO/SDP_SELECTOR and the transaction is /SAPAPO/SDP94(Demand Planning: APO).

Thanks,

Savitha

1 REPLY 1

Former Member
0 Kudos

HI,

When you try to implement this BADI in SE19 , it will create one class such as ZCL_IM_TEST and go to the class. In the attribute tab define your global variable and it will be access to all the Methods of the BADI and define as Public.

Thanks

Lincon