Skip to Content

Invalid function import parameter type for 'XXXX' in SAP Gateway (Odata)

Hi All,

I'm trying to implement function import POST request while executing i'm facing the error as "Invalid function import parameter type for 'Approved'. Expected type is 'Edm.Boolean' ". Even though function import parameter is set to Edm.Boolean as shown below:

Funcion Import Parameters:

I clear the cache everytime I execute the service but still getting the same error.

Regards,

Vikram

capture.png (95.2 kB)
capture1.png (10.3 kB)
capture2.png (15.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    May 18 at 04:21 AM

    Try to send Booelan value as true / false with out quotes, instead of 'X'.

    Thanks,

    Lokeswar.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 15 at 01:05 PM

    Hi Vikram,


    Per SAP Help documentation:
    https://help.sap.com/viewer/68bf513362174d54b58cddec28794093/7.5.9/en-US/54a326519eff236ee10000000a445394.html

    Edm.Boolean type can be used in a true or false scenario. If you wish to add entity's, I suggest you use the filter option.

    Further info can be seen here:

    https://archive.sap.com/discussions/thread/3853182

    https://archive.sap.com/discussions/thread/3560148

    Kind Regards,

    Dean Ryan

    Add comment
    10|10000 characters needed characters exceeded

  • May 21 at 06:10 PM

    As suggested by everybody send as below

    Employees?$skip=0&$top=20&$filter=FullTime eq true&$inlinecount=allpages

    Add comment
    10|10000 characters needed characters exceeded