cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Communication Channel

Former Member
0 Kudos

Hi,

I have a requirement where SAP will send some sort of trigger message via ABAP proxy or IDOC.

As soon as the trigger message comes to PI, I need PI Sender SFTP adapter to pick up two files from FTP server and transmit it to target.

How do I achieve this?

Can one Integration Scenario call another sender communication channel? Any blogs or help is much appreciated.

Regards

Anandh.B

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi,

There is a nice blog by William Li that describes how to start & stop communication channels externally, with a SOAP web service:

You could build a Proxy to SOAP scenario (or IDoc to SOAP, but Proxy seems better for that purpose) that will start and stop the sender CC of the main scenario.

Hope this helps,

Greg

Answers (3)

Answers (3)

Former Member
0 Kudos


Hi

What parameters should  I be passing in the soap scenario, what is the structure that I will need to pass.  William blog does not explain about the structure.

Regards

Anandh.B

Former Member
0 Kudos

link is mentioned in the blog:

http://help.sap.com/saphelp_nw04/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm

●      http(s)://host:port/AdapterFramework/channelAdmin/ChannelAdmin.dtd

●      http(s)://host:port/AdapterFramework/channelAdmin/ChannelAdmin.xsd

former_member184681
Active Contributor
0 Kudos

Hi,

The set of parameters is mentioned in the payload screenshots: Payload, Service, ChannelName, ChannelID, ActivationState and ChannelState as a flat structure. You can use the .xsd file mentioned by Amit Srivastava to import the structure as an External Definition and use it in your scenario.

Hope this helps,

Greg

Former Member
0 Kudos

Hi,

My requirement is to start the channel leave it for 60 seconds to pick up the file and stop the channel.

After reading the help, it does have a action button which can either start or stop.

What should I be doing for this to stop?

Regards

Anandh.B

Former Member
0 Kudos

Hi,

I am not sure howmuch this helps.

As soon as you get the trigger IDOC/proxy, at the reciever side call a script which moves the desired files from target folder to temp folder.

point your sender SFTP channel to temp folder and process the files.

--Naresh

rajasekhar_reddy14
Active Contributor
0 Kudos

   You can try Greg suggestions, it works but stability always concern as my experience,

better to ask ECC team to share abap proxy triggering times based on that you can schedule adapter more effectively with correct polling time/by scheduling an adapter,toi trigger abap proxy in ECC definitely they will use back ground program by running periodically.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Another possible approach is to trigger the sender communication channel using the script from sap system. The script can be called from SAP report or function module. This way you can avoid doing the first interface. The below script triggers the sender SFTP adapter from the script itself.

You can use command  example in your script...

wget  http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=action

refer this link.

http://help.sap.com/saphelp_nwpi71/helpdata/en/45/0c86aab4d14dece10000000a11466f/content.htm