cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping

Former Member
0 Kudos

Hi All

As far as XI or PI is concerned ,i have a question about mapping.

If the source is an IDOC : and it has some qualifiers:

E1KTEXT

QUALI : A

E1KTEXT

QUALI : B

So if we want to validate the qualifier and not map to the target if qualifer does not come as A or B in the source,how can we achieve this?

I see that in my receiver structure the field has an occurence of 0--n.. So even if the qualifier is Z ,it is still mapping to the target.I want to validate the qualifier and fail the mapping if qualifier is anything besides A or B.

Please suggest.

Thanks..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

QUALI---------->equalsS-----\
Constant[A]--->                  or------>if--------->tgt
QUALI----------->equalsS----/            then<----QUALI
Constant<b>---->

The above mapping does not create the target if the value of QUALI are other than A or B even though the occurance of tgt is 0..n.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hey,

If you dont want to pass a value than use createif.

If you want to pass a value use createif followed by ifWithoutElse.

regards,

Milan

Former Member
0 Kudos

Hi

Use standard CreateIf function in Message mapping. You can check whether the Qualifier is A or B -> Createif -> target .

This will create target field only when the condition for A or B is true

Thanks

Gaurav

Former Member
0 Kudos

did u try using createIF node function and have the condition check for qualifier..

Former Member
0 Kudos

Hi

I want to check at field level ,not at segment level.

Can we use createif at field level?

Thanks..

Former Member
0 Kudos

Hi

yes you can but with createif you need to use ifElse, ifWithoutElse etc based on your requirement.

Thanks

Gaurav

Former Member
0 Kudos

Can I see some screeshot of what we are talking about ..

Createif with ifelse ..

Former Member
0 Kudos

Hey,

It looks something like this.

Source field -> Exists (node function) -> CreateIf(node func)-> ifwithoutelse.

Source field-> else part of ifwithoutelse

ifwithoutelse-> target field.

regards,

Milan