cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Characteristics relation is not populating

Prince_121083
Explorer
0 Likes
470

I have one requirement. I want to add default ZPLANT and ZBUSINESS  . these two fields I have not added in aggregation level. I am writing below codes.

 

method IF_RSPLS_CR_METHODS~DERIVE.


field-symbols: <ZPLANT> type any,
<ZPLANT1> TYPE any,
<ZBUS_AREA1> TYPE any,
<ZBUS_AREA> TYPE ANY.
BREAK-POINT.
ASSIGN COMPONENT '/BIC/OIZPLANT' of structure c_s_chas to <ZPLANT>.
ASSIGN COMPONENT 'ZPLANT' of structure c_s_chas to <ZPLANT>.
ASSIGN COMPONENT '/BIC/OIZBUS_AREA' of structure c_s_chas to <ZBUS_AREA1>.
ASSIGN COMPONENT 'ZBUS_AREA' of structure c_s_chas to <ZBUS_AREA>.
<ZPLANT> = '0005'.
<ZPLANT1> = '0005'.
<ZBUS_AREA> = 'ttt'.
<ZBUS_AREA1> = 'ttt'.
break sapuser.
endmethod.

I am executing queries and saving data. I am executing planning sequence but derivation is not happening

Accepted Solutions (0)

Answers (1)

Answers (1)

gregor_dieckmann
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

your relation of type exist is not of type 'derivation' (cf. the respective flag in the definition of a relation in RSPLAN), this is why the system only calls the method CHECK (and CREATE, depending on the context). Create a relation of type derivation where you specify source and target characteristics. Method DERIVE is then called when all source characteristics are known (or where 'derived' in relations in previous steps) and at least one target characteristic is not known (i.e. is filled).

Regards,

Gregor