[2805] in SAPr3-news
BAPI HELP!!!!!
daemon@ATHENA.MIT.EDU (Wardell Castles)
Tue May 13 03:37:30 1997
To: sapr3-news@MIT.EDU
Date: Tue, 13 May 97 07:52:35 GMT
From: wardellc@ix.netcom.com (Wardell Castles)
Reply-To: wardell@mindspring.com
I am having trouble doing the most basic operations using BAPIs. I can't even
logon without trapping! (SAPGUI is 3.0F, Windows95, SAP server is 3.0F)
Here is theVB code that I am executing (borrowed from the BAPI SDK)
'Load the OLE control
Set goBOFactory = CreateObject("SAP.BusinessObjectFactory")
If goBOFactory Is Nothing Then
'if we could not load it then give up
MsgBox Prompt:="SAP Repository Control could not be accessed.",
Buttons:=vbCritical
End
End If
'explicit logon
' this is done implicitely when first accessing the factory objects
While goBOFactory.Logon = False
If MsgBox("Retry Logon?", vbYesNo + vbQuestion, "LogonError") <> vbYes
Then
Set goBOFactory = Nothing
End
End If
Wend
The logic is located in the initial form load procedure. The problem I am
having is logging on. The trap is occuring in the line:
While goBOFactory.Logon = False
What happens is:
1) a logon dialup box comes up,
2) I open an instance
3) I enter the client, username, and password and press OK.
Then there traffic over the network....
then I get this messagebox:
VB32 caused an invalid page fault in
module VRFC32.DLL at 03f7:014c0c36.
Registers:
EAX=00000000 CS=03f7 EIP=014c0c36 EFLGS=00010246
EBX=018129f0 SS=03ff ESP=0074f080 EBP=0074f088
ECX=00000003 DS=03ff ESI=00000000 FS=21e7
EDX=007638f7 ES=03ff EDI=007638f7 GS=0000
Bytes at CS:EIP:
ac 0a c0 74 03 aa e2 f8 32 c0 f3 aa 8b c2 5e 5f
Stack dump:
007638f7 007638fb 0074f0c8 014b52ee 007638f7 00000000
00000003 0074f5e8 00740046 0074f768 014eb964 00000000
00000000 0074f0b8 00000004 0074f4f8
Any constructive suggestions or ideas would be appreciated!!!!!
Thanks.
Wardell Castles
Junior BAPI programmer!