on 07-17-2014 5:13 PM
Hi, I need help implementing this BadI to store trend, basic and seasonal values in APO Key Figures.
I am using SCM7 EHP2 SP4.
The following steps were completed successfully:
The customer must create their own table for this example with the
* following structure:
* pareaid TYPE /sapapo/ts_pareaid Schlüsselfeld
* iobjnm_fcst TYPE /sapapo/krit1 Schlüsselfeld
* iobjnm_trend TYPE /sapapo/krit1
* iobjnm_season TYPE /sapapo/krit1
* iobjnm_base TYPE /sapapo/krit1
method /SAPAPO/IF_EX_SDP_FCST3~PARAMETER_SAVE.
DATA: ls_data TYPE zcustomer_table.
SELECT SINGLE * FROM zcustomer_table INTO ls_data
WHERE pareaid = iv_pareaid
AND iobjnm_fcst = is_dp440g-kennz.
IF sy-subrc EQ 0.
ev_trend = ls_data-iobjnm_trend.
ev_season = ls_data-iobjnm_season.
ev_base = ls_data-iobjnm_base.
ELSE.
RAISE no_chance.
ENDIF.
endmethod.
When I execute a univariate forecast interactively or in background, then I save the results, the trend, seasonal indexes and basic values are not saved in my data view and kf.
Do you have any suggestions?
Thanks,
Nevermind, I was able to solve it.
My issue was related to aggregation type not working as expected. I modified the aggregation types to pro rata as I will never look at these key figures at any level than forecast level.
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 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.