Previous Topic: Record SAP RFC via JCoNext Topic: Opaque Data Processing


Record JCo IDoc

The SAP JCo IDoc transport protocol allows you to create virtual services that use the SAP JCo IDoc protocol.

The JCo IDoc protocol supports the creation of a virtual service that records and plays back IDocs sent from one SAP system to another using an RFC destination.

The SAP system that initiates communication and sends IDocs is referred to as the Client SAP system. The IDocs sent are referred to as the Request IDocs.

The SAP system that receives the Request IDocs is referred to as the Server SAP system. The IDocs that the Server SAP system returns are referred to as the Response IDocs.

The following graphic shows the regular flow of IDocs between two SAP systems.

VSE SAP IDocs recording diagram

Prerequisites: Using DevTest with this application requires that you make one or more files available to DevTest. For more information, see Third-Party File Requirements in Administering.

To record JCo IDoc service images:

  1. Select JCo IDoc Protocol as the transport protocol on the Basics tab of the Virtual Service Image Recorder.
  2. Complete the fields on the Basics tab and click Next.

    The next step in the recorder opens.

  3. Complete the connection details fields.
    Client RFC Connection Properties

    Defines the Client RFC Connection properties file that contains connection properties that VSE uses to register itself under a program ID to an SAP gateway and receive IDocs. The properties should be the same as those specified in a .jcoServer file.

    Client RFC Destination Name

    Specifies a unique name that identifies the RFC destination.

    Client System Connection Properties

    Specifies the Client System Connection properties file that contains connection properties to return IDocs to the client SAP system. These properties should be the same as those specified in a .jcoDestination file that can be used to connect to the client SAP system.

    Client System Name

    Specifies a unique name to identify the client SAP system.

    Request Identifier XPath Expressions

    Specifies the XPath expressions that the protocol uses with the request IDoc XML to generate an identifier. The request identifier XPath expresions can be a single XPath expression. This identifier is used to correlate a request IDoc to a response IDoc. XPath expressions can also be a comma-separated list of XPath expressions, in which case the resulting values from the multiple expressions are concatenated (separated by dashes) and used as an identifier.

    Server RFC Connection Properties

    Specifies a properties file that contains connection properties that VSE uses to register itself under a program ID to an SAP gateway and receive IDocs. The properties should be the same as those specified in a .jcoServer file to start a JCo server program that receives IDocs from the server SAP system.

    Server RFC Destination Name

    Specifies a unique name to identify the Server RFC destination.

    Server System Connection Properties

    The Server System Connection properties file contains connection properties to return IDocs to the client SAP system. These properties should be the same as those specified in a .jcoDestination file that can be used to connect to the SAP server system.

    Server System Name

    Specifies a unique name to identify the Server SAP system.

    Response Identifier XPath Expressions

    Defines the XPath expressions that the protocol uses with the response
    IDoc XML to generate an identifier. The Response Identifier XPath Expressions can be a single XPath expression. This identifier is used to correlate a response IDoc to a request IDoc that was received earlier. XPath expressions can also be a comma-separated list of XPath expressions, in which case the resulting values from the multiple expressions are concatenated (separated by dashes) and used as an identifier.

  4. Click Next to open the recording window.
  5. Start the application that communicates with the SAP server and perform the activity that you want to record.
  6. When you see that transactions have been recorded on the Virtual Service Image Recorder window, click Next.

    The data protocols window opens.

    The XML data protocol is selected on the request-side data protocols, because VSE stores the IDocs as XML. Remove the XML data protocol, as it overrides the operation name that the JCo IDoc protocol sets.

  7. Click Next.

    The conversation starter window opens.

  8. Click Next.
  9. Select the options to display the VSM and VSI, and click Finish.

    The Service Image Editor displays the SAP JCo IDoc service image.