on 01-25-2007 8:39 AM
Hello
I am trying to create a multimap without using BPM as we are on SP15. I did the respective configuration in Message and Interface mapping as mentioned in the weblog.
I am expecting multiple files to get generated in the target directory and i hope file adapter supports this.
For that I did extended interface determination where I selected the respective interface mapping.
When I am trying to execute this interface it throws error in SXMB_MONI saying "<b>No messages created from split mapping</b>".
One more doubt, with what names it will generate multiple files?
Thanks in advance.
Regards
Rajeev
Rajeev
Can you try this scenario by introdcuing BPM. One receive step. A block step to process the records in a mutliline container and inside the block one send step. Kidnly check if this works.
<i><b>steps inside a block step.</b></i>
<i>1.Properties>Mode>ForEach
2.Multi Line --> Multi line container element(target)
3.Current Line --> Single Line Container element (target)
4.Insert a send step with in the block.
5.properties>Msg>Single Line Container element (target)</i>
thkx
Prabhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi rajeev
Check with the payload if the target strucutre is framed accordingly. You can it test it in the interface mapping. The name will be generated based on the settings in the receiver communication channel.
Thkx
Prabhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tested my Interface mapping which works fine.
I am having the structure like
RootNode (1..1)
header (1..unbounded)
<field1>
<field2>
and i am transforming the same to
<Message 1>
Rootnode (0..unbounded)
...
...
When tested in interface map, it creates two Rootnode tags which I guess represents the two different messages. but while execution it gives this error.
Regards
Rajeev
Hello
I tested my mappings in the Test tab of Interface Mapping where it runs absolutely fine.
Here is source and target messages
***************************Source**********************************
<b> <?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
- <ns0:Message1>
- <ns1:UpdateShipTest_MT xmlns:ns1="http://sjm.com/DynConf">
- <DELIVERY>
<DELIVERY_NUMBER>12</DELIVERY_NUMBER>
<TRACKING_NUMBER>3</TRACKING_NUMBER>
<SHIP_DATE>3</SHIP_DATE>
<USER_ID>33</USER_ID>
<SHIP_VIA>3</SHIP_VIA>
<ITMNO>3</ITMNO>
<MATNR>3</MATNR>
<QUANTITY>3</QUANTITY>
</DELIVERY>
- <DELIVERY>
<DELIVERY_NUMBER>121</DELIVERY_NUMBER>
<TRACKING_NUMBER>3</TRACKING_NUMBER>
<SHIP_DATE>3</SHIP_DATE>
<USER_ID>33</USER_ID>
<SHIP_VIA>3</SHIP_VIA>
<ITMNO>3</ITMNO>
<MATNR>3</MATNR>
<QUANTITY>3</QUANTITY>
</DELIVERY>
</ns1:UpdateShipTest_MT>
</ns0:Message1>
</ns0:Messages></b>
*************************End Source*****************************
This is the one message which is required to be split into two separate Delivery files
***************************************Target Message*******************************
<b> <?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
- <ns0:Message1>
- <ns1:UpdateShipTest_MT xmlns:ns1="http://sjm.com/DynConf">
- <DELIVERY>
<DELIVERY_NUMBER>4</DELIVERY_NUMBER>
<TRACKING_NUMBER>5</TRACKING_NUMBER>
<SHIP_DATE>5</SHIP_DATE>
<USER_ID>5</USER_ID>
<SHIP_VIA>5</SHIP_VIA>
<ITMNO>5</ITMNO>
<MATNR>5</MATNR>
<QUANTITY>5</QUANTITY>
</DELIVERY>
</ns1:UpdateShipTest_MT>
- <ns1:UpdateShipTest_MT xmlns:ns1="http://sjm.com/DynConf">
- <DELIVERY>
<DELIVERY_NUMBER>46</DELIVERY_NUMBER>
<TRACKING_NUMBER>5</TRACKING_NUMBER>
<SHIP_DATE>5</SHIP_DATE>
<USER_ID>5</USER_ID>
<SHIP_VIA>5</SHIP_VIA>
<ITMNO>5</ITMNO>
<MATNR>5</MATNR>
<QUANTITY>5</QUANTITY>
</DELIVERY>
</ns1:UpdateShipTest_MT>
</ns0:Message1>
</ns0:Messages></b>
*************************************End Target****************************************
According to interface map I guess the adapter should split the messages but at runtime it gives error.
Thanks and Regards
Rajeev
Rajeev,
1. What is the source file you are using? The source file should be,
<ns1:UpdateShipTest_MT xmlns:ns1="http://sjm.com/DynConf">
- <DELIVERY>
<DELIVERY_NUMBER>12</DELIVERY_NUMBER>
<TRACKING_NUMBER>3</TRACKING_NUMBER>
<SHIP_DATE>3</SHIP_DATE>
<USER_ID>33</USER_ID>
<SHIP_VIA>3</SHIP_VIA>
<ITMNO>3</ITMNO>
<MATNR>3</MATNR>
<QUANTITY>3</QUANTITY>
</DELIVERY>
- <DELIVERY>
<DELIVERY_NUMBER>121</DELIVERY_NUMBER>
<TRACKING_NUMBER>3</TRACKING_NUMBER>
<SHIP_DATE>3</SHIP_DATE>
<USER_ID>33</USER_ID>
<SHIP_VIA>3</SHIP_VIA>
<ITMNO>3</ITMNO>
<MATNR>3</MATNR>
<QUANTITY>3</QUANTITY>
</DELIVERY>
</ns1:UpdateShipTest_MT>
2. What is the error you are getting in the runtime?
Regards
Bhavesh
Hi,
As Bahvesh has shown, the input files should not have ns0:messages, ns0:messgae elements and all. Those should be taken off.
After multimapping, the filenames generated should be different or else there might be a problem like files getting over written or some other error.
For creating differerent file names there are more than one option. The simplest one is selecting "add Timestamp".
Regards,
P.Venkat
rajeev
understanding your issue:
<i>You are using a mutlimap without a BPM and when the interface is executed you get an error "No messages created from split mapping". Testing the IM works fine with the payload.</i>
I think this might throw up with this kind of error. Try to introdude BPM with a recv , one block step and a send step within to traverse the records and create a file as per ur req.
thks
Prabhu
hi bhavesh
one qucik Q without using BPM. In the target structure as specified by rajeev (1:n mapping) will mutliple files be created (aware that datetime stamp option checked creates different files) i.e. one file for DELIVERY_NUMBER 46 and another for DELIVERY_NUMBER 4 etc?
regds
Prabhu
PS: Rajeev pls close this thread if ur post is answered
Rajeev,
Test you multimapping . Looks like the mapping has not been created correct and that is why the multimapping is not working fine.
The filenames, depends on your adapter configuration. What mode have you choosen?
1 Create
2. Add Message ID,
3. Add counter ,
4. Append
Depending on the mode, the file wll be generated.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.