VVV Urgent: COM4ABAP BEGIN_COM_SESSION multiple sessions

Question:
Hi All,
Its very urgent.
I am using COM4ABAP to call a VB application from SAP. The scenario is as follows.
While creating a sales order, when the user enters a line item an hits enter, a call is made to the COM4ABAP this in turn invokes the Visual Basic application. The function module that I am using for creating a COM session is ‘BEGIN_COM_SESSION’. The scenario will have multiple users creating the sales order at the same time. The problem that I am facing is as follows.
If one call is made to the BEGIN_COM_SESSION function module and if this session is not released then in the subsequent calls the worker destination is not returned. And an exception is raised.
CALL FUNCTION 'BEGIN_COM_SESSION'
EXPORTING
SERVICE_DEST = service_dest
IMPORTING
WORKER_DEST = worker_dest
EXCEPTIONS
CONNECT_TO_DCOM_SERVICE_FAILED = 1
CONNECT_TO_DCOM_WORKER_FAILED = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
ENDIF.
Any help would be greatly appreciated.
Thanks and Regards,
Rajesh.
Answer:
I was expecting some help from the Gurus.
Rajesh
Answer:
Hi,
I am waiting for a feedback. This is a critical issue and time is running out for me.
Thanks and Regards,
Rajesh.
Answer:
Another thing I want to add in it is that "Can this application be run in background as well", What I essentially mean to say:
When COM4ABAP service is run, we give file repository path where we store XML file generated by type mapper.
What all things I need to do if I want to run this application(SAP-VB) in background...Do I solve my problem by keeping the XML file on server, or it will create no problem even if the file is on local PC.
Cheers,
Tanya
Answer:
It needs to reside on the server, that way any SAP program you've got calling externally has access to the XML map. Not having it on the server really defeats the purpose, in my opinion. And it can run in bacground. All that really matters is the connection and the map.

More Articles:

Call transaction BDC?
Expansive SQL?
Dynpro screen modify?
MY COMPANY LOGO?
processing in ABAP standard system menu?
decimal -> hexadecimal conversion?