15
7/15/2015 Message Mapping Simplified – Part II | SCN http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 1/15 Getting Started Newsletters Store Products Services & Support About SCN Downloads Industries Training & Education Partnership Developer Center Lines of Business University Alliances Events & Webinars Innovation Log On Join Us Hi, Guest Search the Community Activity Communications Actions Browse sravya.talanki2 0 Tweet 0 I recommend the readers to go through Message Mapping Simplified Part I before marching ahead with this blog. There was a delay in blogging the Part II due to my project schedules. I still remember my school days where I always loved to solve the most difficult and confusing problems encountered in my favorite subject “Maths”. The same used to happen with me in computers while in graduation. I never scored excellent percentages in my report cards but I used to be the first one to raise a hand with a solution whenever my teacher declares the problem is not easily solvable. I don’t sleep until that is solved and have been successful till date. The most irritating part in the message mapping is to understand the node functions. So I will try to explain about it, which might be useful for any new XI developers to play around. I can’t assure that explanation is 100% correct as I am trying to explain the way I understand. I am able to solve any complex message mapping that is encountered so far and thought of putting across my understanding to sdn. Experienced professionals can excuse if the understanding is already there! Types of useful node functions: 1.removeContexts 2. SplitByValue 3. collapseContexts 4.copyValue (not a node function) 5.createIf 6.exists 7.useOneAsMany Here I tried explain all the node function with one real time example .This kind of scenario is very frequent when dealing with idocs and flat files. Brief about Transformation Logic : Material Master Idoc is sent with one header and multiple items which has to be written to a target file containing combination of header and line item details. I didnot use the actual idoc structure for better clarity. Notice the occurrence field in both the source and target format. I have to generate target header nodes equal to the number of occurrences of item in the source node. So I map it as shown below. I chose the transformation logic such that all the node functions are used. 1.removeContexts “There is absolutely no difference between my children or grand children or great grand children”. Material Group is sent in the item node of the source idoc but I want it in the header node of the target idoc. So I need to fool the mapping runtime that Material Group is coming in the header node of the source. removeContext exactly does that. Message Mapping Simplified – Part II Posted by Sravya Talanki in sravya.talanki2 on Dec 8, 2005 2:07:41 AM Share 2 Like

Message Mapping Simplified – Part II _ SCN.pdf

Embed Size (px)

Citation preview

Page 1: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 1/15

Getting Started Newsletters Store

Products Services & Support About SCN Downloads

Industries Training & Education Partnership Developer Center

Lines of Business University Alliances Events & Webinars Innovation

Log On Join UsHi, Guest Search the Community

Activity Communications Actions

Browse

sravya.talanki2

0 Tweet 0

I recommend the readers to go through Message Mapping Simplified Part I before marching ahead with this blog.There was a delay in blogging the Part II due to my project schedules. I still remember my school days where I alwaysloved to solve the most difficult and confusing problems encountered in my favorite subject “Maths”. Thesame used to happen with me in computers while in graduation. I never scored excellent percentages in my reportcards but I used to be the first one to raise a hand with a solution whenever my teacher declares the problem is noteasily solvable. I don’t sleep until that is solved and have been successful till date.The most irritating part in the message mapping is to understand the node functions. So I will try to explain about it,which might be useful for any new XI developers to play around. I can’t assure that explanation is 100% correctas I am trying to explain the way I understand. I am able to solve any complex message mapping that is encounteredso far and thought of putting across my understanding to sdn. Experienced professionals can excuse if theunderstanding is already there!

Types of useful node functions:1.removeContexts2. SplitByValue3. collapseContexts4.copyValue (not a node function)5.createIf6.exists7.useOneAsManyHere I tried explain all the node function with one real time example .This kind of scenario is very frequent whendealing with idocs and flat files.Brief about Transformation Logic : Material Master Idoc is sent with one header and multiple items which has to bewritten to a target file containing combination of header and line item details. I didnot use the actual idoc structure forbetter clarity.

Notice the occurrence field in both the source and target format. I have to generate target header nodes equal to thenumber of occurrences of item in the source node. So I map it as shown below.

