on 05-16-2023 8:22 PM
Hello All,
We have a requirement, where the CDS have 3 primary keys, out of which 2 keys will be entered by the user, and the 3rd primary key should be auto populated based on the 2 keys, that were entered by the user.
Consider in the Fiori app, user enters value as A and B for the first two primary keys, on clicking save, the third primary key should be auto-populated as A-B.
Is this possible? While checking the SAP help documentation, I see the concepts of UUID, late numbering, Early numbering concepts, but unable to find a way to achieve the above functionality.
Thanks,
Naga
Ciao Sunkara,
not sure, because I don't have deep knowledge, but did you check via the Behavior Definition and Determine logic?
determination get_key3 on save { field key1, key2; }<br>
The method get_key3 can be implemented in your behavior impl class.
METHOD get_key3.
READ ENTITIES OF ... IN LOCAL MODE
ENTITY ...
FIELDS ( ... )
WITH CORRESPONDING #( keys )
RESULT DATA(...).
....
ENDMETHOD.
Again no garantie on that.
Regards Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.