on 08-04-2016 8:19 AM
Is there a way to detect where an UDF runs? I like to detect if a UDF runs/was called by...
Background: In my UDF I'm using DynamicConfiguration. The values therefore only exist in productive environment, so I get exceptions when running the mapping test in ESR. Therefore I like to detect the environment, so that I can handle it and call the DynamicConfiguration code only, when the UDF was called by the "productive" environment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark, that isn't what I'm searching for. Please see my answer to Iñaki Vila above.
Hi Raffael,
Sorry I replied too soon. Well for one, dynamic configuration won't ever get executed in test tab. The mapping test will always error unless the test is done at runtime. To answer your question:
The test tab would not generate a messageID unless you are using lookups (RFC, JDBC or SOAP). The user can be traced by looking at the table sxmspmast once you know the messageID.
Regards,
Mark
Hi Raffael,
Check this thread How to identify environment dev,qa,prd in java ... | SCN
In this way with getHostName(), you can have a value-mapping to identify host names with the environment.
I haven't tried Martin Sommer suggestion.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I think my question was a little bit misleading. So let me try to clarify:
Nevertheless, thank for your help and effort so far.
Instead of testing the Message Mapping, you can always test the Operation Mapping. What this would mean is then that the Dynamic Configuration code will not lead to an error. While not a direct answer to your question, an alternate i hope can help!
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.