on 2023 Dec 14 8:44 PM
Good day everyone,
I am trying to run _SYS_AFL.PAL_MASSIVE_ADDITIVE_MODEL_ANALYSIS by calling it from a method in AMDP Class and encountered an error message as given in the question title.
According to the documentation from SAP: ( Link) the calling of this function requires:
<HOLIDAY table> can be NULL
<PARAMETER table> does not have any field with type TIMESTAMP/DATE or SECONDDATE
--> Problem must come from <DATA table>
In my AMDP Class, the method is as followed:
CALL _sys_afl.pal_massive_additive_model_analysis( :it_data, :it_holiday, :it_params, et_model, et_error_msg);
TYPES: BEGIN OF ty_data,<br>
group_id TYPE c LENGTH 60,
tmstmp TYPE c LENGTH 30,
y TYPE float,
END OF ty_data,
tt_data TYPE STANDARD TABLE OF ty_data.
define table ztb_fc_ama_ts {
key mandt : mandt not null;
key id : id not null;
key tmstmp : timestamp not null;
amount : zfc_kennzahl; }
it_data = SELECT
id AS group_id,
CAST (tmstmp AS SECONDDATE ) AS tmstmp,
amount AS y
FROM ztb_fc_ama_ts
WHERE mandt = SESSION_CONTEXT('CDS_CLIENT');
However, in the end, PAL still returns this error (in the OUTPUT Table <ErrorMsgTBL table> )
Can someone please help to shed a light into the cause and solution to this problem?
Request clarification before answering.
User | Count |
---|---|
73 | |
18 | |
10 | |
9 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.