‎2007 May 08 3:31 AM
Hi there,
I have implemented a BADI as per the note 907742. Now here is the detail of the BADI.
The BADI is implementing the class CL_EXM_IM_RECN_CONTRACT_FAS13.
This class has an attribute MO_OBJECT instance private.
Now when I am executing a peace of code
SUBSTITUTECONDITIONS_FAS13( io_object = io_object
id_activity = id_activity ).
which is a method of the above class the attribute should have the value . where as in debugging I am getting *** illegal reference *** .
Any clue why this is happning.
Your quick response will be highly appriciated.
Best regards,
Vikash.
‎2007 May 08 4:38 AM
Hello Vikash
I assume you are mixing things up.
Not the BAdI is implementing the class but the class implements the BAdI (interface).
Somewhere in the standard transaction method IF_EX_RECN_CONTRACT~SUBSTITUTE is called. Now within this method you have to write your coding to change conditions:
DATA:
lo_contract TYPE REF to cl_recn_contract.
lo_contract ?= io_contract. " casting to contract instance
CASE id_activity.
WHEN '...'.
" do something
WHEN others.
" do something else
ENDCASE.Regards
Uwe
‎2007 May 08 4:38 AM
Hello Vikash
I assume you are mixing things up.
Not the BAdI is implementing the class but the class implements the BAdI (interface).
Somewhere in the standard transaction method IF_EX_RECN_CONTRACT~SUBSTITUTE is called. Now within this method you have to write your coding to change conditions:
DATA:
lo_contract TYPE REF to cl_recn_contract.
lo_contract ?= io_contract. " casting to contract instance
CASE id_activity.
WHEN '...'.
" do something
WHEN others.
" do something else
ENDCASE.Regards
Uwe
‎2007 May 10 5:22 AM
Hi Uwe,
Thanks for your reply. I did manage to resolve the issue. The BADI was not implemented properly and hence causing the problem.
Any wan thanks for your response.
Best regards,
Vikash.