11-22-2010 6:44 AM
when I debug the cl_exithanler=>get_instance, I found that it returns the class name as: CL_IM_EX..., not the implementation class name begin with: ZCL_IM... which is created by me. So when does the BADI implementation class really initialize?
11-22-2010 10:41 PM
Hello
You can find this out by a simple trick. Prerequisite is an active implementation of your BAdI.
Add method CONSTRUCTOR to your Z-class that implements the BAdI interface. Put a break-point (BREAK <sy-uname>.) into this method.
Execute the transaction which passes the BAdI.
Regards
Uwe
11-22-2010 10:41 PM
Hello
You can find this out by a simple trick. Prerequisite is an active implementation of your BAdI.
Add method CONSTRUCTOR to your Z-class that implements the BAdI interface. Put a break-point (BREAK <sy-uname>.) into this method.
Execute the transaction which passes the BAdI.
Regards
Uwe
11-24-2010 1:57 AM
It seems that the detail was encapsulated in the keyword CALL BADI
Edited by: yanluckly on Nov 24, 2010 3:09 AM
11-24-2010 2:24 AM
Hi Uwe,
why it can pass the compile:break <sy-uname>
I haven't seen this statement before.
11-24-2010 2:51 AM
Oh I see, It's a macro.
how could I use it if my user id contains '.', such as yuan.gan,
both break yuan.gan.
break 'yuan.gan'.
are wrong.
11-24-2010 6:49 AM
In that case try BREAK-POINT or BREAK-POINT ID <Checkpoint Group>.
In the former the breakpoint is always active & for the latter it depends on the settings of the checkpoint group(trxn. SAAB). Read the F1 documentation on BREAK-POINT to get the details.
BR,
Suhas
11-24-2010 8:04 AM
Hello
When I use <sy-uname> it simply means to replace it with your actual user name. In my case the statement would be:
BREAK uschieferst.
It is not meant as field-symbol.
However, using activatable break-point of a Checkpoint group is far more elegant.
Regards
Uwe
11-25-2010 2:18 AM
11-25-2010 2:29 AM
It's not a macro, as Uwe showed you. Inside your Constructor method just enter the following code:
break sy-uname
Because of the '.' in your name you cannot use
break yuan.gan.
I am suprised to see that as a user name like that though.
11-26-2010 10:15 AM