cancel
Showing results for 
Search instead for 
Did you mean: 

Using two containers to make a mapping.

inigo_sacramento
Participant
0 Kudos

Hi.

I have to send a big file via RFC to R3. R3 will add a new value to a field. This value is the same for all the records of this big file.

Instead of sending the file, i think that it'll be faster to send only 1 record of this file, return the value in a container and then assign this value to each row of the big file (is in a second container).

Any idea of how can i do this?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you could create a BPM where you hold the big message in the container, map it to the small message, so you have small and big message in container. Send small message to R/3 and receive response. Make multi mapping merging response of small message and big message and send resulting message to the receiver.

Question here: how will be he overall performance? Probably bad...

Second option: use Java Lookup API in mapping. Performance should be significantly better than through BPM. Drawback is configuration.

Best regards

Christine

inigo_sacramento
Participant
0 Kudos

uffff.

How can i make the mapping with two containers into one?

In message mapping (with graphical mapping) i only can use one message type to another message type.

Then, in interface mapping i can select two message interface (abstract ones) to one interface (abstract too) and i can select two mappings.

I don't understant the order that this mappings will be procesed.

thanks.

MichalKrawczyk
Active Contributor
0 Kudos

- in the message mapping you have to go to messages TAB

and specify two messages

this way you'll be able to do 2 to 1 mapping

- complete the mapping

- then you can specify 2 to 1 in message intrface and

when you chooose your mapping program the

new mapping program will appear

Regards,

michal

Former Member
0 Kudos

Hi Inigo,

you can use two message types to one in graphical mapping. You just have to use a little trick: Go to tab messages in the message mapping and add a second line to the source message. Then you can add a second message type.

Best regards

Christine

Answers (4)

Answers (4)

STALANKI
Active Contributor
0 Kudos

You are right..:)

STALANKI
Active Contributor
0 Kudos

Instead just read 1 record using file adapter using recordsetpermessage option (In this way you can heavy load coming into XI) and then map it to RFC accordingly.This is simple and sleek way to do it.

you can see the blog /people/sravya.talanki2/blog/2005/11/29/night-mare-processing-huge-files-in-sap-xi

for splitting huge file.

MichalKrawczyk
Active Contributor
0 Kudos

but he could only do it if he's using flat (non-xml) files

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

inigo_sacramento
Participant
0 Kudos

Michal, thank you once more.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can do it and in the BPM do 2 to 1 mapping

in which you can map the old file with new value from your RFC response to the target container

Regards,

michal