‎2006 Oct 20 5:24 AM
Hello all,
I have a Problem calling a BAPI from VB.
As soon as BAPI is called, the connection to SAP is disconnected.
Public boWorkBreakdownStruct As Object
Set boWorkBreakdownStruct = oBAPICtrl.getSapObject("WorkBreakdownStruct")
-
It's okay until this----
boWorkBreakdownStruct.Maintain _
IMethodProject:=tiMethod, _
iProjectDefinition:=iProjectDefinition, _
iProjectDefinitionUp:=iProjectDefinitionUp, _
iWbsElementTable:=tiWbsElementTable, _
iWbsElementTableUpda:=tiWbsElementTableUpda, _
iWbsHierarchieTable:=tiWbsHierarchieTable, _
INetwork:=tiNetwork, _
iNetworkUpdate:=tiNetworkUpdate, _
iActivity:=tiActivity, _
iActivityUpdate:=tiActivityUpdate, _
iActivityElement:=tiActivityElement, _
iActivityElementUpdate:=tiActivityElementUpdate, _
iRelation:=tiRelation, _
iRelationUpdate:=tiRelationUpdate, _
EMessageTable:=teMessage, _
Return:=eReturn
After calling this BAPI function, the Con is disconnected and raise error "An exception was raised in the RFC System. The connection was automaticaaly closed by the System".
Any idea of this?
Message was edited by: Sooyoung Jang
‎2006 Oct 20 6:37 AM
Hi,
Is the BAPI expecting any Mandatory IMPORT parameter and you are not passing that parameter ?
Best regards,
Prashant
‎2006 Oct 20 6:40 AM
No.. I don't think I missed any because it was working before.
Could you possibly think any other reason causing this problem?
‎2006 Oct 20 6:47 AM
Hi,
Open the RFC through transaction SE37 and click on the EXCEPTION tab. Check whether the exception raised in your case is any one of the exception defined in EXCEPTION tab.
Best regards,
Prashant