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

Difference in "QUERY" and "READ" and other problems

I am new to NWGW and having problems with a custom RFC.

The RFC expects two IMPORTING parameters

  1. E_FROMDATE
  2. E_TODATE

It returns a table of Sales Orders where the document date is between those two dates.

First of all, I don't understand the difference between a "Query" and a "Read" action.

The second problem is that even though in the data model, I mark E_FROMDATE and E_TODATE as keys, their values are not being passed to the RFC. I can see they are initial values when I set an external breakpoint at the beginning of the RFC.

I've tried both $filter and (e_fromdate='20120101, e_todate='20120131'). Neither one works on either the QUERY or the READ service. They are both initial values upon entry to the RFC.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 13, 2012 at 07:59 AM

    Hi Wardell

    In case you are new to odata i would suggest a quick tour in www.odata.org .

    Have a look also at the following how to guide that will walk you through service creation using the service builder.

    http://scn.sap.com/people/volker.drees/blog/2012/10/26/step-by-step-guide-to-build-an-odata-service-based-on-rfcs-part-1

    Regards

    Nachshon

    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.