cancel
Showing results for 
Search instead for 
Did you mean: 

how to execute a file to file scenario like ---> Proxy -> pi - > ( FILE to FILE)

Former Member
0 Kudos

I have a File to File Scenario, but now i want to control the execution of the Communication channel Sender from this scenario with another interface, is there's a trick to execute this File scenario when the user execute another proxy Interface?

     my actual Scenario       File to file (without ESB objects)

     my new Scenario  Proxy -> pi - >  ( FILE to FILE)  or Proxy - >  ( FILE to FILE)

Accepted Solutions (0)

Answers (4)

Answers (4)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Here is one easy and feasible approach.  You might want to try this..

You can control the communication channels using script externally.  This way you can start the sender file adapter whenever is desired.

But if you want to trigger this programatically do the following steps

a) create script that start your file adapter..

b) Call the script via your abap program... Execute your abap program as you want....

use this blog

http://scn.sap.com/community/pi-and-soa-middleware/blog/2007/05/04/control-communication-channels-ex...

write command in unix script like example

wget http(s)://nspad271.pal.sap.corp:50000/AdapterFramework/ChannelAdminServlet?party=&service=BLService&channel=*&action=start

Take help from unix team to write the script...

Call this script from your abap program which is feasible.

ambrish_mishra
Active Contributor
0 Kudos

Hi Erick,

Some guesses: You are trying to trigger the file scenario through the proxy scenario.

So when the proxy is executed, you want to trigger another interface.

You can try like below:

Suppose your file is created in location \interface\PI\out

You configure the sender adapter in your second scenario to pick the file from the above location with a trigger file. Go through Q4 in the link below:

http://wiki.sdn.sap.com/wiki/display/XI/Sender+File+Adapter+Frequently+Asked+Questions

You can create the trigger file on this location through the proxy interface.

Hope it helps!

Ambrish

PS: Why not ask the user to start and stop the Sender channel "xyz"when he wants to trigger the interface

praveen_sutra
Active Contributor
0 Kudos

Hi Erick,

As per my understanding it can be achieved by:

In your proxy to file scenario create two output files.

one will be regular output file as the scenario requires and other one as the trigger file in different location.(1-n mapping concept) you can find multiple documents for this.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1...

http://scn.sap.com/thread/3253882


Then you can use the trigger file to start or initiate the next process(file to file scenario).

thanks and regards,

Praveen T

former_member190624
Active Contributor
0 Kudos

Hello Erick,

you mean your scenario is like

Proxy -> pi - > FILE --> PI-->FILE/Proxy - >PI-->   FILE -->PI-->FILE  ?

Correct me if get it wrong.

Regards

Hari.

Former Member
0 Kudos

Hi HariKumar

yes that is my scenario, thanks for responding.

Regards,

ER

former_member190624
Active Contributor
0 Kudos

Hello Erick,

I wanted to know what exactly you are trying to do with above scenario? Are you trying to transform source message structure to destination message structure ? If you explain your requirement we can help you with better solution .

Regards

Hari.

Former Member
0 Kudos

Thanks for responding

i have a file to file scenario working without ESB objects working, using a receiver determination to make a split message of the receiver File Adapter and the proxy adapter (responding the name of the file moving)

my requirement is ....the user needs to control the execution of this files after he press a button from Sap using abap proxy....and cancel the automatically Communication channel from the File to file scenario.

 

Thanks again HariKumar.