Use
A blocking call waiting to for single outbound IDoc.
Syntax
idocobj.Listen (rfcdest)
Parameters
Name |
Type |
Description |
rfcdest |
String |
The name of the RFC destination. It should be the value of the DEST entry in your saprfc.ini file, and it should also match the name of the RFC destination as entered in Transaction SM59 on the R/3 system. |
Comments
Because it is a blocking call, we recommend that you use it within a separate process or thread, if you wish to not interrupt the other processing in your application.
Once an IDoc is received, the Listen method terminates. If you wish to receive multiple IDocs, place the Listen method in a loop.
Visual Basic Example
The following section of code waits for an IDoc.
idoc.Listen ("IDOCSYS")
IDOCSYS
is the name of the RFC destination in R/3 for the system on which the IDoc Connector for XML component is installed. It is also the DEST entry in the saprfc.ini file on the system on which the IDoc Connector for XML component is installed.See Also
See the code example in
Using the Component for Receiving Outbound IDocs. Also see SAPIDocProcessorOutbound object, IDocReceived, IDocReceived2, and PickIDoc