cancel
Showing results for 
Search instead for 
Did you mean: 

CPI iFlow Message Mapping UBL 2.1 Invoice XSD error

marco-silva
Participant
0 Kudos

Dear experts,

I would like to perform an XML creation in CPI. I'm following the UBL 2.1 format for invoices.

On my iFlow, I uploaded all the XSD resources needed for UBL-Invoice-2.1.

Then on my message mapping I select the main file "UBL-Invoice-2.1.xsd" but I get a lot of errors:

Any idea of what I'm doing wrong? I found SAP note 2564364 and I think I'm following the recommendation, despite I'm not using Eclipe.

Thank you.

Best regards,

Marco Silva

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member609643
Discoverer
0 Kudos

Hello ,

I uploaded all xsd's from resources. I could import . then I tried to map . It has been done. But after mapping I had the deployment problem. There is no any details. Could you solve your problem?

marco-silva
Participant
0 Kudos

Hello,

I had no luck with this at the time. Never tried again.

Regards.

marco-silva
Participant
0 Kudos

Dear Sriprasad,

Here are the steps that I perform on CPI:

Locally I change the schemaLocation of the imports that are in the main file UBL-Invoice-2.1.xsd:

I upload all the XSD file in my iFlow ressources:

Then I create a Message Mapping:

And I select UBL-Invoice-2.1.xsd as Target Message:

I get an error per each element referencing an imported namespace:

Regards,

Marco Silva

marco-silva
Participant
0 Kudos

Hello,

I followed the steps of the note. Since the beginning I put the schemaLocation of the XSD imports at same level than the main XSD.

I'm pretty sure that the issue isn't here.

Then I uploaded all the XSD to the iFlow resources, but when I choose the main XSD for my message mapping I get an error per each element referencing an imported namespace.

It seems to me that I performed the same steps on the SAP Cloud Platform Integration web cockpit as you did in Eclipse.

Regards,

Marco Silva

Sriprasadsbhat
Active Contributor

Please share the error.Will let u know the steps to be followed.

Sriprasadsbhat
Active Contributor
0 Kudos

Helli Mark,

First change the xsd as mentioned in the note or my post.Then first add all your referenced xsd and then add main xsd then it should work.

Post trying only i have posted the answer and that works without any issues in Eclipse tooling

Regards,

Sriprasad Shivaram Bhat

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Marko,

Please folow below mentioned steps and then upload the xsd to webui then it works.

https://answers.sap.com/questions/327504/how-to-import-ubl-order-xsd-into-hci-mapping.html

Regards,

Sriprasad Shivaram Bhat

marco-silva
Participant
0 Kudos

Hello Sriprasad,

I red the post that you mention before posting this question. I saw also your answer in it, you basically say what's on SAP note 2564364.

I get the error when I try to add the main XSD to my message mapping, so it's after those steps, no?

Have you performed it yourself? If yes, can you give me more information about how you did it in Eclipse and how you made it then available on CPI?

Regards,

Marco

carlosrpereira
Explorer
0 Kudos
To import the XSDs to CPI tenant you just need create 2 folders in your local computer, first will be the "mainDoc" where you will include the XSDs from the mains document types (invoice, credit note, etc), a second folder in the same root folder called "common",
carlosrpereira
Explorer
0 Kudos
To import the XSDs to CPI tenant you just need create 2 folders in your local computer, first will be the "mainDoc" where you will include the XSDs from the mains document types (invoice, credit note, etc), a second folder in the same root folder called "common", you will insert on this folder all the xsds files exisiting in the common folder from UBL zip or if you are download one by one by the browser will be all thar xsds related to CommonAgregateComponents, CommonBasicComponents, unqualifiedDataTypes, etc.
carlosrpereira
Explorer
0 Kudos

For add the XSDs from UBL in your I-Flow you will need create a zip file with 2 folders inside ( mainDocument, and common )
Inside the mainDocument you will put XSD file relative to the main XML that you will need work, like Invoice. I

Inside the common folder you will be inserting all the xsds files relative to the common data types;

carlosrpereira_0-1711719164543.png

you will zip the both files together and upload it inside your I-flow as XSDs definition.

automatcaly SAP CPI will made all the references necessaries to you use it. BUT, you will have a problem to use the MessageMapping object because there is some fields that they are recursives ( inside them there are another fields that are calling it againg ) and MessageMapping structure will not support it.