on 02-27-2012 11:08 AM
Hi,
My requirement is as follows.
If am getting file 1234.csv, i need to send to receiver A and if i get file with 1234.pdf, i need to send to receiver B.
how can i write X Path condition in receiver determination ( i cant go for enhanced receiver determination due to some functionality limiations).
Please suggest.
Thanks
Kishore
You can select filename option in Receiver determination conditions. You need to enable ASMA in sender file channel. That's all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sender strcuture only holding the field so no need of ASMA.
Option1:
if you are using multi mapping concept then in mapping itself you can write logic by uisng create if node function by checking file name.
Option2:
If you want to write in recveiver determination then it is very much easy check fieldname="date_debtors_XXXX.csv" ,you have option to compare in condition editor.
search in sdn .
Regards,
Raj
check this link:
Available Operators section
http://help.sap.com/saphelp_nw2004s/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
>>Sender is Proxy and from proxy data i will be having filename field.
if the filename field is part of the payload, then you can use the Condition based Receiver determnation.
those conditions are simple ones e.g. you can check if the filename field equals or notEquals certain string.
but i am not sure, if those conditions are rich enough to handle things like endsWith("csv") or endWith("pdf")
in your case, i think, you can still use ASMA.
in a mapping you set ASMA field say FileType to "CSV" or "PDF". refer http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2664
and in conditions of receiver determination, use the context object FileType = "CSV".
regards,
BJagdishwar.
>>in your case, i think, you can still use ASMA.
>>in a mapping you set ASMA field say FileType to "CSV" or "PDF". refer http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2664
>>and in conditions of receiver determination, use the context object FileType = "CSV".
Jagadish, Receiver determination (PIPELINE step) comes into picture before mapping. So, this solution does not work.
chk this:
http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
use operator CP like *.csv or *.pdf (or u can also use substring-after function)
Hi,
I have created DT,MT,MI,MM,IM(All objects)...and i have assigned my conext object to one of field in MI.
While am trying to add this in receiver detemination X Path editor, am not able to see this context object and then i tried to create X path from structure and that is also not coming. I am wondering what else i need to do...
Thanks
Kishore.
chk my reply in this thread:
http://forums.sdn.sap.com/thread.jspa?threadID=2025835&messageID=10582310#10582310
Edited by: AmitSri on Feb 27, 2012 6:31 PM
Dear Kishore
Instead of X Path you have to go for Context Object
As mentioned in the reply above, you have to select ASMA parameters in your sender CC and then you will be able to see the filename in context object
Sourabh
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 | |
7 | |
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.