cancel
Showing results for 
Search instead for 
Did you mean: 

mapping

Former Member
0 Kudos

Hi People

I am trying to 1 mapping,

Sources side

Student

Name AAA

No 100

Group bca

TotalMarks 1600

this is my source data, and in test tab i created duplicate data for stu1 and stu2 in that data is diff means like

Target Side

Student

Name AAA

No 100

Group bca

TotalMarks 1600

Student1

Name BBB

No 101

Group bca

Marks 1700

Student2

Name CCC

No 102

Group bca

Marks 1750

i need like this

How it's possible can u tell me the process ASAP, i taken source side and target side 1:unbound all data elements

Thanks & Regards

Shekar

Accepted Solutions (0)

Answers (7)

Answers (7)

aashish_sinha
Active Contributor
0 Kudos

Hi,

Look into these weblogs

/people/aashish.sinha/blog/2008/01/17/step-150-by-150-step-simple-approach-for-xslt-mapping

/people/aashish.sinha/blog/2008/01/21/xslt-mapping-for-multiple-segments-of-xml

I hope you must to thinking to do things like this weblog.

Regards

Aashish Sinha

PS : reward points if helpful

former_member193376
Active Contributor
0 Kudos

Hi

Manipulate with context handling and you will get your output as per your requirment.

Thanks

Saiyog

Former Member
0 Kudos

Hi,

Based on the context change you can pass the data to the required nodes.

Now in you case you will be sending the Multiple Data under Source structure, and on target side you have to pick up it as group wise,

You can achieve this by maintaining the occurance and not duplicating the structure as Student, student1, student 2etc.

Just map the Source to target fields and it will create seperate nodes on receiver side.

Make the occurance of Student as 0---Unbounded for remaininag fields keep it as 1..1

But if you wish to duplicate the fields as Student, student1, then do the below steps

on Target side your structure is as below.

Student

-


>Name

-


>No

-


>Group

-


>TotalMarks

Student1

-


>Name

-


>No

-


>Group

-


>TotalMarks

Student2

-


>Name

-


>No

-


>Group

-


>TotalMarks

So you have created the as many no of nodes as the total no of students.

For this you have to add the udf like this,

Name -


> TestUDF -


> Name

Test UDF input parameter Student /Name


wirte your code

return(Name[0]);

Test UDF input parameter Student1 /Name


wirte your code

return(Name[1]);

Thanks

Swarup

Former Member
0 Kudos

Hi Raja shekhar,

Try this....

Map the student on the source side to student field on the target side,just make sure the occurence is 1..unbounded...

Also map the other fileds as one to one...

let me know if it works out.

Former Member
0 Kudos

Dear Rajsekhar,

Plz do the mapping based on this forum thread.

[/message/5520105#5520105 [original link is broken]]

Regards

Praveen

Former Member
0 Kudos

Hi Shekar

based on the input data it would generates the target output.

Regards

Abhishek Mahajan

**Reward points if helpful*

Former Member
0 Kudos

Hi,

Here in the source side you should change the context, then based on the context and input data it generates the targets.

To handle contexts follow this links

/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping

http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm

/people/venkat.donela/blog/2005/06/09/introduction-to-queues-in-message-mapping