cancel
Showing results for 
Search instead for 
Did you mean: 

Pass oEntry from UI5 IDE to DPC class

meenakshi_raina
Advisor
Advisor
0 Kudos

Hi All,

I have used "create operation" in my controller where I am passing oEntry to the ECC system.

oModel.create("/objidSet", oEntry, { method: "POST", success:function(){ sap.ui.getCore().byId("Dialog2").close(); },

I have done the mapping as per the below screenshot -

Now when the "create method" in DPC class is hit, which is the parameter where I will get the value ? I could not find a lv_objid or objid variable in my "OBJIDSET_CREATE_ENTITY" method.

Please suggest.

Thanks

Meenakshi

meenakshi_raina
Advisor
Advisor
0 Kudos

Can anyone please help me with it..

Thanks and Regards

Meenakshi

Accepted Solutions (1)

Accepted Solutions (1)

AbhishekSharma
Active Contributor
0 Kudos

Hi ,

If I understood your question correctly, the requirement is to create an entry in table using OData service which you have already created and have made call to it.. Please find below steps :

First you need to redefine method CREATE_ENTITY. ER_ENTITY is an exporting parameter which you need to fill with the data you are sending.

io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ). 

Where ls_request_input_data parameter will be of same type which you used to send data. We are just capturing data which was passed.

once you have all data available in 'ls_request_input_data' you can perform what ever operation needed...

Hope this will help..

Thanks-

Abhishek

meenakshi_raina
Advisor
Advisor
0 Kudos

Thanks Abhishek. It worked 🙂

Answers (0)