Example: Field QAPP.PPSORTKEY
Original Code
/*-- Sample / Inspection Point (from QAPP) ---------------------------*/
qapp.probenr as SampleInspectionPoint,
qapp.ppsortkey, as InspectionPointTwo notes on this:
ltrim( field, '0' ) removes only leading '0' characters — an all-zero value becomes an empty string. If you'd rather show '0' in that case, wrap it: case when ltrim(...) = '' then '0' else ltrim(...) end. I didn't add that since you didn't ask.- The result type stays character, same length — no dictionary impact, activation-safe. If the Fiori app later sorts or filters on InspectionPoint, remember it's now text-sorted without zero padding, so ordering across values of different lengths will look wrong ('12' before '3' is gone, but '3' now comes after '12' alphabetically... actually '12' < '3' as text). If sorting matters, keep the raw field as a hidden sort column.
No comments :
Post a Comment