Skip to Content
0
Former Member
Jan 11, 2010 at 08:12 PM

how to debug for Eixt Class CL_RSPLS_CR_EXIT_BASE

367 Views

Hello,

I have created a input ready query and I have a requirement where we can use based on the characteristic of Organisation and Country to derive the Material group.

For example:

Country Organsiation Material group

16 4518 =====> 164518

I know I can use classes in SE24.

I am assuming I should use CL_RSPLS_CR_EXIT_BASE for my requirement.

I have defined a characterisitc relationship with Organisation and Country as source characteristic and Material group as target and chose Characteristic Combinations Based On : Exit class and Exit Class: CL_RSPLS_CR_EXIT_BASE

In IF_RSPLS_CR_METHODS~DERIVE :

FIELD-SYMBOLS: <l_chavl> TYPE ANY.

data: l_pur_org type /BI0/oid_pur_org,

l_country type /bi0/oid_country.

ASSIGN COMPONENT 'D_PUR_ORG' OF STRUCTURE c_s_chas

TO <l_chavl>.

l_pur_org = <l_chavl>.

ASSIGN COMPONENT 'D_COUNTRY' OF STRUCTURE c_s_chas

TO <l_chavl>.

l_country = <l_chavl>.

*

CLEAR <l_chavl>.

CONCATENATE '10' l_pur_org l_country INTO <l_chavl>.

ASSIGN COMPONENT 'D_MTLGROUP' OF STRUCTURE c_s_chas

TO <l_chavl>.

For the above function I get Organisation and Country from input schedule and it should derive Material group and save it into the cube.

Is code wrong? It can not debug when i execute the query.

ps. I have tried to create break-point, and external break-point. But it does not work.

Thanks for your suggestion.

Edited by: gang qin on Jan 11, 2010 9:12 PM