Skip to Content
Author's profile photo Former Member

Working with cXML


cXML (commerce eXtensible Markup Language) is a protocol, created by Ariba in 1999, intended for communication of business documents between procurement applications, e-commerce hubs and suppliers. cXML is based on XML and provides formal XML schemas for standard business transactions, allowing programs to modify and validate documents without prior knowledge of their form. Each cXML document is constructed based on XML Document Type Definitions (DTDs). Acting as templates, DTDs define the content model of a cXML document, for example, the valid order and nesting of elements, and the data types of attributes.

You can find more information on cXML at

How to obtain the cXML DTD:

All the versions of cXML DTD’s are present in the website. Please see the table below for details:



Basic cXML documents<version>/cXML.dtd

Confirmation and Ship Notice<version>/Fulfill.dtd


Type Definition<version>/Catalog.dtd

Payment Remittance<version>/PaymentRemittance.dtd


I need version 1.2.011 in my project, so to get all the details I need to use the URL’s below:



Basic cXML documents

Confirmation and Ship Notice


Type Definition

Payment Remittance

Use any tools to convert the DTD into an XSD

In SAP PI, Import the XSD as an External Definition in the required namespace. I have imported it as cXML_1_2_011

Image 1.png

Image 2.png

When choosing the message in message mapping, choose cXML.

Disable nodes that you are not using in the mapping.

Image 3.png

When selection the Operation Interface choose cXML

Image 4.png

Image 5.png

The rest of the steps for building the interface are the same…



Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Very Nice Information

      Author's profile photo Former Member
      Former Member

      Thanks for sharing it. Helpful information.

      Author's profile photo Bhargava krishna Talasila
      Bhargava krishna Talasila

      Hi Preetam,

      Nice blog, with good explanation.

      we have a requirement to send the purchase orders in CXML format.

      i didn't find the DTD for this, please help me.

      Can we send the data in CXML format using PI standard adapters or we have to use ARIBA adapters?


      Bhargava krishna

      Author's profile photo Former Member
      Former Member

      Hi Bhargava,

      Was this problem solved? can you let me know the solution made for it?


      Author's profile photo Former Member
      Former Member

      Nice info...

      We can alwayse use DTD as  well... thought to mention this as you mentioned in a blog to convert DTD to XSD.


      Author's profile photo Former Member
      Former Member

      Hi Preetam,

      It helps a lot to understand the cxml concept and working in PI!

      I am having the exact scenario as below url:

      I am planning to send PO from SAP SRM to some third party vendor and they only accepted cXML format. once i converted the PO DTD to xsd (as you suggested above) and prepare final xml, how do i convert the message into cxml format? or the above inbound service will get cxml after messageĀ  from source xml?

      Appreciate your quick response - Thanks.