on 12-24-2010 7:55 AM
Hi All,
I am trying to convert the XML to Plain file in receiver file adapter. I am using module - StrictXml2PlainBean.
Below is my target structure
B2B_HEADER (1..1) Level1
SHIPMENT_HEADER(1...1) Level1
SHIPMENT_CUSTOMER (1..Unbounded) Level1
CARTON_HEADER (1..Unbounded) Level2 Child node of Shipment_customer
CARTON_DETAIL (1..Unbounded) Level3 Child node of Carton_header
I have mention below parameters in module tab,
B2B_Header.endSeparator \n
B2B_Header.fieldLengthExceeded cut
B2B_Header.fieldLengths 8,8,8,16,15,14,5,38,14,66,8
Carton_Detail.endSeparator \n
Carton_Detail.fieldLengthExceeded cut
Carton_Detail.fieldLengths 6,14,4,10,14,10,35,10,6
Carton_Header.endSeparator \n
Carton_Header.fieldLengthExceeded cut
Carton_Header.fieldLengths 6,20,20,12,2,7,2
Shipment_Customer.endSeparator \n
Shipment_Customer.fieldLengthExceeded cut
Shipment_Customer.fieldLengths 6,8,10,40,40,40,40,40,10,2,15,40,1
Shipment_Header.endSeparator \n
Shipment_Header.fieldLengthExceeded cut
Shipment_Header.fieldLengths 6,20,4,20,35,30,10,30,3,3,35,35,30,10,30,3,30,10,30,30,9,10,3,30,6,12,14,3
recordTypes B2B_Header,Shipment_Header,Shipment_Customer,Carton_Header,Carton_Detail
I have getting below error in communicatipon channel monitoring...
*Message processing failed. Cause: com.sap.aii.af.app.modules.conversion.xml2plain.ConversionException: The element nesting level for the structure Shipment_Customer is too deep (reference: 3 levels, found: 4 levels) at XML element CreateAndAcknowledgePickPackShipmentGIS_Async_V01,Shipment_Customer,Carton_Header,RecordIndicator
*
RecordIndicator is a field in Carton_Header. Am i missing something in the configuration?
Regards
Amol
Edited by: AMOL BHARTI on Dec 24, 2010 8:59 AM
Used multimapping in PI to achieve deep level hierarchical structure conversion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amol,
You XML structure contains deep levels. As far as i understand about the StrictXML2PlainBean module, this is not capable of handling deep structures.
This module is just an alternative to use FCC type functionality for other receiver adapters.
Please take a look at these links:
https://help.sap.com/saphelp_nwpi711/helpdata/EN/44/748d595dab6fb5e10000000a155369/content.htm
In case you want to achieve nested level content conversion, you may try this:
/people/karthiknarayan.kesavan2/blog/2007/08/22/file-content-conversion-for-multi-hierarchical-structure
I hope this helps.
Regards, Gaurav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Gaurav,
I have seen the blog but I wanted to negelect the mapping stuff done to create the multiple heirarichal structure rather I was looking for some standard process to achieve this...
There is one more module 'localejbs/AF_Modules/MessageTransformBean', Has anyone worked on this?
Regards
Amol
Hello,
Please check the below mentioned link related to MessageTransformation Bean:
/people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-2
http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/frameset.htm
You can also try using custom Adapter module to convert the XML file.
-Rahul
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.