cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping -

Former Member
0 Kudos

Hi All,

Here I require help from you guys..

I am doing message mapping where my source and target structures are almost same.

Source data structure

MT_Source

|_____Records (1..Unbounded)

|___RecordType1 (1..)

|___ RecordType2 (1..)

|___ RecordType3 (1..)

Target data structure

MT_Target

|_____Records (1..Unbounded)

|___RecordType1 (1..)

|___ RecordType2 (1..)

|___ RecordType3 (1..)

But here I suppose to carry only those records from source to target where RecordType1 from source is not null.

Example: - if source is having 100 records and out of that 30 are having null value for RecordType1 then I need to carry only these 30 records to target.

Thanks,

Sunil Bhavsar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sunil,

Create the UDF and mapped to MT_Target and in the UDF, take the one inputMT_Source-RecordType1 as Queue and loop all the records and check if it is null then add the record to result otherwise don'ts once you come out from the loop just return those values exist in result.

Thats all your requirement will complete, in the same way map the to the remaining fields with the help of MT_Source-RecordType1.

Warm Regards,

Vijay

Answers (4)

Answers (4)

Former Member
0 Kudos

Sunil,

In mapping use createif node funciton. check RecordType1 value to null. If it is null then only it passes the records to target. So you have to map like this:

RecordType1>equals>Null>createif>Records in target. Then if the value is null then only it passes to the target else it will stop.

Regards,

---Satish

Former Member
0 Kudos

Hi,

Thanks to all...

This issue got solve by

And

http://www.flickr.com/photo_zoom.gne?id=572921073&size=o

Vijay I have awarded points to you....

---sunil

Former Member
0 Kudos

Hi Sunil

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Mapping Simplified - Part I

/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool - Replication of Nodes Using the Graphical Mapping Tool

http://help.sap.com/saphelp_nw04/helpdata/en/ee/bf9640dc522f28e10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/79/2835b7848c458bb42cf8de0bcc1ace/frameset.htm

/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions

Hope this will help you ...

pls reward if useful

Former Member
0 Kudos

Hi

U can create a user defined function to check the value.if it s not null map it to target.

regards

yugapreetha

Former Member
0 Kudos

Hi Yugapreetha,

Thanks for quick reply...

I have tried with UDF where i am checking null value. It is giving me 30 records but unfortunately, these 30 records having first 30 records values and not from actually null 30 records value...

Thanks,

Sunil bhavsar