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

Connector date related issues

Hi

I am having trouble getting data using rfc HRWPC_RFC_GET_OBJECTS with the .net connector. I am able to get data out of the system using certain dates, e.g. "27.01.2005" but using the current date as begin and end date returns the error "NO ROOTS FOUND". The function returns valid data when called with the current date from SAP and using JCo.

This is the line of code:

proxy1.Hrwpc_Rfc_Get_Objects("15.02.2005", 0, "15.02.2005","EN","", "ALBERTA", "A_ALL",out cachedate,out cachetime,out showastree,ref resultobject,ref resultstruct);

Can anyone help?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 16, 2005 at 04:49 AM

    Here's a quote from Guangwei's answer in OSS:

    The .NET Connector maps ABAP date and time types to .NET string using the ABAP standard formats of YYYYMMDD and HHMMSS respectively. So your input should be "20050215" in stead of "15.02.2005". You can also use RfcConvert.DateTimeToRfcdate() to convert a .NET DateTime value to a string in ABAP format.

    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.