‎2009 Jun 29 7:50 AM
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
‎2009 Jun 29 8:05 AM
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
‎2009 Jun 29 8:23 AM
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
‎2009 Jun 29 9:08 AM
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