cancel
Showing results for 
Search instead for 
Did you mean: 

Deriving using Class method from CL_RSPLS_CR_EXIT_BASE

Former Member
0 Kudos

Hello,

We have a requirement to derive combinations from a DSO. There is Hierarchy, Product Group, Product, and Sub-Product.

We have a DSO with the four fields as key-fields. I wrote the following code but not sure about how the the methods works.

Select * from DSO into table IT_COMB.

C_S_CHAS = IT_COMB[].

Is this the right way to go?

Help would be appreciated.

Thanks & Regards,

Abhijit N.  Pawase

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Abhijit,

you should clarify what are the source and target fields of the derivation. Derivation is a 'function' in the mathematical sense, i.e. given the values of the source fields the values of the target fields are determined. Having all fields you mention in the key of a DSO is not modeling a derivation relationship since since key fields may have an n:m relation.

A derivation relation using a DSO is possible without an exit implementation, just use the source characteristics as key fields and the target characteristics as data fields in the DSO.

Regards,

Gregor

Former Member
0 Kudos

Hi Gregor,

Thanks for your reply. I used the create method in the BADI. My requirement was n:m relation type.

Regards,

Abhijit N. Pawase

Answers (0)