on 10-05-2015 5:26 PM
Hi Experts,
We have a scenario (XML File to EDI) wherein SAP PI system picks XML file and send EDI Document to customer, Now our requirement is if SHIP_TO_NAME, SHIP_TO_STREET,SHIP_TO_CITY,….. fields doesn’t exists then PI system shouldn’t called the mapping for generating the EDI file, instead the file should be send to a local folder.
Is there any workaround for above scenario, I mean can we achieve the same in receiver determination by setting some condition, coz if check in receiver determination apart from EQUALS and NOT EQUALS we don’t have any option for checking the above requirement
Regards
Faisal
Hi Faisal,
i am just assuming , you can make condition as SHIP_TO_NAME = (blank) and same for other fields also...
but you can be accomplished by using extended receiver determination.
here are the points, you can do for extended receiver determination
1.create an another mapping and make sure source structure should be same as with original mapping structure.
2.in that new mapping you can make conditions as you need and return Business system to target.
3.create another operational mapping and use above mapping here.
4.finally in receiver determination, you can switch to extended receiver determination option and then use that new operational mapping.
hope this will work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the inputs. I'd like to know why we need have one more mapping, as if the condition is satisfied then we need to move the file into local folder.
As you mention in the "2.in that new mapping you can make conditions as you need and return Business system to target." How it is possible to return business system in target mapping?
Could you please share the steps for doing the above that would be very helpful for me
Regards
Faisal
Hi Faisal,
please follw the steps which are explained in below links:
http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce53aea0d7154ee10000000a421937/content.htm
Note:make sure you please use same structure in source side which is actual one and target side we must use the standered structure in mapping which explained in above link.
also use that same thing in receiver determination/ICO
Hi, Faisal,
I believe in this case you could work with XPATH functions to check the existence of the searched tags in the XML input file.
You'll find good reference on this at:
XPath, XQuery, and XSLT Function Reference
and
Then you could design 2 distinct interfaces for each destination case (EDI x File) and use the XPATH function in the interface determination to choose where to send the payload to.
Hope this helps,
Eduardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.