Skip to Content
avatar image
Former Member

oData Service Binding from Function Module

Hi,

I have a requirement where oData service is consuming a Function Module (FM). This FM is having a IMPORT, a EXPORT parameter along with a Table.

Scenario is, in UI5 application user will provide input in a input box and click on a button.

On click, it should fetch the export parameter and Table from the oData service.

In UI5 application, I am facing issues while sending input to oData and get the required items.

If I do hard-coding the import paramter of FM in oData service, I am getting the table values in entityset.

Any pointers to good way to achieve this will be helpful.

Thanks,

Saurabh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    May 24, 2017 at 08:06 AM

    how you are passing parameter from ui ? post your code.....

    you can give a try

    "/entityset(param1='val1', param2='val2')"

    or

    var aFilters = [];
    aFilters.push(new sap.ui.model.Filter("param1", sap.ui.model.FilterOperator.EQ, "val1") );
    aFilters.push(new sap.ui.model.Filter("param2", sap.ui.model.FilterOperator.EQ, "val2") );
    
    oModel1.read("/entityset", {
        filters : aFilters,
    
    ...........
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2017 at 06:11 PM

    I got it Akhilesh, thanks for your inputs.

    Regards,

    Saurabh

    Add comment
    10|10000 characters needed characters exceeded