on 2024 Jun 23 12:56 AM
Hi, I'm implementing a RAP-based Fiori Application in S/4HANA On-Prem.
My current issue is figuring out how to display the main Key field - Document Number - with leading zeros. It is a NUMC 10 field in the database, with output length 10 in the domain.
How it currently displays:
How I would like it to display:
I have tried to create a duplicate field in the main CDS View and force the leading zeros:
key docnr as Docnr,
cast(lpad(docnr,10,'0') as abap.char(10)) as DocnrLong,
However the frontend seems to always delete the leading zeros, maybe if I change something in BAS files, like formatter.js, is there a way?
Thank you
Request clarification before answering.
Solution provided in the original question was already OK.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
20 | |
9 | |
8 | |
7 | |
5 | |
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.