on 10-29-2008 6:05 PM
Hi everyone!
Is it possible to use the sy-uname for the logged on user (XI system) in the mapping? I know I can retrieve it with an ABAP mapping before the XI mapping, but I would like to know if it can be found in a system field or anything...
regards Marianne
Hi.
Thanks for that input, but it still returns value 'null'...I have some ideas now that I can look into so I'll see what I can get from it...
Marianne
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi mariane
Set the parameter
Apply URL parameter
Parameter1 - sap-user
This has to be setup in Sender HTTP adapter. With this the value will be passed when there is a data posted to URL for your sender adapter.
http://xiserver:port/sap/xi/adapter_plain?namespace=senderNamespace&interface=senderinterface&service=sender service&party=sender party&agency=&scheme=&QOS=QOS&sap-user=userid &sap-password=password&sap-client=PI client&sap-language=EN
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anand
I guess I have to be in a java mapping to use the system.getProperties() method? A bit hard as I do not have this for this scenario. Or can I use this method somewhere else?
I'll anyway try to look further for the different properties.
Rai: I have tried dynamic configuration before, but in this case it only gives me 'null' as output...
Marianne
Hi Mariane
You can get the user of the HTTPS request
This is possible when you have sap-user in the URL of HTTP.
Set the parameter
Apply URL parameter
Parameter1 - sap-user
Then in mapping just write a UDF
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey keyURL1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "UrlParamOne");
String ourUser = conf.get(keyURL1);
return ourUser;
You can pass this user to target message. I think this you was looking for.
Thanks
Gaurav
Edited by: Gaurav Bhargava on Oct 30, 2008 12:45 AM
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.