on 07-13-2010 12:11 PM
Hi All,
I am using RFC lookup for one of our project requirment. we will be using one of our inputs as business system which hosts the RFC function module (RFC_READ_TABLE). in our dev it is our XI business system. But when we move these objects to quality or prod, this mapping fails because the name of the XI business system changes. Can anyone suggest me how we can get the xi system name dynamically.
Best Regards,
Deepika
a simple way to identify the XI system from within a mapping is;
//retrieve SID
String sysName = (String) System.getProperty("SAPSYSTEMNAME");
if(sysName.equals("XXX"))
{
//your logic here
}
else if ()
.....
.....
....
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepika
You can use the function "Sender" or "Receiver" (depending upon whether your business system is sender or receiver) which is available under 'Constants' category in Standard funtions of Graphical mapping.
These functions give the current value of the businees system in the environment where the interface is running.
Let me knwo if you are still not able to pick it.
Thanks
Ram
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 use a ABAP mapping and ask for system variable SY-SYSID. Depending from that you set the BS.
You dont need ABAP dom for such simple cases. Use FM ECATT_CONV_XSTRING_TO_STRING to get a string from input and finally convert the result string back to XSTRING with ECATT_CONV_STRING_TO_XSTRING. Use ABAP expression REPLACE REGEX (with regular expression) for replacing the BS.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.