cancel
Showing results for 
Search instead for 
Did you mean: 

Occurance field in the creation of Data Type

Former Member
0 Kudos

Hi Experts

Please anyone explain me the significance of the field occurance at the time of data type creation with an example ?

Thanks

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Sharma,

occurence of an element or node in a data type determines how many times the element/node will appear in the payload.

for example

DT_full_name

occurence

name --- 1

firstname 1

middlename 0...1

lastname 1

here name is a node and rest are elements....

so here name is the mendatory node...

middlename is optional.. means it may occur in the payload or may no

The payload will look like

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_full_name xmlns:ns0="https://file_to_filescenario">

<name>

<firstname>Biplab</firstname>

<lastname>Das</lastname>

<name>

</ns0:MT_full_name>

since middle name was optional...so its not their in the payload.

Regards

Biplab

Former Member
0 Kudos

Hi,

See the following example with explanation.

Suppose if you create a structure bellow

-->Name 1..1

--FirstName 1..Unbounded

--Surname 1..1

-->Address 0..3

--Street 0..1

--City 1..1

--Phone 0..Unbounded

--Email 0..Unbounded

1. First Name:-

According to above structure one person has ateast First name and more name like that those values you can enter in FirstName field thats what occurence has given 1...Unbounded

2. Surname:-

One person having only one surname so that it should accept only one value thats what occurence has given 1.

3. Phone:-

Person has 0 or more phone numbers

4. Email:-

Person has 0 or more email IDs.

Note: if you give the occurence 1 then it is a mandatory field then you must give the value.

Like this you have to analyse. If you analyse like this you can specify the occurences when you create Data type.

If it is usefull award the points.

Thanks,

Satish.

Former Member
0 Kudos

Hi Aquarian,

Ocurrance of a field is the amount of times a particular field appears.

A field with 0 to 1 occurance can occur 0 times minimum, and once at the max.

0-unbounded would mean it can occur 0 times or as many times.

1-1 means it is mandatory for the field to occur atleast once and it cannot occur more times.

1-unbounded is when a field appears atleast once and can have many occurances too.

Regards,

Lavita.

Former Member
0 Kudos

Employee

Eno...........0..1

Ename .............1..1

Here if the occurance is 0 to 1,it is not manditory to map the target field.

The other case 1..1 there must be atleast 1 target field that has to be mapped .

Hope this helps you.

Regards,

Srini

Former Member
0 Kudos

Hi,

The field occurance allows to use the perticular field for multiple times as per the requirments,

if you're talking about standard XML schema data types used in the XI they are (should be) the same as in standard so it comes with minOccures and MaxOccures.

refer below links

http://www.w3.org/TR/xmlschema-2/#built-in-datatypes

http://help.sap.com/saphelp_nw04/helpdata/en/de/705c3c3806af06e10000000a11402f/frameset.htm

Thanks

Swarup

Former Member
0 Kudos

Hi,

Occrance is used to occur a field in datype .

That means if u provide occurace as 3 then that field will occur 3 times in Integration enigne and it will repeate 3 times when u post that field in source message...

plz award points..

thnq