cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping Requirement

Former Member
0 Kudos

Hi Experts,

My Target Structure is 1..unbounded.

I need to check a condition

say if ABC equals 5, then I need to create that Node.

No else condition is there.

If i use

if ABC equals 5 then Pass the values to the target structure

else

some constant is mapped to target structure, empty node is created which is not required.

Please help me..

Regards,

SPK

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks a lot Experts

Former Member
0 Kudos

Hi Pooja,

My requirement is

My Target Field's occurence is 1..unbounded.

If PARVW of source structure is WE,

I need to send the values "QQERREEGGFFGGF" to the Target FIELD "DATA32"

I used both if and IfWithoutElse.

If I use IF, an empty node is created, which should be avoided.

If I use IfWithoutElse, SUPPRESS values(for those condition is not met) occurs, due to this Check xml instance in Target structure error occurs

Former Member
0 Kudos

Hello,

why dont you try with node function : CreateIf

Regards,

Sreenivas.

Former Member
0 Kudos

Hi SP.

When you are using If and empty node is getting created. Use NOT before CreateIF .. this will solve.

Thanks

Gaurav

Former Member
0 Kudos

I am sorry, but I still dint get the clear picture of your source and target structure.

As mentioned in my last response, you should be able to get your problem done by using createif and ifwithourElse. Try to change the context and see if it will fix your problem.

If you can provide the sample input xml and the expected target xml; it will be more clear to understand your requirement.

Thanks,

Pooja

Former Member
0 Kudos

Hi Sudhir,

Pls understand my requirement..

If i use (IF WITH ELSE)

if ABC equals 5 then Pass the values to the target structure

else

some constant is mapped to target structure, empty node is created which is not required.

if i use (IF WITHOUT ELSE)

Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

an error is displayed, since the condition fails somewhere.

Regards,

SPK

SudhirT
Active Contributor
0 Kudos

What is the occurence of target field if it is min. 1 then this wont work and you will have to create that node else ifwithoutelse should work.

Former Member
0 Kudos

The error is showing that there is some inconsistency in the occurence of the source and target field you are trying to map.

You should be able to solve your problem using IfwithoutElse and createIf.

If you provide the your input and output structure in detail, we will be able to help you.

Thanks,

Pooja

SudhirT
Active Contributor
0 Kudos

Simply use ifWithoutElse boolean function.

thanks.

Former Member
0 Kudos

Hi,

Use CreateIf functionality provided in graphical Mapping

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

regards

Ganga