cancel
Showing results for 
Search instead for 
Did you mean: 

System ID in BPM

Former Member
0 Kudos

Guys,

In the past I used the following in a user defined

function to determine if the code is running on

Development or Production system:

receiver = (String) map.get(StreamTransformationConstants.RECEIVER_SERVICE);

This is no good however within ccBPM.

So how can I get, say, the system ID from a UDF?

Your help would be much appreciated.

Thanks a lot,

Vitkor

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Viktor,

Am trying the same since past 4 days. If you find a soln. pls update me. If I find any soln. will update u.

Thanks & Regards,

Jai Shankar.

former_member206604
Active Contributor
0 Kudos

Hi,

You can also use function <b>receiver</b> under constants section.

http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm

Thanks,

Prakash

Former Member
0 Kudos

Prakash,

The problem is, if I try to get the receiver name using the code

String headerField;

java.util.Map map;

// get runtime constant map

map = container.getTransformationParameters();

// get value of header field by using variable key

headerField = (String) map.get(ReceiverName);

I am getting the BPM name and not the target buss. sys name. I tried the mapping both with in and out side BPM.

Your comments are highly appreciated.

Thanks & Regards,

Jai Shanar.

Former Member
0 Kudos

Hi,

Getting the BPM name as the receiver service, seems to be logically right here.

In case, this target business system name,is being used just to determine the target(and if no mappings depend on this value) then, we could try using this code outside this BPM in Interface mapping.

Use, extended receiver determination, and specify this code(Message mapping) in IMapping.

This is just an input, I haven't tried this out before.

Regards,

Smitha.

Former Member
0 Kudos

Smitha,

Thanks for your comments. Am not very clear with your explanation. Can you elaborate this a litl bit? As you said, I just need to find the target business system name and assign it to a target field (now I am hard coding the same with a constant and my client does n't want this.)

I tried the mapping outside BPM, but no success I get the BPM name only. Can you help me out......

Thanks & Regards,

Jai Shankar.

Former Member
0 Kudos

Hi,

I assume this to be your scenario:

src>BPM>Multiple Trgts

The code if implemented within the BPM, would give the BPM name/id as the receiver. Correct?

This is not what we want. We would want to get the target. i.e, source=BPM, target=?

Instead of using a normal receiver determination between, BPM-->Multiple Targets,

we could try and use extended receiver determination.

When we use, extended receiver determination, we need to specify an interface mapping.

My idea, was to implement this code(posted by you,in the previous post), in this interface mapping.

This way, we might be able to get the correct receiver business system.

Hope I was clear.

Regards,

Smitha.

Former Member
0 Kudos

Hi All,

Can any one eaxplain me this?

>>>My idea, was to implement this code(posted by you,in the previous post), in this interface mapping

I din't get this. How can I use a code in interface mapping? I am doing it in simple UDF. Am I missing some thing here??

Many thanks,

Jai Shankar.

Former Member
0 Kudos

Hi,

The interface mapping inturn uses a message mapping right?

You could try and implement this code in this message mapping.

Regards,

Smitha