I chose the transformation logic such that all the node functions are used.1.removeContexts “There is absolutely no difference between my children or grand children or great grandchildren”. Material Group is sent in the item node of the source idoc but I want it in the header node of the targetidoc. So I need to fool the mapping runtime that Material Group is coming in the header node of the source.removeContext exactly does that.

Message Mapping Simplified – Part IIPosted by Sravya Talanki in sravya.talanki2 on Dec 8, 2005 2:07:41 AM

Share 2Like

Page 2: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 2/15

We are making the grand child “Material Group” as a child of the header node and fooling the mappingruntime to parse accordingly.2.SplitByValue “I need a different parent for every instance of me”I will try to explain the function with the same mapping as readers can correlate well. Each instance of Itemno in thesource structure should generate a target itemNo and item under a different instance of the header node in the target.As we can observe that occurrences of item in the source and target structure are different we cannot map theelements of the item node directly. We use splitbyValue to achieve the same.

splitbyValue generates Itemno in the target for every value of itemNo in the source under a different target instance ofitem node which in turn belongs to a different header node.3.collapseContexts “ There is just a slight difference between my children or grand children or great grandchildren”. Similar to removeContext but context change is replaced with “”. If we need to createempty tags in the target for every context change in the source we can use it. I did not find it useful so I don’t liketo explain in detail.4.copyValue“How many ever times I occur I am copied just once”. This is not a node function but I amexplaining it as it is used very frequently in realtime.Let us take an instance of material group, which can occur as many times as the item node. But since we are mappingit to the header in the target node I just want to copy the first occurrence of material group and map it to the headernode. copyValue exactly does that.

5.createif“I have a criteria for existing”. It is used when you want to create target node or element basedon some condition.

We need to generate the material type tag in the target xml for only pencil material. This can be done using createIf.6. exists “Do I exist?”This is the most frequently needed when mapping idoc structure to file structure. Lot of times we come across ascenario where the fields (occurrence=0) are not mandatory in the idocs are not populated in the source xml and theyare required in the target xml (occurrence =1) which gives a mapping run time exception that target element cannot becreated. We can handle the error by checking whether the source tag exists and if it does not we can pass an emptyvalue, which generates the required target field.

Material Plant is optional in the source structure but the target field expects a blank if idoc does not populate thematerial group field. exists takes the head ache.7.useOneAsMany ”I occur only once but have to be replicated as many times as my siblings or nephews

Page 3: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 3/15

Average User Rating

(5 ratings)

My Rating:

0 Tweet 0

occur”.This is really a nice function, which will be used very often. As shown in the figure above the maximum occurrence ofthe header node in the source is 1 and the target is unbounded. So we have only one occurrence of materialdescription, which has to be replicated for every line item. Bingo! useOneAsMany exactly does that! Check it out.

I assume that this information is up to the expectations of the readers who are eagerly waiting for the partII .I provideda real time example to elucidate the concepts in a better fashion.

7355 Views

Share 2Like

98 Comments

Like (0)

Michal Krawczyk Dec 8, 2005 3:12 PM

>>>I always loved to solve the most difficult and confusing problems encountered

keep doing it with the XI :)

Regards,michal

Like (0)

Sameer Shadab Dec 16, 2005 5:14 AM (in response to Michal Krawczyk)

Sravya we always love reading your blogs. And i have been following your blogs closely,and have noticed that you try to address the problems unanswered on the forums. Keep upthe good work.One small suggestion, provide a link to your message mapping Part I in this blog. This willmake it easier for people to access it.

Like (0)

Sravya Talanki Dec 16, 2005 5:39 AM (in response to Sameer Shadab)

You can see some more stuff soon..:)

Like (0)

kamlesh kumar Jan 9, 2008 10:13 PM (in response to Sravya Talanki)

I always loved to solve the most difficult and confusing problemsencountered

keep doing it with the XI :)

Regards,(kamlesh kumar)

Assad SM Jun 8, 2006 8:38 PM (in response to Michal Krawczyk)

hi,i am currently working on XI, need guidance to overcome regular difficulties.

Hope to hear a positive response.

Page 4: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 4/15

Like (0)

[email protected]+60163734179

Like (0)

Assad SM Jun 8, 2006 8:38 PM (in response to Michal Krawczyk)

