on 10-15-2012 12:37 PM
Hi every one,
I have a requirement where i have to fail the Interface at mapping level when Line item numbers are missing from source side. the interface is Idoc to File.
I know that i could easily do it using graphical mapping but there is other requirement to be fulfilled.
The Line item number in the source side is E1EDP02/ZEILE (when QUAL="001")
The requirement is if E1EDP19-IDTNR = "FREIGHT CHARGES" (when QUAL="002"), then the E1EDP02-ZEILE (when QUAL="001") is not required and should not cause an error.
The complexity in the above requirement is usually there will be more than five E1EDP02/ZEILE (when QUAL="001") and E1EDP19-IDTNR = (when QUAL="002")coming from the source side.
The interface should not fail only when E1EDP19-IDTNR = "FREIGHT CHARGES" (when QUAL="002"). and it should fail when ever E1EDP19-IDTNR is not equal to "FREIGHT CHARGES" (when QUAL="002") and E1EDP02-ZEILE (when QUAL="001") does not exist.
can any one please tell me how i can acomplish this.
You can do this validation logic in IDoc level it self before creating an IDoc
or
Write a condition in Receiver determination using XPath expression and write a same logic in PI mapping level using stanbdard Boolen functions. It should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepthi,
You could throw an exception at Message Mapping level when your requeriments are not fulfilled. Check Alessandro Guarneri's blog or Michal Krawczyk's blog http://scn.sap.com/community/pi-and-soa-middleware/blog/2007/04/26/xipi-throwing-generic-exceptions-... for this purpose.
From my point of view you should follow Raja's solution, it is more elegant and more standard.
Regards.
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 | |
9 | |
6 | |
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.