on 12-14-2017 3:22 AM
Hi,
I am looking for a help to create a File to IDOC in PI 7.31 dual stack.based on records from the file, I have to create an IDOCs at target i.e Orders , delivery and Invoice.How can we develop? Could you please provide steps to generate different IDOCs at target. I have done a scenario where if the all records are same then I have created same multiple Idocs.
Thanks
Praveen
Hi Praveen!
From the first sight I could see that you conditionally create "Message1" and "Message2" elements. That's wrong. You should always create theses elements. And IDOC message(s) inside it may or may not be created.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you... You are right.... When I posted this question, I though of you. Most of the XSLT queries answered by you.
Thank you
Praveen
Hi Praveen!
If the only receiver is used in your scenario, just add all the IDOC types you need as receiver interfaces in your Operation mapping definition.
Create message mapping using the same IDOCs as receiver message type (or use XSLT transformation as message program).
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Evgeniy,
Thank you... We are using XSLT mapping ....I am able to test it in Operation mapping... when I test a end to end scenario getting en below error.
MappingException: Unexpected error while parsing the multi-structure document, NullPointerException:
while trying to invoke the method javax.xml.stream.XMLEventWriter.add(javax.xml.stream.events.XMLEvent) of an null object loaded from localvariable writer
Thank you
Praveen
Hi Evgeniy,
The below is the code which we are using.
<?xml version="1.0" encoding="UTF-8"?>Hello Praveen,
Try using enhanced Interface determination.
Based on condition route it to multiple mappings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu,
We have two records in a source file, one of the record is for order and other for delivery..so at target we need to generate two different IDOCs for this we are using XSLT mapping and able to test it in OM while testing end to end getting an error . we have checked sap note that related to error, ours PI is 7.31 SP 18.
MappingException: Unexpected error while parsing the multi-structure document, NullPointerException:
while trying to invoke the method javax.xml.stream.XMLEventWriter.add(javax.xml.stream.events.XMLEvent) of an null object loaded from localvariable writer
Thank you
Praveen
User | Count |
---|---|
85 | |
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.