on ‎2021 Jan 12 7:27 AM
In the SAP Commisions product, once upon a time, when it was Callidus, even before Callidus became the Callidus Cloud, there was a table - I think it was called CS_RIPreferences. After Callidus went Cloud that table was no longer visible, but it's existence could still be inferred. The function below could read a stage table and decode (into one field) the entire list of errors pertaining to a given row. I only have a very stale version of the data from the table.
Is there an SAP provided function that performs this task?
If not, could/would someone share the latest content of the presumed table?
I will be tremendously obliged, thank you
CREATE OR REPLACE FUNCTION explainErrorCode(iPackageName varchar2, codeVal integer) RETURN varchar2 IS
explanation varchar2(1024);
codeRemaining integer;
cursor rip is
select * from CS_RIPreferences where packageName = iPackageName order by errorCode desc;
BEGIN
explanation := null;
codeRemaining := codeVal;
if CodeVal > 0 then
for i in rip
loop
if codeRemaining - power(2,i.errorcode) >= 0 then
explanation := explanation||i.messageKey||' ';
codeRemaining := codeRemaining - power(2,i.errorcode);
exit when codeRemaining = 0;
end if;
end loop;
end if;
RETURN explanation;
END explainErrorCode;
/
Request clarification before answering.
Yes, that's right. You'd use the MessageKey field instead now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Paul, yes, it's no longer CS_RIPreferences. That information is now stored in CS_MESSAGE.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Lara. Is it therefore true to say, when looking at the messages where the category = 'Validation', that the objectSeq on those rows will refer to the unique key of a CS_StageWhatsoever row? Is it also true to say that no longer can one use the stageErrorCode by itself to decode what errors a given stage row has experienced?
Hi pauldevlin
Let me check and confirm to you.. Would need little more time..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 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.