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

Kernel BADI

Former Member
0 Likes
637

Hi Experts,

I m trying to work on Kernel BADI's. I have created a custom enhancement Spot that has Custom BADI and Implementation.

when i try to instantiate it in my custom Z program using GET BADI & CALL BADI i get a error stating 'BADI_HDL' is not valid BADI handle (German Error message).

I have defined the BADI_HDL type ref to <BADINAME>.

Any help on solution will be appreciated.

Thanks,

Shilpa

3 REPLIES 3
Read only

Former Member
0 Likes
474

hai shilps,

did u define badi definition or implementation

u have to define the definition and using get and call badi u can call the definitions in ur code

jsut can attach the code whcih u have used to cal in ur program

m.a

Read only

0 Likes
474

hI,

I have defined the BADI definition and Implementation in Enhancement Spot (SE18) and is activated. Also, I have defined the method and activated it too. Problem lies in code.

DATA : BADI_HDL TYPE REF TO ZBADI_TEST.

*

START-OF-SELECTION.

*

GET BADI BADI_HDL

FILTERS

ZFILTER = SPACE.

I get an error saying 'The data type reference using LIKE can be enhanced. Some of these enhancements could cause syntax error'.

Please let me know if you have tried the same procedure.

thanks,

shilpa

Read only

0 Likes
474

hai shilpa ,

did u use filters for ur badi definition

if u used them just chek r u passing the values properly

else just use the statemet

get badi 'badi name'.

regards

m.a