cancel
Showing results for 
Search instead for 
Did you mean: 

merge strings in BPM

Former Member
0 Kudos

Hi all,

I trying to merge some strings to a one long string in BPM

how I do it?

thanks,

shelly

Message was edited by:

shelly billu

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I trying to wait for a specific message payload which mark it as the last message and I merge than..the loop stop working when the specific message come but it not merge all the massages to massage with a long string.

I can see in the SXMB_MONI that all the massages are taken but not to a one message.

shelly

Former Member
0 Kudos

Hi,

you need a correlation ... so that all messages go to the same process.

than append them all to the multirow container which you use for the mapping.

Regards,

Robin

Former Member
0 Kudos

Hi,

In this interface I get 2-20 massage every time

I don't know how many every time, it variable.

shelly

Former Member
0 Kudos

hi,

you can collect in the Process.

for example you wait till you have 5 messages than merge.

Or wait one minute and than merge.

Or you wait for a specific message payload which mark it as the last message and merge than.

In Mapping you just mark the message as 0..unbounded.

regards,

Robin

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

will be very simple with a java mapping , with graphical mapping am not sure.

if no solution si available with graphical mapping from someone else, we can try with java mapping for sure.

Regards,

Bhavesh

Former Member
0 Kudos

Hi,

If u want combine XML messages, use container operation (append) in BPM.

Regards,

Uma

Former Member
0 Kudos

hi,

I want to combine some massages in BPM to a one massage.

example:

<u><b>i have:</b></u>

1.<?xml version="1.0" encoding="UTF-8"?>

<ns0:STR_MT xmlns:ns0="com:Poalim_Test">

<StringIn>shelly</StringIn>

</ns0:STR_MT>

2.<?xml version="1.0" encoding="UTF-8"?>

<ns0:STR_MT xmlns:ns0="com:Poalim_Test">

<StringIn>billu</StringIn>

</ns0:STR_MT>

<u><b>and i want to get</b></u>

<?xml version="1.0" encoding="UTF-8"?>

<ns0:STR_MT xmlns:ns0="com:Poalim_Test">

<StringIn>shellybillu</StringIn>

</ns0:STR_MT>

Former Member
0 Kudos

Hi,

you have to use a Message mapping in an Transformation Step.

than you can do that.

Collect the Messages in a Multi Row Container. And the Transformatin form the Multirow to a singlerow.

http://help.sap.com/saphelp_nw04s/helpdata/en/42/f3ca2529491bc7e10000000a11466f/content.htm

Regards,

Robin

Former Member
0 Kudos

Hi,

Collect both xml messages using 2 receive steps and use one transformation step with multi-mapping (2:1) { Mapping from 2 STR_MT messages to 1 STR_MT message }

Regards,

Uma

Former Member
0 Kudos

Hi Shelly,

you can use an interface (and message) mapping where 2 messages go in and 1 message comes out. Now, you can combine both strings within the graphical mapping, using the "concatenate" function.

Kind regards,

Dennis

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

The combining of messages will be possible using an Advanced User Defined Function.

In your advanced user defined function select CACHEand then give "Stringln" as the Input parameter.

Code,


String concatString="";
for(int i=0;i Stringln.length;i++){
concatString=concatString+Stringln<i>;
}
return concatString

ofcourse, thsi would be in the mapping aftter you have collect your N messages and need to combin them into a single message.

Regards,

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

what do you mean?

you can use message mapping to concatenate strings for example

Regards,

michal

-


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