Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI call problem

Former Member
0 Likes
521

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

3 REPLIES 3
Read only

Former Member
0 Likes
489

Hi,

Is the BAPI expecting any Mandatory IMPORT parameter and you are not passing that parameter ?

Best regards,

Prashant

Read only

0 Likes
489

No.. I don't think I missed any because it was working before.

Could you possibly think any other reason causing this problem?

Read only

Former Member
0 Likes
489

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