hi,i am currently working on XI, need guidance to overcome regular difficulties.

Hope to hear a positive response.

[email protected]+60163734179

Like (1)

Sravya Talanki Jun 8, 2006 11:40 PM (in response to Assad SM)

ASSAD,

Please post on the forum for any problems or issues..There are many tosolute!..Good luck!

Like (0)

Michal Krawczyk Dec 8, 2005 3:12 PM

>>>I always loved to solve the most difficult and confusing problems encountered

keep doing it with the XI :)

Regards,michal

Like (0)

Sameer Shadab Dec 16, 2005 5:14 AM (in response to Michal Krawczyk)

Sravya we always love reading your blogs. And i have been following your blogs closely,and have noticed that you try to address the problems unanswered on the forums. Keep upthe good work.One small suggestion, provide a link to your message mapping Part I in this blog. This willmake it easier for people to access it.

Like (0)

Sravya Talanki Dec 16, 2005 5:39 AM (in response to Sameer Shadab)

You can see some more stuff soon..:)

Like (0)

kamlesh kumar Jan 9, 2008 10:13 PM (in response to Sravya Talanki)

I always loved to solve the most difficult and confusing problemsencountered

keep doing it with the XI :)

Regards,(kamlesh kumar)

Like (0)

Assad SM Jun 8, 2006 8:38 PM (in response to Michal Krawczyk)

hi,i am currently working on XI, need guidance to overcome regular difficulties.

Hope to hear a positive response.

[email protected]+60163734179

Assad SM Jun 8, 2006 8:38 PM (in response to Michal Krawczyk)

Page 5: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 5/15

Like (0)

hi,i am currently working on XI, need guidance to overcome regular difficulties.

Hope to hear a positive response.

[email protected]+60163734179

Like (0)

Sravya Talanki Jun 8, 2006 11:40 PM (in response to Assad SM)

ASSAD,

Please post on the forum for any problems or issues..There are many tosolute!..Good luck!

Like (0)

Michal Krawczyk Dec 8, 2005 3:12 PM

>>>I always loved to solve the most difficult and confusing problems encountered

keep doing it with the XI :)

Regards,michal

Like (0)

Sameer Shadab Dec 16, 2005 5:14 AM (in response to Michal Krawczyk)

Sravya we always love reading your blogs. And i have been following your blogs closely,and have noticed that you try to address the problems unanswered on the forums. Keep upthe good work.One small suggestion, provide a link to your message mapping Part I in this blog. This willmake it easier for people to access it.

Like (0)

Sravya Talanki Dec 16, 2005 5:39 AM (in response to Sameer Shadab)

You can see some more stuff soon..:)

Like (0)

kamlesh kumar Jan 9, 2008 10:13 PM (in response to Sravya Talanki)

I always loved to solve the most difficult and confusing problemsencountered

keep doing it with the XI :)

Regards,(kamlesh kumar)

Like (0)

Assad SM Jun 8, 2006 8:38 PM (in response to Michal Krawczyk)

hi,i am currently working on XI, need guidance to overcome regular difficulties.

Hope to hear a positive response.

[email protected]+60163734179

Assad SM Jun 8, 2006 8:38 PM (in response to Michal Krawczyk)

hi,i am currently working on XI, need guidance to overcome regular difficulties.

Hope to hear a positive response.

[email protected]+60163734179

Page 6: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 6/15

Like (0)

Like (0)

Sravya Talanki Jun 8, 2006 11:40 PM (in response to Assad SM)

ASSAD,

Please post on the forum for any problems or issues..There are many tosolute!..Good luck!

Like (0)

Kavita Laddha Dec 9, 2005 12:48 AM

You have explained all node functions very nicely. Its very helpful and easy to understand.

Like (0)

Assad SM Jun 8, 2006 8:37 PM (in response to Kavita Laddha)

hi,i am currently working on XI, need guidance to overcome regular difficulties.

Hope to hear a positive response.

[email protected]+60163734179

Like (0)

Kavita Laddha Dec 9, 2005 12:48 AM

You have explained all node functions very nicely. Its very helpful and easy to understand.

Like (0)

Assad SM Jun 8, 2006 8:37 PM (in response to Kavita Laddha)

