Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 34 Oracle Analytics and AI Sharing Center
- 22 Oracle Analytics and AI Lounge
- 276 Oracle Analytics and AI News
- 47 Oracle Analytics and AI Videos
- 16.1K Oracle Analytics and AI Forums
- 6.3K Oracle Analytics and AI Idea Labs
- Oracle Analytics and AI User Groups
- 99 Oracle Analytics and AI Trainings
- 16 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Issue while using SUM & DECODE functions together in HASH TOTAL in ETEXT template PaymentFormat
Hi Team,
Requirement is to Prefix the Payee Bank account number with different digits based on Bank Account Type (If Bank Account Type is 'SAVINGS', then prefix the Bank account number with 1 , If it is 'CHECKING' then prefix with 4 else prefix with 2) and then sum this concatenated Bank Account Numbers of all payments n a batch payment and display it as HASH total in Trailer record.
Logic used in etext template:-
SUM((DECODE(OutboundPayment/PayeeBankAccount/BankAccountType/Code, 'SAVINGS' , 1 ,'CHECKING', 4, 2)||(OutboundPayment/PayeeBankAccount/BankAccountNumber)))
But logic with the above functions is not working as expected.
Attaching the etext template with P80 record block having HASH total calculation(from 49 to 59 positions) and also attaching the payment output file where HASH TOTAL is wrongly calculated.
Expected value is "430550401" (411521031+19029370)
But output value is "0020550401"
Please let us know if you require any other information from our end.
Thank you.