SendIDocToR3 Method 

Use

Converts the specified XML document into an IDoc, and then sends it to the R/3 system as an inbound IDoc.

The specified XML document can come from a file or you can create it in your client application.

Syntax

SendIDocToR3(rfcfunction, xmlsource)

Parameters

Name

Type

Description

rfcfunction

IDOC_RFC_NAME

The name of the RFC function to use for sending the IDoc to R/3.

IDOC_RFC_NAME is an enumerated type that can take one of the two following values:

IDOC_INBOUND_ASYNCHRONOUS

Send the IDoc asynchronously

INBOUND_IDOC_PROCESS

Send the IDoc synchronously

xmlsource

String

The XML source to use for converting into an inbound IDoc.

The string of this parameter can contain either one of the following:

  • the full path to an XML file
  • the actual contents of the XML document

VB Example

The following example uses the myXML.XML file in the root directory on the C: drive as the source XML. It sends an IDoc synchronously to R/3:

Call idoc.SendIDocToR3(INBOUND_IDOC_PROCESS, "C:\myXML.XML")

For a more complete example of sending an inbound IDoc with the IDoc Connector for XML component, see Using the Component for Creating Inbound IDoc Documents.

Comments

See Also

Using the Component for Creating Inbound IDoc Documents, SetConnectionParameters method, Connection Property