hi,i am currently working on XI, need guidance to overcome regular difficulties.

Hope to hear a positive response.

[email protected]+60163734179

Like (0)

Kavita Laddha Dec 9, 2005 12:48 AM

You have explained all node functions very nicely. Its very helpful and easy to understand.

Like (0)

Assad SM Jun 8, 2006 8:37 PM (in response to Kavita Laddha)

hi,i am currently working on XI, need guidance to overcome regular difficulties.

Hope to hear a positive response.

[email protected]+60163734179

Like (0)

Kevin Pinto Dec 16, 2005 7:35 AM

Being a newbie at XI, I found your blogs (Part 1 and 2) very helpful in demystifying certain aspects ofmessage mapping. Thank you !

Like (0)

Sravya Talanki Dec 16, 2005 8:31 AM (in response to Kevin Pinto)

Thanks Kevin

Kevin Pinto Dec 16, 2005 7:35 AM

Being a newbie at XI, I found your blogs (Part 1 and 2) very helpful in demystifying certain aspects ofmessage mapping. Thank you !

Page 7: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 7/15

Like (0)

Like (0)

Sravya Talanki Dec 16, 2005 8:31 AM (in response to Kevin Pinto)

Thanks Kevin

Like (0)

Kevin Pinto Dec 16, 2005 7:35 AM

Being a newbie at XI, I found your blogs (Part 1 and 2) very helpful in demystifying certain aspects ofmessage mapping. Thank you !

Like (0)

Sravya Talanki Dec 16, 2005 8:31 AM (in response to Kevin Pinto)

Thanks Kevin

Like (0)

H Rajkumar Dec 19, 2005 3:43 PM

Excepting more series..keep goahead!GoodLuck..!

Regards..rambarki1

Like (0)

H Rajkumar Dec 19, 2005 3:43 PM

Excepting more series..keep goahead!GoodLuck..!

Regards..rambarki1

Like (0)

H Rajkumar Dec 19, 2005 3:43 PM

Excepting more series..keep goahead!GoodLuck..!

Regards..rambarki1

Like (0)

Narayana Raju Sampathirao Dec 22, 2005 1:30 AM

Hi SravyaThe Blog is really excellent and is very helpful for a begginer like me to get a clear idea about themessage mapping.And I have a small query for you that I noticed in your Blog. While explaining "removeContexts" youmentioned a line "We are making the grand child “Material Group” as a child of the header node andfooling the mapping runtime to parse accordingly". Iam bit confused with this. Because, here Headernode and Item node are at the same level. And I feel if Header node would have been the parent ofItem node then the child of item node becomes the grandchild of Header node. But that is not thecase. both are at the same level. My doubt is whether "removeContexts" removes the context of the node above it (same level) or thecontext of the parent node.Sorry if this doubt doesn't make any sense. but it was confusing me a bit. I will be glad if you couldclear my confusion.Thanks in Advance.........

regards,Raju...

Like (0)

Sravya Talanki Dec 22, 2005 2:37 AM (in response to Narayana Raju Sampathirao)

The material group is under the rootnode or u can say it is even under the header node as itdoesnot make any difference as the occurence of the headernode is just 1..1.

Narayana Raju Sampathirao Dec 22, 2005 1:30 AM

Hi SravyaThe Blog is really excellent and is very helpful for a begginer like me to get a clear idea about themessage mapping.And I have a small query for you that I noticed in your Blog. While explaining "removeContexts" youmentioned a line "We are making the grand child “Material Group” as a child of the header node andfooling the mapping runtime to parse accordingly". Iam bit confused with this. Because, here Headernode and Item node are at the same level. And I feel if Header node would have been the parent ofItem node then the child of item node becomes the grandchild of Header node. But that is not the

Page 8: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 8/15

Like (0)

case. both are at the same level. My doubt is whether "removeContexts" removes the context of the node above it (same level) or thecontext of the parent node.Sorry if this doubt doesn't make any sense. but it was confusing me a bit. I will be glad if you couldclear my confusion.Thanks in Advance.........

regards,Raju...

Like (0)

Sravya Talanki Dec 22, 2005 2:37 AM (in response to Narayana Raju Sampathirao)

