cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Lookup API

Former Member
0 Kudos

Hi All,

We want to use Mapping Lookup-RFC API in our code.currently we are making JCO call to the ABAP Stack.

However I see that while getting the instance of Channel Class we have to specify the service and the name of the communication channel.

We have a single SLD and 4 different XI systems.After transport the Service name in the destination System changes.Hence we cannot hardcode the Service name in the code.

Can anyone help to let us know how can we use the Mapping-lookup API in different systems after transport.

Regards,

Sulakshana

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can hardode for all systems

and do and if clause for all systems

(use sender system - which should change)

as an if check

Regards,

michal

Former Member
0 Kudos

Thanks Michal,

We had this in mind but were not sure if this would be the correct way to do.

Cant the Service be extracted dynamically somehow?

Regards,

Sulakshana

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

sure it can:)

have a look at my weblog (point 2):

/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi

sender_service is the technical context object

so somehting like this:

String constant;

java.util.Map map;

map = container.getTransformationParameters();

constant = (String) map.get(StreamTransformationConstants.SENDER_SERVICE);

return constant;

Regards,

michal

Former Member
0 Kudos

Hi Michal,

thanks for you inputs.We needed something like this only.

Regards,

Sulakshana

Answers (0)