cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with mapping logic in SAP PO !

das_sappo
Participant
0 Kudos

Hi Experts,

I have 4 fields in the source and they are NAME, ID, EMAIL & ACCOUNT.

If the any of the first 3 fields (NAME.ID,EMAIL) contains value then target field (NUMBER) should not be populated.

If the first 3 fields contains null then target field (NUMBER) should hold the value from source field (ACCOUNT).

Please suggest.

Regards,

Arvik

Accepted Solutions (1)

Accepted Solutions (1)

ag3silaus
Participant
0 Kudos

Hello das.sappo,

If I understood correctly, you are trying to create this mapping.

Here is the logic that you need to implement in Message Mapping.

After the implementation, here are the results ==>

First, I tried to without any value for first three elements.

Number element has been created.

Second attempt with only name element.

As you can see, Number element has not been created.

Please don't forget to change Number elements' cardinality in XSD.

I hope this answer help your requirements.

Thanks,

Burak

Answers (2)

Answers (2)

das_sappo
Participant
0 Kudos

Thanks Burak .

Appreciate your help.

ag3silaus
Participant
0 Kudos

Hello das.sappo ,

if you can provide XSD and Sample XML data, it could be helpful for me. Because I couldn't understand cardinality for NAME. Is it could be blank or not exist? This also applies to other fields. You can easily get what you want with IF and AND functions.

Thanks,

Burak