Hello,
I have created a input ready query and I have a requirement where for each planned Customer I would want a Cust group to be derived and filled in the planning cube.
I could use the attribute but there is a function module which I have to use based on Customer and Customer type to derive the Cust group.
How can I use the exit for my requirement. I am not an abaper but 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 Customer and Customer type as source characteristic and Cust Group as target and chose Characteristic Combinations Based On : Exit class and Exit Class: CL_RSPLS_CR_EXIT_BASE
Could anyone guide me with step-to-step process after this. How I can make changes to the class and what should the code look l like.
Call function u2018Z_CUST_GROUPu2019
Exporting Customer = <Customer>
Cust_Type = <Customer type>
Importing Cust_Grp = <Cust Group>
For the above function module I get Customer and Customer type from input schedule and it should derive customer group and save it into the cube.
Can anyone help me with the code. Do I have to make a copy of the exit class to use it. Here is what the help says which I dont understand
We recommend that you derive your own class from the example class 'CL_RSPLS_CR_EXIT_BASE'. You then only have to implement the methods u2018CHECKu2019, u2018DERIVEu2019 and u2018CREATEu2019. The class 'CL_RSPLS_CR_EXIT_BASE' itself can be used directly, but it does not execute an action.
Thanks,
KK