cancel
Showing results for 
Search instead for 
Did you mean: 

Not Getting data Into the create deep entity method

former_member192050
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

EkanshCapgemini
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Ekansh,

I'm facing same issue.

I've checked the Navigation property name and it is same, but problem persist.

@Sathish B

have you resolve the problem?

if yes, then please share your approach.

Regards,

Rajesh Kumar Ray/.

Pavan_Golesar
Active Participant
0 Kudos

Hi ,

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

Pavan_Golesar
Active Participant
0 Kudos

Any success on above note?