Hello,
Rich.

The main function logon.Bapi_Xbp_Get_Bp_Resrc_On_Date(Date as 
String,...)

Has string DATA TYPE for Date and Time.


Thank you

Leonid



--- In [EMAIL PROTECTED], "richard pauer" 
<[EMAIL PROTECTED]> wrote:
> Hello
> 
> The reason why you are getting an invliad date or time specified 
is that in
> the procedure you have coded it as a string
> 
> why don't you code this like is
> see below
> 
> Public Function GetBPResrcOnDate(ByVal sDate As Date, ByVal sTime 
As Date)
> As DataTable
> 
> and when you call the date and time sDate and sTime make sure yout 
put a #
> around the date or time.
> 
> HTH
> 
> Rich
> 
> ----- Original Message ----- 
> From: "leonidzhuravel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 08, 2004 4:52 PM
> Subject: [AspNetAnyQuestionIsOk] SAP R/3 RFC Bapi (Invalid date or 
invalid
> time specified)
> 
> 
> > Hello,
> > My task is to fetch data from SAP R/3 into VB.NET.
> > I'm using JS-1.dll.
> > When I call Bapi_Xbp_Get_Bp_Resrc_On_Date
> >
> > I have error message "Invalid date or invalid time specified"
> >
> >
> >  Public Function GetBPResrcOnDate(ByVal sDate As String, ByVal 
sTime
> > As String) As DataTable
> >         Dim tableB As New DataTable
> >         Dim Msg As New JS_1.BAPIRET2
> >         Dim XMRESTable As New JS_1.BAPIXMRESTable
> >         Dim logon As New JS_1.SAPProxy2
> >         sTime = "220000"
> >         sDate = "20040706"
> >
> >         logon.Bapi_Xbp_Get_Bp_Resrc_On_Date(sDate, m_sExtUserNM,
> > sTime, Msg, XMRESTable)
> >
> >         If Not IsNothing(XMRESTable) Then
> >             tableB = XMRESTable.ToADODataTable
> >         End If
> >
> >
> >         Return tableB
> >     End Function
> >
> > Please help me i will be thankfull
> >
> > Leonid
> >
> >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to