IDocReceived Event 

Use

Occurs when the outbound IDoc is received. Translates the IDoc to an XML document, and saves the XML document as an XML file in the system temp directory.

Returns the ID of the XML document.

Syntax

IDocReceived_routine(Id)

Parameters

Name

Type

Description

Id

Long

The ID of the XML document

Comments

To get the actual XML document use the PickIDoc method.

Note that the ID of the document is known within the context of the routine or code handling the IDocReceived event. Either use PickIDoc within this code, or save the ID into some variable that is available to PickIDoc.

VB Example

The following section of code shows the routine for handling IDocReceived. It uses PickIDoc to get the XML document.

Note that Visual Basic automatically creates the subroutines for handling all events of an object you create. In the following code, VB named the routine idoc_IDocReceived.

Private Sub idoc_IDocReceived(ByVal Id As Long)
MsgBox idoc.PickIDoc(Id)
End Sub

For a more complete example of using the SAPIDocProcessorOutbound object see Using the Component for Receiving Outbound IDocs.

See Also

PickIDoc method, SAPIDocProcessorOutbound object, Using the Component for Receiving Outbound IDocs