cancel
Showing results for 
Search instead for 
Did you mean: 

Consume Get expanded EntitySet in sapui5 without Get EntiySet Implementation

0 Kudos

Hi Expert ! I'm new in sapui5 and I want to read GetExpanded EntitySet in sapui5 without implemention of Get EntitySet

oModel1.read("/LinesSet?$expand=ToCells&$filter=IdQuery%20eq%20%27ZSMKPI_QM_TOTAL_USERS%27", {
				success: function(oData) {


					console.log(" expand");
				 
				},
				error: function(oError) {
				 
					console.log("errooooooor expand");
				}
			});

Error messager : errordetails":[{"code":"/IWBEP/CX_MGW_NOT_IMPL_EXC","message":"Method 'LINESSET_GET_ENTITYSET' not implemented in data provider class.","propertyref":"","severity":"error"}]}}} -

It do not implemented , I want to skip this method and consume expand method directly

Any Idea Please

Accepted Solutions (1)

Accepted Solutions (1)

former_member227918
Active Contributor
0 Kudos

solution is in your error message itself, ask gateway developer to implement LINESSET_GET_ENTITYSET in the data provider class, cant skip this i guess.

and trigger read call as below:

oModel1.read("/LinesSet", {
    filters: oFilters, // use sap.ui.model.Filter for filters
    urlParameters: {
        "$expand": "ToCells"
    },
    success: function(data, response) {
    },
    error: function(oError) {
    }
});

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Get_EXPANDED_ENTITYSET internally calls to GET_ENTITYSET so not possible without this method implemented.

Where as you can still go to ABAP WORKBENCH and write your own method and comment out everything that is done by platform.(Not recommended).

Thanks,

Den

0 Kudos

Actually I implemented get expanded entitySet set without the implementation of get entitySet and it works if I call the service in browser

Former Member
0 Kudos

Hi,

Can you post your request and response here (masking sensitive information from your project)....just need to see what you get in browser and what you expect in your js code.

Thanks,

Den