Skip to Content
0
Former Member
May 28, 2008 at 07:15 AM

BADI help needed

18 Views

Hi ,

In ECC 6.0 , Im creating custom badi 'zbadi' in se18 . Interface name : zbadi_inf ,

impl class : zbadi_imp,

method name : test ,

variable is var type mara-matnr which is exporting .

In program I m calling this badi

my code is :

class cl_exithandler definition load. "Declaration

data exit type ref to Zbadi_inF. "Interface reference

DATA VAR TYPE MARA-MATNR VALUE 'SUNRISE'.

start-of-selection.

call method cl_exithandler=>get_instance "Factory method call

EXporting "Method

exit_name = u2019ZBADIu2019

changing instance = exit.

write:/'Please click here'.

at line-selection.

write:/ 'Original word: ',VAR.

if not exit is initial.

call method exit->TEST "Add-In call

IMPORTING

VAR = VAR.

endif.

write:/ 'Original word: ',VAR.

The program is giving dump . Please tell me why is it giving dump .Im very new to BADIs .

Thanks .