on 08-23-2006 5:59 AM
I have 3 flat files in one large file. I need to split them up into 6 diffrent files and send them out using 6 different channels. Iam on SPS 16 and Iam using message splitting using Graphical mapping.
Inbound message:
IN the Message Mapping I mapped like this.
Source:
-
Message1 1:1
State 0:1
staterec 0:Unbounded
product 0:1
productrec 0:Unbounded
country 0:1
countryrec 0:unbounded
Target Message:
messages
message1
state 0:1
staterec 0:Unbounded
message2
product 0:1
productrec 0:Unbounded
message3
country 0:1
countryrec 0:unbounded
Mapping:
State (0:1) -
> State (0:1)
staterec (0unbounded) -
product(0:1) -
> Product (0:1)
productrec (0unbounded)- > Productrec (0--unbounded)
country (0:1)-----> Country (0:1)
Countryrec (0unbounded)-> Countryrec(0unbounded)
This is just plain mapping. testing in the mapping editor works fine. But during run time its throwing error "No messages created from split mapping "
Someone please let me know what Iam doing wrong
Hi ,
Just test your map in this way..
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I infact got this error.. ::(((
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3)
Payload I copied is
-
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
- <ns0:Message1>
- <ns1:MT_Product_Master xmlns:ns1="http://www.test.com">
- <State_Category>
<State_Rec>Staterecord</State_Rec>
</State_Category>
- <Supplier_Category>
<Supplier_Rec>supplierecord</Supplier_Rec>
</Supplier_Category>
- <Product_Category>
<Product_Category_Rec>productcategory</Product_Category_Rec>
</Product_Category>
- <Product_Type>
<Product_Type_Rec>producttype category</Product_Type_Rec>
</Product_Type>
- <Master_Brand>
<Master_Brand_Rec>masterbrand</Master_Brand_Rec>
</Master_Brand>
- <Brand>
<Brand_Rec>brand</Brand_Rec>
</Brand>
- <Sub_Brand>
<Sub_Brand_Rec>subbransd</Sub_Brand_Rec>
</Sub_Brand>
- <Product>
<Product_Rec>werwtrtertrtrt</Product_Rec>
</Product>
</ns1:MT_Product_Master>
</ns0:Message1>
</ns0:Messages>
-
I actually generating 7 files as u can see..as its too big to post in the SDN, I did cut it short and changed descriptions for readability purpose.
Thank you for your time..
Ram
Remove the hiphen "-" in the Payload you copied from SXMb_MONI. Also, remove the <b>MESSAGES</b> tag
<?xml version="1.0" encoding="UTF-8" ?>
<ns1:MT_Product_Master xmlns:ns1="http://www.test.com">
<State_Category>
<State_Rec>Staterecord</State_Rec>
</State_Category>
<Supplier_Category>
<Supplier_Rec>supplierecord</Supplier_Rec>
</Supplier_Category>
<Product_Category>
<Product_Category_Rec>productcategory</Product_Category_Rec>
</Product_Category>
<Product_Type>
<Product_Type_Rec>producttype category</Product_Type_Rec>
</Product_Type>
<Master_Brand>
<Master_Brand_Rec>masterbrand</Master_Brand_Rec>
</Master_Brand>
<Brand>
<Brand_Rec>brand</Brand_Rec>
</Brand>
<Sub_Brand>
<Sub_Brand_Rec>subbransd</Sub_Brand_Rec>
</Sub_Brand>
<Product>
<Product_Rec>werwtrtertrtrt</Product_Rec>
</Product>
</ns1:MT_Product_Master>
Regards,
Bhavesh
Hi,
In Message Mapping check if you have mapped your Message Type node.
Thanks,
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.