cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug code in IF_RSPLS_CR_METHODS~DERIVE

Former Member
0 Kudos

There are lot threads regarding this topic and i went through all of them but still i have this issue below :

My code is also very simple :

* implement your derivation algorithm here:


field-SYMBOLS: <l_chavl> type any.

FIELD-SYMBOLS: <l_planitem>   TYPE ANY.

FIELD-SYMBOLS: <l_account>   TYPE ANY.

   ASSIGN COMPONENT  '/BIC/WPLANITEM' OF STRUCTURE c_s_chas TO <l_planitem>.

   ASSIGN COMPONENT 'ACCOUNT'   OF STRUCTURE c_s_chas TO <l_chavl>.

  <l_chavl> = <l_planitem> .


i) I've put this code in  IF_RSPLS_CR_METHODS~DERIVE after i copied the ClassCL_RSPLS_CR_EXIT_BASE into my own class.

ii) I've read many posts that custom info object should be assigned as '/BIC/<info Object>' . but it's still not helping me . is this because of the compounding object?. ( Source : WPLANITEM .  Target : 0ACCOUNT  & 0CHRT_ACCTS)


Issues :


1) The code doesn't work.

2)  i am not able to debug the code ( Break-point not working work)  .I really would like to know how to debug this particular method .

3) The 0ACCOUNT ( Target char) also has  0CHRT_ACCTS as compounding object ( this is also checked automatically in the target Char) . Does this affect the code?. How to handle this scenario?


Regards,

Satish M

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The issue is resolved but still would like to know how to debug.

sheldon_piao
Advisor
Advisor
0 Kudos

Hi Satish,

I will first set the breakpoint at

Method     IF_RSPLS_CR_CONTROLLER~DERIVE
Class/Interface      CL_RSPLS_CR_CONTROLLER

and get some information to confirm how to do the next step.

Best Regards,
Sheldon.

Former Member
0 Kudos

Hi Sheldon,

I've already put break point in the Method and when i try to change values in the excel planning book, The ABAP debugger is not opening.

Regards,

Satish M

sheldon_piao
Advisor
Advisor
0 Kudos

Hi,

If it is not PAK, try to set the breakpoint at one of the parts:

1) METHOD IF_RSPLS_CR_CONTROLLER~DERIVE_ALL
                     CL_RSPLS_CR_CONTROLLER
2) METHOD IF_RSPLS_CR_MAPPER~DERIVE_ALL
                     CL_RSPLS_CR_MAPPER
3) METHOD _CR_DERIVE
                     CL_RSPLS_BUFFER_B

Best Regards,
Sheldon.