on 2024 May 27 12:29 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.