on 12-03-2014 7:42 AM
Hi All,
I have created a service that to create multiple items to be created at once,for this i developed create deep entity method
in this method i am using this method
io_data_provider->read_entry_data(
IMPORTING
es_data = lr_deep_entity ).
but unfortunately i am not able to get any data that i entered from the browser was triggered here,so that i am not able create entries as of my requirement.
give any inputs or suggestions on this issue.
Thanks & Regards
Sathish
Check the Navigation Property name in the payload and in the gateway service. It should be same in both the cases. If it is different, you will not receive any data in your structure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Reason is the condition on GV_COMPARE_RESULT variable is not "true" (it becomes false) thus the check fails for GV_COMPARE_RESULT.
Ready Solution is to write code as below:
* UPON MATCH, ACCESS DATA FROM IO_DATA_PROVIDER
IF GV_COMPARE_RESULT EQ /IWBEP/IF_MGW_ODATA_EXPAND=>GCS_COMPARE_RESULT-MATCH_EQUALS.
IO_DATA_PROVIDER->READ_ENTRY_DATA( IMPORTING ES_DATA = lr_deep_entity ).
ENDIF.
Comment the if condition and only write the above one line code.
It will surely work. 🙂
Cheers,
Pavan G
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.