The material group is under the rootnode or u can say it is even under the header node as itdoesnot make any difference as the occurence of the headernode is just 1..1.

Like (0)

Narayana Raju Sampathirao Dec 22, 2005 1:30 AM

Hi SravyaThe Blog is really excellent and is very helpful for a begginer like me to get a clear idea about themessage mapping.And I have a small query for you that I noticed in your Blog. While explaining "removeContexts" youmentioned a line "We are making the grand child “Material Group” as a child of the header node andfooling the mapping runtime to parse accordingly". Iam bit confused with this. Because, here Headernode and Item node are at the same level. And I feel if Header node would have been the parent ofItem node then the child of item node becomes the grandchild of Header node. But that is not thecase. both are at the same level. My doubt is whether "removeContexts" removes the context of the node above it (same level) or thecontext of the parent node.Sorry if this doubt doesn't make any sense. but it was confusing me a bit. I will be glad if you couldclear my confusion.Thanks in Advance.........

regards,Raju...

Like (0)

Sravya Talanki Dec 22, 2005 2:37 AM (in response to Narayana Raju Sampathirao)

The material group is under the rootnode or u can say it is even under the header node as itdoesnot make any difference as the occurence of the headernode is just 1..1.

Like (0)

Rekha Lather Dec 22, 2005 10:01 AM

Good job Saryva,But I would like to share my experience with you using function exist in the mapping.I used functionexist in my mapping but to my surprise results were some thing really differnt.I can send you alldetails on your mail as it would be difficult to explain whole scenario over here.

Rekha.

Like (0)

Sravya Talanki Dec 22, 2005 10:03 AM (in response to Rekha Lather)

Thanks Rekha.Post it in the forum.

Like (0)

Rekha Lather Dec 22, 2005 10:25 AM (in response to Sravya Talanki)

Hi Sarya,It will be difficut to explain them without screen shot and I wont be able to pastescreen shot on forum.

Rekha

Like (0)

Sravya Talanki Dec 23, 2005 2:28 AM (in response to Rekha Lather)

Sure Rekha.drop in a email to [email protected] will solve it out.

Rekha Lather Dec 22, 2005 10:01 AM

Good job Saryva,But I would like to share my experience with you using function exist in the mapping.I used function

Page 9: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 9/15

Like (0)

exist in my mapping but to my surprise results were some thing really differnt.I can send you alldetails on your mail as it would be difficult to explain whole scenario over here.

Rekha.

Like (0)

Sravya Talanki Dec 22, 2005 10:03 AM (in response to Rekha Lather)

Thanks Rekha.Post it in the forum.

Like (0)

Rekha Lather Dec 22, 2005 10:25 AM (in response to Sravya Talanki)

Hi Sarya,It will be difficut to explain them without screen shot and I wont be able to pastescreen shot on forum.

Rekha

Like (0)

Sravya Talanki Dec 23, 2005 2:28 AM (in response to Rekha Lather)

Sure Rekha.drop in a email to [email protected] will solve it out.

Like (0)

Rekha Lather Dec 22, 2005 10:01 AM

Good job Saryva,But I would like to share my experience with you using function exist in the mapping.I used functionexist in my mapping but to my surprise results were some thing really differnt.I can send you alldetails on your mail as it would be difficult to explain whole scenario over here.

Rekha.

Like (0)

Sravya Talanki Dec 22, 2005 10:03 AM (in response to Rekha Lather)

Thanks Rekha.Post it in the forum.

Like (0)

Rekha Lather Dec 22, 2005 10:25 AM (in response to Sravya Talanki)

Hi Sarya,It will be difficut to explain them without screen shot and I wont be able to pastescreen shot on forum.

Rekha

Like (0)

Sravya Talanki Dec 23, 2005 2:28 AM (in response to Rekha Lather)

Sure Rekha.drop in a email to [email protected] will solve it out.

Like (0)

Sudharani Manne May 29, 2006 6:23 AM

Thanks for the precious info.

Like (0)

Sudharani Manne May 29, 2006 6:23 AM

Thanks for the precious info.

Like (0)

Sudharani Manne May 29, 2006 6:23 AM

Thanks for the precious info.

