IDocReceived2 Event 

Use

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

Syntax

IDocReceived2_routine(idocxml)

Parameters

Name

Type

Description

idocxml

String

The actual XML document

VB Example

The following section of code shows the routine for handling IDocReceived2. It displays the XML document in a message box. Your program should do something more meaningful with the resulting 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_IDocReceived2.

Private Sub idoc_IDocReceived2(ByVal idocxml As String)
   MsgBox idocxml
End Sub

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

 

See Also

SAPIDocProcessorOutbound object, Using the Component for Receiving Outbound IDocs