on 09-04-2008 11:40 AM
Hello,
I have a requirement where am accessing the R/3 Function module via RFC lookup.
But, as of now am hardcoding the development system name, Let me know how to handle the hardcoding in UDF like automatically it should point Development, Testing and Production.
Regards,
Anandh
Better to use Key-Value pair.
like
DEV = BS_D
QUA = BS_Q
PRO = BS_P
Now in your UDF apply the logic through which it will read the SID of the systems and based on that it will map the business systems.
this will determine at runtime and you dont have change it in other environemnt. also take care of communication naming also.
thanks
farooq
Edited by: Farooq Farooqui on Sep 4, 2008 4:18 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
try to use following code to to get the receiver service name at run time.
java.util.Map map;
map = container.getTransformationParameters( );
String constant1;
Constant1 = (String) map.get(StreamTransformationConstants.RECEIVER_SERVICE);
but the following code
Channel channel = LookupService.getChannel("DEV","CC_RFC_TO_XI");
using string as a input.
so can u try this "constant1" as a input value for BS name.
constant1 is getting value at run time and use this value as a input.
just try i am not sure about this.
regards,
navneet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Declared my communication channel as business service rather than business system. That will become generic and no hardcoding or SID is required
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
As you have a communication between an Asynch System (File) and a Synch System (RFC) you would need to use a BPM. There are no work arounds to it.
There is one option though, there is a concept called RFC LookUp using which you can call an RFC and get the response from insde your message mapping with a User Defined function.
So, maybe you can get the file, and while mapping the same to the target file , you can trigger the RFC call using the RFC LookUp API and then map the response ot the target!
But, this should be used only in case of non transactional RFC calls. If the RFC is going to do some DB actions like Insert / Update you should not use this option.
Let me know if you need more details,
regards
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Do you have this system where you are doing RFC look-up as ENDER or RECEIVER system/servcies in XI ?
If yes, then you can use the constants from in-build function called "Sender" or "receiver" and feed it to the UDF, which will dynamically take the value from here....
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.