cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with the occurrence of a message

0 Kudos

Hi.

We have the next problem:

In a message mapping the target message is a imported XML , and we want to change the occurrence of the message. It has the occurrence “1” and we want to set it to “0..unbound”. But we can´t change it. Somebody knows why??

Best Regards

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi.

Thanks for your reply. But we continue with the same problem.

This is the XML:

<?xml version="1.0" encoding="ISO-8859-1"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="DOCUMENTO" >

<xs:complexType>

<xs:sequence>

<xs:element name="PROYECTOS" nillable="false" minOccurs="0"

maxOccurs="unbounded">

<xs:complexType>

<xs:sequence>

<xs:element name="ENTIDAD" type="xs:string" />

<xs:element name="ACCION" type="xs:string" />

<xs:element name="CODPROYECTO" type="xs:string" />

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:schema>

We have import this XML and we can´t change it occurrence in the tab of "Messages" in our Message Mapping

Best Regards

prateek
Active Contributor
0 Kudos

we can´t change it occurrence in the tab of "Messages" in our Message Mapping

Changing the occurrence in message mapping is not possible.

Change the structure if u have a datatype

Or export it on local file system, edit it in notepad, then reimport it in external definition.

Regards,

Prateek

nisarkhan_n
Active Contributor
0 Kudos

yes you cannot change the occurence of the field of the XML which you have impotred in XI........you have to change it outside using the tool like notepad or xmlspy save it locally drive....then import it again....

if you are still facing the same problem after importing also then you have not changed it properly........

use the option export XML file that will come with the occurence values not the ablve you have pasted....try and let us know...

former_member184619
Active Contributor
0 Kudos

Hi,

Check this blog for how tochange it..although it is modifying an IDOC.

but it will give u an idea.

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

Sachin

Former Member
0 Kudos

Hi,

You Can't change the Occurance of the Structure in the Mapping .

You have to change the Occurance of the File Before Importing it into the Mapping

OR

Export the Imported file into Notepad & Change the occurance & save it & Re-Import it.

Regards

Giri

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Olcoz,

u can't change it in XI.Before importing the XML....edit the file and search for "occurence =1" and replace it with “0..unbound”. there...

i mean make the changes u required..and then import...

regards

biplab

Former Member
0 Kudos

Hi,

You Can Change the Occurance of that Target Message Before Importing into the Mapping Itself.

Open the File & Change the Occurance.

Reward Points If Helpful

Regards

Giri

former_member190313
Active Participant
0 Kudos

hi

Open the message in XML editor like altova

change the occurance and import again

it will work

sheetal

nisarkhan_n
Active Contributor
0 Kudos

export the XML file outside in a notepad or XMLspy tool then change the occurcene of that particular fieldd from 1 to minOccurence 0 to Maxoccurence=Unbounded save it and then import it again......