Skip to Content
0
Former Member
Mar 10, 2009 at 02:15 PM

Characteristic Relationship - Derive Characteristic

175 Views

I need my planning application that allows restricted planning on a subset list of 0SALES_OFF from 0SALESORG

I have added 0SALESORG into my Aggregation Level and defined a Characteristic Relationship of type 'WITH DERIVATION' based on Exit Class CL_RSPLS_CR_EXIT_BASE.

In method DERIVE, I have the following code :-

field-SYMBOLS: <l_chavl> type any.

FIELD-SYMBOLS: <l_chavl_SALESORG> TYPE ANY.

ASSIGN COMPONENT 'SALESORG' OF STRUCTURE c_s_chas  TO <l_chavl_SALES_OFF>.

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

I subsequently created the Aggregation Level only consisting of 0SALESORG (without 0SALES_OFF) and created a function of type 'Generate Combinations'.

Then I have an input-ready query based on this aggregation level (once again without 0SALES_OFF)

Correct me if I`m wrong, but the moment I execute this Planning Function of type 'Generate Combination' on my planning layout, should or should`nt it AUTOMATICALLY display 0SALES_OFF?

or Do I need to include 0SALES_OFF as well in my Aggregation Level & Query layout.

Please advice.

- John Mcluskey -