Gil Ritter Jun 7, 2006 2:16 AM

While reading your blog I notice that the IB is of a different color. I would like to use this feature todiffer my systems by color. How can I change the color of the IB? Is there another way like this:

How to apply themes in Exchange Infrastructure

Page 10: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 10/15

Like (0)

Like (0)

Gil Ritter Jun 7, 2006 2:16 AM

While reading your blog I notice that the IB is of a different color. I would like to use this feature todiffer my systems by color. How can I change the color of the IB? Is there another way like this:

How to apply themes in Exchange Infrastructure

Like (0)

Gil Ritter Jun 7, 2006 2:16 AM

While reading your blog I notice that the IB is of a different color. I would like to use this feature todiffer my systems by color. How can I change the color of the IB? Is there another way like this:

How to apply themes in Exchange Infrastructure

Like (0)

Ana Lima Jun 28, 2006 1:51 PM

Sravya,

This helped me a lot!

Please, keep posting!

Like (0)

Sravya Talanki Jun 28, 2006 8:38 PM (in response to Ana Lima)

Thanks Ana..:)..I have to start posting again:)

Like (0)

Ana Lima Jun 28, 2006 1:51 PM

Sravya,

This helped me a lot!

Please, keep posting!

Like (0)

Sravya Talanki Jun 28, 2006 8:38 PM (in response to Ana Lima)

Thanks Ana..:)..I have to start posting again:)

Like (0)

Ana Lima Jun 28, 2006 1:51 PM

Sravya,

This helped me a lot!

Please, keep posting!

Like (0)

Sravya Talanki Jun 28, 2006 8:38 PM (in response to Ana Lima)

Thanks Ana..:)..I have to start posting again:)

Like (0)

Sundararamaprasad Subbaraman Nov 6, 2006 3:05 AM

Hi Sravya,There is no need of RemoveContext b4 Copy Value. Irrespective of Context changes occuring in theinput, copy value considers everything under the root context and gets the value at the specifiedindex. :)Regards,Sundar

Like (0)

Sravya Talanki Nov 6, 2006 3:17 AM (in response to Sundararamaprasad Subbaraman)

But since I used the same example to demonstrate remove context the diagram is there.Youdonot find any prerequisite that remove context should be there for CopyValue in thedefinition I gave.It is jsu that diagram is reused.

Page 11: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 11/15

Like (0)

Sundararamaprasad Subbaraman Nov 6, 2006 3:05 AM

Hi Sravya,There is no need of RemoveContext b4 Copy Value. Irrespective of Context changes occuring in theinput, copy value considers everything under the root context and gets the value at the specifiedindex. :)Regards,Sundar

Like (0)

Sravya Talanki Nov 6, 2006 3:17 AM (in response to Sundararamaprasad Subbaraman)

But since I used the same example to demonstrate remove context the diagram is there.Youdonot find any prerequisite that remove context should be there for CopyValue in thedefinition I gave.It is jsu that diagram is reused.

Like (0)

Sundararamaprasad Subbaraman Nov 6, 2006 3:05 AM

Hi Sravya,There is no need of RemoveContext b4 Copy Value. Irrespective of Context changes occuring in theinput, copy value considers everything under the root context and gets the value at the specifiedindex. :)Regards,Sundar

Like (0)

Sravya Talanki Nov 6, 2006 3:17 AM (in response to Sundararamaprasad Subbaraman)

But since I used the same example to demonstrate remove context the diagram is there.Youdonot find any prerequisite that remove context should be there for CopyValue in thedefinition I gave.It is jsu that diagram is reused.

Like (0)

Christoph Gerber Mar 3, 2007 3:40 PM

Hi,

first of all thanks for this blog.

I am an absolute beginner to XI message mapping. I am just trying to understand the basics. I have aquestion on your first example for RemoveContext.

I do not understand why "removeContext" is needed to create MatGroup in every target Header node.You create a target header note out of every source item node. So MatgRoup in the soucre exists asoften as MatGroup in the target header node. I tried it without RemoveContext an it seems to work.

Did I misunderstand something?

Thanks in advance.

Christoph

Like (0)

Christoph Gerber Mar 3, 2007 3:40 PM

Hi,

first of all thanks for this blog.

