Skip to Content
0
G P
Feb 20, 2022 at 01:25 PM

LOV promt search does not return expected results

52 Views Last edit Feb 21, 2022 at 06:34 AM 2 rev

Hi All,

I tried unsuccessfully to search through the promt LOV by example

https://help.sap.com/viewer/58f583a7643e48cf944cf554eb961f5b/4.2.4/en-US/6b668559f17349f081c943b4230c2409.html

with json

json = {"parameters":{"parameter":[{"id": 20,"answer":{ "info":{"lov":{"query":{"search":"*FOOD*"}}}}}]}}

and url put request

f'http://{conn.str_server}:8080/biprws/raylight/v1/documents/{str_doc_id}/parameters?formattedValues=false'

and get responce:

{"parameters":{"parameter":[
...
{'@optional': 'true',
'@type': 'sapVariable',
'@dpId': 'DP0',
'@primary': 'true',
'id': 20,
'technicalName': 'CHAIN1',
'name': 'Chain',
'answer': {'@constrained': 'false',
'@type': 'Text',
'@keyType': 'Text',
'info': {'@cardinality': 'Multiple',
'@keepLastValues': 'true',
'lov': {'@hierarchical': 'true',
'@nodeSelection': 'Any',
'@refreshable': 'true',
'@searchable': 'true',
'@mandatorySearch': 'false',
'@searchScopes': 'Values,Keys',
'@searchTargets': 'Database',
'id': 'UNIVERSELOV_DS0.:M:STR:CHAIN1',
'updated': '1970-01-01T00:00:00.000Z',
'error': {'error_code': 'WIS 0',
'message': 'The number of requested members exceeds 5000. Do a search by element instead.'}}}}}
...
]}}

Please tell me what I did wrong