cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass mulitle batch inputs to a bapi when called from XI

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

plesae explain in details.........

I am not able to get this properly.........

bhavesh_kantilal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

bhavesh_kantilal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks .................

Now is successfully Running........

Thanks again....

Former Member
0 Kudos

HI,

I am able to store one data............

but i want to enter multiple data that time i m getting error.......

tell me some solutions........

regards,

Umesh Laxkar

bhavesh_kantilal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi bhavesh,

please give me a ID for yahoo messenger.....

i m there.........

please ..

bhavesh_kantilal
Active Contributor
0 Kudos

Umesh,

You can reach me on my mail id available in my B Card. But, posting the issue here on the forums will allow more people to read through your problem and help you as well.

Regards

Bhavesh

Former Member
0 Kudos

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??

bhavesh_kantilal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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...

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

In SXMB_MONI there i got GREEN FLAG with INBOUND message.............

there is there is only INBOUND message nothing other..........

Former Member
0 Kudos

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??