on 05-19-2006 2:01 PM
Hi
I am trying to use two Mapping programs in one interface mapping in which the second mapping is a Multi mapping.
The scenario is
1:1
1:N
The output structure of the first mapping and the input structure of the second mappin is the same.
The problem i am having is that when i create the interface mapping, i select the source of the first mapping as the source interface and the target of the second mapping as the target interface. When i do a read interfaces and tried to add the two mapping programs. It allows me to add only one mapping program . I was not able to add the second mapping program. once the first mapping is added the add symbol goes off .
Please let me know what shoud be done to add the two mapping programs in sequence.
VaaS
HI I have exactly the same problem.
Did anybody already resolved this issue?
According to the documentation it must be possible.
Thanks
Raf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Old thread, just logging my workaround for others.
I resolved this by changing all my 1:1 Message Mappings in the same Operation Mapping to an occurrence of 0..1 on at least one side of the mapping. This forces the Message Mapping "Definition" tab to wrap the multi-message "Message1" elements around both the source and target message schemas, allowing the 1:1 mapping to be used alongside a N:1 mapping in the same Operation Mapping.
If there is a better or more correct way to do this, do share.
RBL
Chris,
Can you elaborate on that please?
VaaS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The scenario was of using two mapping program in one interface mapping.
A to B --> 1:1
B to C --> 1:n
I have tried using the same envelope for both the mappings i.e A to B is 1:n and B to C is n:n so it gave the same evelope for all the messages.
The problem was that
when I make the occurence as n for the target message in first message mapping it makes the envelope for both messages as
Messages
Message1
Message2
But in the interface mapping the source has only occurence 1 so while testing using test tab the source structure has
MT_A
Name
SAP_ID
this when moves to the message mapping contradicts with the source structure as it has the two evelope tags
<b>Messages</b>
<b>Message1</b>
MT_A
Name
SAP_ID
If i make the occurence as n for the source message in the first mapping and say read interfaces in interface mapping it doesn'nt allow me to add two mapping programs.
Can anyone throw some light on this please.
Regards
VasS
Hi Murthy,
Thanks for your answer. The help.sap.com says
The mapping for a request message comprises two message mapping programs: one 1:1 transformation and one 1:n transformation. Since the latter message mapping uses the multi-mapping envelope for both the target message and the source message, <b>the message mapping for the 1:1 transformation must also create a transformation result with a multi-mapping envelope.</b>
I couldn't understand what they mean
in the last line ...multi-mapping envelope.
Can you brief me what they mean by this.
see my firt mapping is A : B and the second one is B :C
where B has only one message but
Where C has three different messages C1(records),C2(error),C3(mail)
VaaS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you should go for ABAP mapping , We are using 10 mapping Programs using ABAP mapping
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Vasagam,
Just go thru this link, there is some note about MultiMappings with 1:1 and 1:N mapping..
http://help.sap.com/saphelp_nw2004s/helpdata/en/4f/ef761a5ecfb1418b79896e10fe4c57/content.htm
I think you have N number of Interfaces in the Target Interface column right ? If so, your previous mapping should give similar structure.. Check this sap help..
Hope this helps,
Regards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.