on 10-13-2006 3:44 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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.
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.
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.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.