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

SAP Commissions, stage table error codes ... decoded?

pauldevlin
Discoverer
1,313

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;
/

Accepted Solutions (0)

Answers (3)

Answers (3)

Lara
Product and Topic Expert
Product and Topic Expert
0 Likes

Yes, that's right. You'd use the MessageKey field instead now.

Lara
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi, Paul, yes, it's no longer CS_RIPreferences. That information is now stored in CS_MESSAGE.

pauldevlin
Discoverer
0 Likes

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?

Yogananda
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi pauldevlin
Let me check and confirm to you.. Would need little more time..

pauldevlin
Discoverer
0 Likes

Thank you Yogananda