I am an absolute beginner to XI message mapping. I am just trying to understand the basics. I have aquestion on your first example for RemoveContext.

I do not understand why "removeContext" is needed to create MatGroup in every target Header node.You create a target header note out of every source item node. So MatgRoup in the soucre exists asoften as MatGroup in the target header node. I tried it without RemoveContext an it seems to work.

Did I misunderstand something?

Thanks in advance.

Christoph

Christoph Gerber Mar 3, 2007 3:40 PM

Hi,

first of all thanks for this blog.

Page 12: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 12/15

Like (0)

I am an absolute beginner to XI message mapping. I am just trying to understand the basics. I have aquestion on your first example for RemoveContext.

I do not understand why "removeContext" is needed to create MatGroup in every target Header node.You create a target header note out of every source item node. So MatgRoup in the soucre exists asoften as MatGroup in the target header node. I tried it without RemoveContext an it seems to work.

Did I misunderstand something?

Thanks in advance.

Christoph

Like (0)

Rav Mandal Nov 3, 2007 6:01 PM

Great explanation...thanks Sravya...

Like (0)

Rav Mandal Nov 3, 2007 6:01 PM

Great explanation...thanks Sravya...

Like (0)

Rav Mandal Nov 3, 2007 6:01 PM

Great explanation...thanks Sravya...

Like (0)

Ashok Babu Kumili Dec 4, 2007 11:50 PM

The blog is very use full and played a vital role to accomplish my needs. Thankyou wish you a greatfuture.

Like (0)

Ashok Babu Kumili Dec 4, 2007 11:50 PM

The blog is very use full and played a vital role to accomplish my needs. Thankyou wish you a greatfuture.

Like (0)

Ashok Babu Kumili Dec 4, 2007 11:50 PM

The blog is very use full and played a vital role to accomplish my needs. Thankyou wish you a greatfuture.

Like (0)

vijaya lakshmiyn Oct 18, 2008 7:29 AM

Hi Sravya,

Gr8 blog.. quite a lot of info in compact form..i have just joined XI team sometime back and ur blogsare really helping me out..i am trying out one message mapping but in vain.hope u can help meout.please reply.

Like (0)

vijaya lakshmiyn Oct 18, 2008 7:29 AM

Hi Sravya,

Gr8 blog.. quite a lot of info in compact form..i have just joined XI team sometime back and ur blogsare really helping me out..i am trying out one message mapping but in vain.hope u can help meout.please reply.

Like (0)

vijaya lakshmiyn Oct 18, 2008 7:29 AM

Hi Sravya,

Gr8 blog.. quite a lot of info in compact form..i have just joined XI team sometime back and ur blogsare really helping me out..i am trying out one message mapping but in vain.hope u can help meout.please reply.

mirita mistry Nov 23, 2008 2:27 PM

Page 13: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 13/15

Like (0)

Hi Sravya, very nice analysis!!!It has made my view clear!! Moreover the very first paragraphs of your blogs are very inspiring!!!Thanks…Mirita Mistry

Like (0)

mirita mistry Nov 23, 2008 2:27 PM

Hi Sravya, very nice analysis!!!It has made my view clear!! Moreover the very first paragraphs of your blogs are very inspiring!!!Thanks…Mirita Mistry

Like (0)

mirita mistry Nov 23, 2008 2:27 PM

Hi Sravya, very nice analysis!!!It has made my view clear!! Moreover the very first paragraphs of your blogs are very inspiring!!!Thanks…Mirita Mistry

Like (0)

Megha Haware Jan 5, 2009 1:42 AM

Beautiful blog...very helpful.

But i am still not very clear about theuseOneAsMany function. If possible, can you please explain indetails ?

RegardsMegha

Like (0)

Megha Haware Jan 5, 2009 1:42 AM

Beautiful blog...very helpful.

But i am still not very clear about theuseOneAsMany function. If possible, can you please explain indetails ?

RegardsMegha

Like (0)

Megha Haware Jan 5, 2009 1:42 AM

Beautiful blog...very helpful.

But i am still not very clear about theuseOneAsMany function. If possible, can you please explain indetails ?

RegardsMegha

Like (0)

