Skip to Content
0

SAP OData Annotation ValueList for Entity with multiple keys

Feb 08, 2017 at 10:00 AM

103

avatar image

Hi,

would be nice, if someone could help me on this :-)

I know how to create a ValueHelp for an entity with one key, by using sap annotations and smart-fields.

Example Odata Structure:

Entity: LineItems

- GUID

- KEY_TYPE => Entity: LineType

- KEY_KIND => Entity: LineKind

- ... more properties

Entity: LineType

- KEY_TYPE

- DESCRIPTION

Entity: LineKind

- KEY_TYPE

- KEY_KIND

- DESCRIPTION

Now I want to create a ValueHelp for LineKind, which should only show results with KEY_TYPE = LineItem.KEY_TYPE.

Do you know, how annotation should look like? Or do you have any helpful source to get more information on this .. or an example?

Thank you for any help!

kind regards,

Kai

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers