on 03-26-2007 3:25 AM
HI,
I am doing a file to RFC scenario
Sender is File and receiver is a BAPI BAPI_FP_CHANGE
after i ocnfigure it is not raising any message. below is the data type and communication channel i defined . if anything wrong pls correct it. advices are highly appreciable.
BAPI Structure _ Target
-
BAPI_FP_CHANGE 1 1
PRODUCTCATEGORY 1 1
SECURITYNUMBER 1 1
CONDITIONS 0 1
Item 0 unbounded
Valid_from 0..1
Amount 0..1
Currency 0..1
Due_Date 0..1
File Source Structure
-
FWZZ_MasterRecExt 1..1
Header
Product Category 1..1
Security Number 1..1
Row 0..unbounded
EffFrom 1..1
Amount 1..1
Currency 1..1
DueDate 1..1
Freq 1..1
Communication Channel
-
Document Name : Message Interface
Document namespace: urn
Recordset Name:
Recordset Structure : Header,1,Row,*
Keyfield: KF
Row.fieldNames - KF,EffFrom,Amount,Curr,DueDate,Freq
Row.fieldSeparator ,
Row.endSeparator nl
Row.processConfiguration FromConfiguration
Row.keyFieldValue 10
Header.fieldNames - KF,SecurityID,ProdCat
Header.fieldSeparator ,
Header.endSeparator nl
Header.processConfiguration FromConfiguration
Header.keyFieldValue 20
1. Check the inbound paylaod. Is it a valid payload ,ie. is the source payload after content conversion as expected?
2. Check the mapping with this payload . refer this blog to see how to test the mapping.
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Does the mapping exectue fine? If yes, then check what the error in MONI is and let us know. If no, then check once again if the source is in acccordance with step 1 and if yes, then there is some issue in your mapping which needs to be looked into.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Bhavesh,
when i use SXMB_MONI there are no messages displayed.
when i monitor communication channel following error appears
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'Header.fieldNames': no value found
in source i used header but in target ther eis no header node.
but i m mapping fields under source header (ProductCategory, SecurityNumber) to target structure.
is there any influence of it.
Regards,
jeff
HI,
This is due to content conversion parameters prob.
Try
Document Name : message Type name
Document namespace: urn
Recordset Name:
Recordset Structure : Header,1,Row,*
Row.fieldNames - EffFrom,Amount,Curr,DueDate,Freq
Row.fieldSeparator ,
Row.endSeparator nl
Row.processConfiguration FromConfiguration
Header.fieldNames - SecurityID,ProdCat
Header.fieldSeparator ,
Header.endSeparator nl
Header.processConfiguration FromConfiguration
Also see the below links to get an idea about FCC
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
/people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario - FCC /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO
Regards
Chilla
10,BLACKROCBR024,20
20,01.01.2007,10000000,USD, 31.01.2007
20,02.01.2007,10000000,USD, 31.01.2007
20,03.01.2007,10000000,USD, 31.01.2007
20,04.01.2007,10000000,USD, 31.01.2007
20,05.01.2007,10000000,USD, 31.01.2007
20,06.01.2007,10000000,USD, 31.01.2007
20,07.01.2007,10000000,USD, 31.01.2007
20,08.01.2007,10000000,USD, 31.01.2007
20,09.01.2007,10000000,USD, 31.01.2007
20,10.01.2007,10000000,USD, 31.01.2007
HI this is sample file structure...
i kept processinf mode as delete.. file is not deleting
and error is same
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'Header.fieldNames': no value found
HI,
Now in payload header aswell as details are appearing
but when i test the payload in message mapping following error appears.
any advice pls
01:55:48 Start of test
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) Root Cause: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)(:main:, row=1, col=8) -> com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) at com.sap.engine.lib.xml.parser.XMLParser.scanPI(XMLParser.java:2126) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2774) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2830) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) -
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) Caused by: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) at com.sap.engine.lib.xml.parser.XMLParser.scanPI(XMLParser.java:2126) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2774) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2830) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) ... 4 more Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
01:55:48 End of test
I got this error is message mapping.
there are two fields in header productcategory and securitynumber
first it was showing this error for prod category then i remove the prodi cat field it is showing same error yto security number
any clue pls....
Cannot produce target element /ns1:BAPI_FP_CHANGE/SECURITYNUMBER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
payload in SXMB_MONI
-
<?xml version="1.0" encoding="utf-8" ?>
<ns:FWZZ_MasterRecExt xmlns:ns="urn:
mellon">
<Recordset>
<FileHeader>
<KF>10</KF>
<ProductCategory>20</ProductCategory>
<SecurityNumber>BLACKROCBR024</SecurityNumber>
</FileHeader>
<Row>
<KF>20</KF>
<EffFrom>01.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
<Row>
<KF>20</KF>
<EffFrom>02.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
<Row>
<KF>20</KF>
<EffFrom>03.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
<Row>
<KF>20</KF>
<EffFrom>04.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
<Row>
<KF>20</KF>
<EffFrom>05.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
<Row>
<KF>20</KF>
<EffFrom>06.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
<Row>
<KF>20</KF>
<EffFrom>07.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
<Row>
<KF>20</KF>
<EffFrom>08.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
<Row>
<KF>20</KF>
<EffFrom>09.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
<Row>
<KF>20</KF>
<EffFrom>10.01.2007</EffFrom>
<Amount>10000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
</Row>
</Recordset>
</ns:FWZZ_MasterRecExt>
Payload in message Mapping
-
<?xml version="1.0" encoding="UTF-8"?>
<ns0:FWZZ_MasterRecExt xmlns:ns0="urn:
mellon">
<FileHeader>
<KF/>
<ProductCategory>20</ProductCategory>
<SecurityNumber>BLACKROCBR024</SecurityNumber>
</FileHeader>
<Row>
<KF/>
<EffFrom>01.01.2007</EffFrom>
<Amount>1000000</Amount>
<Curr>USD</Curr>
<DueDate>31.01.2007</DueDate>
<Freq/>
</Row>
</ns0:FWZZ_MasterRecExt>
Hi Jeff,
see your payloads are different......in SXMB_MONI, you have :
<ns:FWZZ_MasterRecExt xmlns:ns="urn:
mellon">
<Recordset>
<FileHeader>
But in msg mapping you have:
<ns0:FWZZ_MasterRecExt xmlns:ns0="urn:
mellon">
<FileHeader>
So in your Data type - recordset is missing.....edit your data type to have recordset in it and make your data type like the structure you are seeing in SXMB_MONI payload......then save and activate it....now in msg mapping again take source msg type.....then your latest source msg type will come in msg mapping.....then map the recordset node to target node......then save and acitvate your msg mapping.....then your this msg mapping problem may be solved....
Thanks,
Rajeev Gupta
Hi Jeff,
saying recorded for outbound processing - it means your queue is deactivated.....
just go to queue......click it........you will see an entry in queue....click on Execute LUW button.....then your queue will be empty.....then refresh your msg in SXMB_MONI.....then you will see your msg being processed successfully in SXMB_MONI......
now from SXMB_ADM.....select your queue and activate it...
again run your scenario....now your complete scenario will run automatically......
Thanks,
Rajeev Gupta
Message was edited by:
RAJEEV GUPTA
HI,
Queue problem see the below link
Regards
Chilla
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.