on 2011 Sep 20 10:51 AM
Dear all,
I received a RFC from SAP system. In my mapping I would like to do
a message split and set the occurence of target message to 0...unbounded.
The RFC get the envelope Messages/Message1 automatically.
I tested the mapping in repository and it works. But when sending a
RFC the adapter does not wrap the message with this envelope.
What to do?
Thanks
Chris
This is done inside mapping, so the adapter need not care about this.
Works as designed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chris
Messages/Message1 are appended automatically in PI. We need not to maintain them at run time.
You can check for some other reasons of failures.
check whether you are maintaining the namespace in the payload if you have kept it in message type (target).
Or it would be better if you please paste the error message you are getting in traces.
Regards
Raj
> As I wrote, I just sended an RFC and in SXMB_MONI I can see
> that the payload ist not wraped with the envelope Messages/Message1.
Of course not, as this is done only inside mapping. The Messages tags are removed after mapping
> And beacause of this, the mapping does not work because of not existing
> XPath in source message.
Becuse of this? Are because something else?
I winder where you use XPATH.
Hi all,
ok, perhaps I expected the wrong result, but if I copy the incoming RFC payload:
<?xml version="1.0" encoding="UTF-8" ?>
<rfc:CONTROL_RECIPE_DOWNLOAD xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<CLIENT>100</CLIENT>
<CRFT>
...
into the mapping envelope:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<rfc:CONTROL_RECIPE_DOWNLOAD xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<CLIENT>100</CLIENT>
<CRFT>
...
everything works fine. So if the envelope is not the problem, what else do I have to check?
@Raj: Namespace seems to be ok. The mapping works fine, if the envelope is added in mapping test.
Regards
Chris
You are right.
If I send a RFC the result is:
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1 />
</ns0:Messages>
No target node will be created because he didn't find the suitable path
in source.
If I copy the source value into the envelope (messages/message1/..), the mapping is successfully.
So in every case I did not get any error description. He just do not create a
target node. I am not able to describe the error in detail, because there is
no error, except that he couldn't find the xpath defined in mapping.
So I really think that there is a problem with enveloping the message....
Regards
Chris
> So I really think that there is a problem with enveloping the message....
I think you created a standard mapping before and used it for runtime. Later you changed the mapping.
So you either did not do the configuration correct, or it is a cache issue.
The XI runtimer interprets your mapping as sinlge mapping instead of a multiple mapping. The output of a multiple mapping would be without message tags.
Hi,
you have been a little bit faster than me.
I just wanted to post the solution. I recheck every single point of the scenario
and recheck the documentation.
I really forget to set the occurence in operation mapping. Now it works fine.
Thanks for your help and patience
Sometime you can't see the wood for the trees.
Thanks for your help. Points given.
Regards
Chris
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
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.