on 06-28-2011 2:38 PM
Hi all,
I need an scenario as this one: I will pick a file from an FTP server, and I have to map it to an IDOC.
There is one condition: if a value of the file is "A", then I have to map it to IDOC1. If a value of the file is "B", then I have to map it to IDOC2.
Is there any way to do this without BPM?
Thanks!
Thanks all for the reply.
Actually, I have expressed bad.
The condition is in one field of the file, and it is like this:
if fieldA > 0 and fieldB = 'A' then map to IDOC1
if fieldA < 0 and fieldB = 'A' then map to IDOC2
I could see that I can't use xpath condition for using < or >, just for = or !=.
Do you know if I can do it without BPM?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It IS possible to check for greater than or lesser than.
You have to chose the expression operator.
(Chose 'EX' in the operator).
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
Also you can check Stefan's reply in this thread:
Best Regards,
Ravi
here is the blog, apply this deisgn
/people/rajasekhar.reddy14/blog/2011/02/24/multi-mapping-without-bpm-for-idoc-scenarios-yes-it146s-possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>>>>>>>>> if a value of the file is "A",
Is it the value of file name or is the value of the field?
Regards
Pothana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create 2 different mapping, one is for IDoc1 and another is for IDoc2, At parent root node maintain the condition if the field value is 'A' for IDoc1 and field value is 'B' fro Idoc2
While determining the Interface in ID, mention the condition using XPath in condition textbox for determining IDoc1 and IDoc2.
It is important to check the condition in both the places i.e. in ID and mapping
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
There is one condition: if a value of the file is "A", then I have to map it to IDOC1. If a value of the file is "B", then I have to map it to IDOC2.
If the value you meant is in the name of the file, instead of using xPath you can use the Context Object called FileName instead. If the value of the file is in the payload, use xPath as suggested by Simone and Baskar.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>Is there any way to do this without BPM?
Yes you can achieve without BPM.
You can check during mapping and decides what is the target or you can choose xpath condition to decide the reciever as spontani described.
To decide receiver based on mapping follow the below link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes,
This can be done using XPath Condition:
http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
This is a file to idoc scenario example:
http://wiki.sdn.sap.com/wiki/display/profile/2007/05/11/File%20To%20IDOC?bc=true
http://www.riyaz.net/blog/xipi-simple-idoc-communication-using-sap-xi/technology/sap/67/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.