Pass oEntry from UI5 IDE to DPC class

Jun 08, 2017 at 10:26 AM


avatar image

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.



capture.png (27.6 kB)
10 |10000 characters needed characters left characters exceeded

Can anyone please help me with it..

Thanks and Regards


* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Abhishek Sharma Jun 12, 2017 at 07:04 PM

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..



Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Abhishek. It worked :)

Skip to Content