Skip to Content
author's profile photo Former Member
Former Member

Problem passing input parameters to RFC

I have an RFC that expects two parameters as input:

E_FROMDATE

E_TODATE

In the data model, I can't quite figure out how to specify these two fields as the recipient of the filter condition in the URI http://sapcis01.xxxxxx.xxxx:8080/sap/opu/odata/sap/xxxxx/xxxxCollection?filter=E_FROMDATE='20120101' and E_TODATE='20120131'

Regardless of what I've tried in the URI or in the model, the external breakpoint in the RFC is showing initial values for both E_FROMDATE and E_TODATE.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 17, 2012 at 02:23 AM

    Hi Wardell,

    If you are using a data field in the query, the format for using that would be different in OData. There are bunch of OSS notes which talks about the Edm.DateTime field. Here is list of some of them:

    1671893

    1724581

    1688008

    1665216

    1666234

    1574568

    Please have a look at them.

    Thanks,

    Adithya K

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2012 at 05:39 AM

    Hi ,

    I have created a similar service where to retrieve all the records between 18th and 20th of October

    I have made the following call and it works for me.

    http://xyz.com:8010/sap/opu/odata/sap/ZORD/zordCollection?$filter=low_date eq datetime'2012-10-18T00:00:00' and high_date eq datetime'2012-10-20T00:00:00'

    Hope this helps

    Regards

    Gururaj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.