Juan Janse Dec 16, 2009 1:10 AM

Real Nice

Like (0)

Juan Janse Dec 16, 2009 1:10 AM

Real Nice

Like (0)

Juan Janse Dec 16, 2009 1:10 AM

Real Nice

Page 14: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 14/15

Like (0)

padmini udayakumar Jul 14, 2010 2:37 AM

Hi Sravya,Thanks for your wonderful blog.I have a requirement where in target side IDoc needs to be created.

In the source side for every new header element(Type, Ref,Data, Time) a new IDoc has to begenerated in the target.

SOURCE No of Occur |TARGET No of occurMT_GLACCBAL 1..1 |YCAQUERY 1..1>ROW 0.. unbounde|> IDoc 1..1 | > BEGIN required | > EDI_DC40 1..1 | > Z1Header 0..1 | > Segment required >Type 1..1 | > Type 0..1 >Ref 1..1 | > QRef 0..1 >Date 1..1 | > QDate 0..1 >Time 1..1 | > QTime 0..1 | > Z1ITEMLevel 0..9999| > Segment required >Field 0..1 | > Field 0..1 >Sign 0..1 | > Sign 0..1 >Option 0..1 | > Option 0..1 >Low 0..1 | > Low 0..1 >High 0..1 | >High 0..1

Please help in implementing this scenario.I used SPLITBYVALUE but it doesnot create a new IDoc.

Like (0)

padmini udayakumar Jul 14, 2010 2:37 AM

Hi Sravya,Thanks for your wonderful blog.I have a requirement where in target side IDoc needs to be created.

In the source side for every new header element(Type, Ref,Data, Time) a new IDoc has to begenerated in the target.

SOURCE No of Occur |TARGET No of occurMT_GLACCBAL 1..1 |YCAQUERY 1..1>ROW 0.. unbounde|> IDoc 1..1 | > BEGIN required | > EDI_DC40 1..1 | > Z1Header 0..1 | > Segment required >Type 1..1 | > Type 0..1 >Ref 1..1 | > QRef 0..1 >Date 1..1 | > QDate 0..1 >Time 1..1 | > QTime 0..1 | > Z1ITEMLevel 0..9999| > Segment required >Field 0..1 | > Field 0..1 >Sign 0..1 | > Sign 0..1 >Option 0..1 | > Option 0..1 >Low 0..1 | > Low 0..1 >High 0..1 | >High 0..1

Please help in implementing this scenario.I used SPLITBYVALUE but it doesnot create a new IDoc.

padmini udayakumar Jul 14, 2010 2:37 AM

Hi Sravya,Thanks for your wonderful blog.I have a requirement where in target side IDoc needs to be created.

In the source side for every new header element(Type, Ref,Data, Time) a new IDoc has to begenerated in the target.

SOURCE No of Occur |TARGET No of occurMT_GLACCBAL 1..1 |YCAQUERY 1..1>ROW 0.. unbounde|> IDoc 1..1 | > BEGIN required | > EDI_DC40 1..1 | > Z1Header 0..1 | > Segment required >Type 1..1 | > Type 0..1 >Ref 1..1 | > QRef 0..1 >Date 1..1 | > QDate 0..1

Page 15: Message Mapping Simplified – Part II _ SCN.pdf

7/15/2015 Message Mapping Simplified – Part II | SCN

http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/messagemappingsimplifiedpartii 15/15

Follow SCNSite Index Contact Us SAP Help PortalPrivacy Terms of Use Legal Disclosure Copyright

Like (0)

>Time 1..1 | > QTime 0..1 | > Z1ITEMLevel 0..9999| > Segment required >Field 0..1 | > Field 0..1 >Sign 0..1 | > Sign 0..1 >Option 0..1 | > Option 0..1 >Low 0..1 | > Low 0..1 >High 0..1 | >High 0..1

Please help in implementing this scenario.I used SPLITBYVALUE but it doesnot create a new IDoc.

Like (0)

Domenico Neri Mar 14, 2012 7:45 PM

thank you Sravya ...very clear and very usefull.byeDomenico

Like (0)

Arun Kumar Reddy Janga Jan 14, 2013 10:14 PM

Very nice blog.. easy to understand for beginners like me..