on 12-19-2006 7:34 AM
Hi all,
I am working on "File-xi-RFC without using BPM scenario".
i am able to pass One employee time record to the R/3 data base through calling a Bapi from XI...............
Now i need transfer multiple such inputs for multiple employees to generate multiple records.......
Please help about this scenario..............
Regards
Umesh Laxkar
Hi,
Use multimapping!
1. Change the Occurence of the tareget message type ( RFC in your case) in your message mapping to 0 to unbounded. For every Employee record in the file, create the RFC request message.
2. Change the occurence of the target message interface in your interface mapping.
While doing the Interface determination for your scenario, select the option EXTENDED / ENHANCED / RB_SPLIT and then select your Inbound interace and mapping.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Umesh,
If you follow the procedure I have decribed above, your mapping will create the N rfc messages and these messages will sent to the R3 system using the RFC adapter.
You basically will split the single file into N rfc messages ( 1:N mapping ).
Please let us know what you do no understand!
Regards
Bhavesh
Hi,
My batch input is of below mentioned xml format
<?xml version="1.0" encoding="UTF-8"?>
<ns:MT_File xmlns:ns="http://enteg-com/xi/umesh/filetorfc">
<RECORDSET>
<DATA>
<emp_no>27</emp_no>
<start_time>090000</start_time>
<end_time>170000</end_time>
</DATA>
Can you please tell me how should be the xml format for multiple batch inputs should be?
regards
Umesh
Umesh,
If this is your XMl file and the requriement is that for every RECORDSET and RFC is to be called, then,
<?xml version="1.0" encoding="UTF-8"?>
<ns:MT_File xmlns:ns="http://enteg-com/xi/umesh/filetorfc">
<RECORDSET>
<DATA>
<emp_no>27</emp_no>
<start_time>090000</start_time>
<end_time>170000</end_time>
</DATA>
</RECORSET>
<RECORDSET>
<DATA>
<emp_no>28</emp_no>
<start_time>091000</start_time>
<end_time>170100</end_time>
</DATA>
</RECORDSET>
..
1. In message mapping, change the occurence of the RFC to be 0 to unbounded. Map the RECORDSET node to the RFC's root node. Now, for every recordset node in the file, the RFC message will be created.
2. In the interface mapping select the sourcre and the target message interface. Now , change the occurence of the target interface ( RFC ) to 0 to unbounded.
3. While doing the interface determination, you wil find an option called Enhanced / Extended . Selecte this and then select the Interface mapping.
Now, for every Recordset in the file, the RFC Will be called!
Regards
Bhavesh
Umesh,
You need to give more details to understand what you are trying.
1. Source Message --> Format and how the multiple records are available.
2. Target Message --> RFC request messages.
3. What is the mapping you have done between the source and target.
4. Did you selected Enhanced Interface Determination?
Regards
Bhavesh
Hi,
Now i got some changes in my message mapping...........(Automaticaly)
Previous Messsage:-(when only one data row)
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_File xmlns:ns0="http://enteg-com/xi/umesh/filetorfc">
<RECORDSET>
<DATA>
<emp_no>27</emp_no>
<att_abs_type>0800</att_abs_type>
<from_date>2007-01-04</from_date>
<to_date>2007-01-04</to_date>
<start_time>090000</start_time>
<end_time>170000</end_time>
</DATA>
</RECORDSET>
.........
Now this message:-(for multiple data row)
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MT_File xmlns:ns1="http://enteg.com/xi/umesh/filetorfc">
<RECORDSET>
<DATA>
<emp_no>27</emp_no>
<att_abs_type>0800</att_abs_type>
<from_date>2007-01-04</from_date>
<to_date>2007-01-04</to_date>
<start_time>090000</start_time>
<end_time>170000</end_time>
</DATA>
</RECORDSET>
...................
</ns1:MT_File>
</ns0:Message1>
</ns0:Messages>
this is input message..........
this is autometicly convert ......into message1 and messages u can see in multy data row..............above
and i m getting error in ID part ....when i enter in TEST CONFIG. ......for testing message....
there INTERFACE DETERMINATION is show RED babule...........
tell me what i have to do??
Hi,
First thing you need to make a change in your mapping,
1. Map Recordset of Input File message to the Root node of your RFC request message.
In the interface determination , please select the option Extended / Enhanced Interface determination and then select the corresponding Inbound Interface and Inteerface Mapping.
Is this what you have done?
Regards
Bhavesh
Hi,
Use multimapping!
1. Change the Occurence of the tareget message type ( RFC in your case) in your message mapping to 0 to unbounded. For every Employee record in the file, create the RFC request message.
2. Change the occurence of the target message interface in your interface mapping.
While doing the Interface determination for your scenario, select the option EXTENDED / ENHANCED / RB_SPLIT and then select your Inbound interace and mapping.
Regards
Bhavesh
as here u told i did...
Hi,
The occurence of the message has been changed and hence you are finding 2 new tags in the source message in the mapping editor.
You need to change the occurence of the source/target interface in interface determination too. The red led in test config against Interface Determination may be due to this.
Regards,
Smitha.
Hi,
What is the exact error messge you are getting in MONI?
Also, the response out of the mapping does not seem to the like the RFC message, plase chekc that as well.
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,
as u told in above, i did............
it was running , but now it is not running and giving error.
Now i got some changes in my message mapping...........
Previous Messsage:-
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_File xmlns:ns0="http://enteg-com/xi/umesh/filetorfc">
<RECORDSET>
<DATA>
<emp_no>27</emp_no>
<att_abs_type>0800</att_abs_type>
<from_date>2007-01-04</from_date>
<to_date>2007-01-04</to_date>
<start_time>090000</start_time>
<end_time>170000</end_time>
</DATA>
</RECORDSET>
.........
Now this message:-
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MT_EMP xmlns:ns1="http://enteg.com/xi/umesh/new/filetorfc">
<root>
<emp_no>27</emp_no>
<att_abs_type>0800</att_abs_type>
<from_date>2007-01-04</from_date>
<to_date>2007-01-04</to_date>
<start_time>090000</start_time>
<end_time>170000</end_time>
</root>
</ns1:MT_EMP>
</ns0:Message1>
</ns0:Messages>
this is input message..........
this is autometicly convert ......
and i m getting error in ID part ....when i enter in TEST CONFIG. ......for testing message....
there INTERFACE DETERMINATION is show RED bable...........
tell me wgat i have to do??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.