cancel
Showing results for 
Search instead for 
Did you mean: 

Executing a Script located in external server with XI

Former Member
0 Kudos

HI All

I´m trying to develop a file to file scenario. My problem is that i have to execute an script at the very begining in order to generate the file that XI has to process. This Script is in a diferent server than XI. Any idea?

Many thanks in advance.

Noelia

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

if you want to do it from XI you can

create a simple java proxy that will just execute the script

and you can invoke this proxy with anything

(from WWW if you want or from abap scheduled abap report etc)

Regards,

michal

bhavesh_kantilal
Active Contributor
0 Kudos

One option~~

Use a dummy file interface which will pick upa file in TETS mode every polling interval and during the message mapping stage, you can use some java API to trigger the shell script to move the files into the XI folder so that you actual scenarios can pick the file.

AM not sure how feasible this solution would be in your case though.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Michal,

Many thanks for help me so fast. your info in the SDN has help me many times. Do you know were I can find information about how create the java proxy an how invocate it.

Many thanks

former_member206604
Active Contributor
0 Kudos

Hi,

Yes you are right Michal, ofcourse you are always.

There is also a workaround by using operating system commands. Write a batch file to execute that script and invoke the batch program in the file adapter. Make sure you are using the full path while calling the batch file and inside the batch file as well.

Thanks,

Prakash

bhavesh_kantilal
Active Contributor
0 Kudos

hi,.

https://websmp210.sap-ag.de/nw04

--> Sap Netweaver 2004 > How to Guides.> How to Guide on java Proxy.

you need a market place id for this though.

Regards,

Bhavesh

Former Member
0 Kudos

Hi all

thnaks for all your help, my problem is that i have never works with java proxies. And I´m totally lost, can anybody help me.

Many thnaks in advance

Answers (0)