Pass oEntry from UI5 IDE to DPC class

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

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

  • Get RSS Feed

1 Answer

  • Best Answer
    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..

    Thanks-

    Abhishek

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content