cancel
Showing results for 
Search instead for 
Did you mean: 

Standard program/bapi to start and stop channels in XI

Former Member
0 Kudos

Is there a standard program or bapi that will start and stop the PI channel in ECC6. We use Control-M as our scheduler, so I want to write an abap that will start and stop the PI channel and use Control-M to schedule that ABAP.

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Hi Linda - did you resolve this? I have the exact scenario as you: external Control-M needing to turn off/on the comm channels.

Keith

Former Member
0 Kudos

Hi - we were able to achieve this, i.e. start/stop PI comm. channels from Control-M, by doing the following:

- have the Control-M folks at your site create a script (in our case unix) that calls the TELNET command to send some encrypted HTTP info to the SAP server. In our case the http looks like:

http://<server_name:port>/AdapterFramework/ChannelAdminServlet?party=*&service=<business_system>&cha...

to stop the channel.

- the PI comm. channel(s) to be accessed must have "External" control on - see rwb "Communication Channel Monitoring"

- id to be used must have enough auths - we simply used sap_all

For us this works great in that turning the channel off/on is a job in Control-M and therefore can have preceding/succeeding jobs - the channels get turned off/on exactly when needed, and thus not relying on a 'guess' using the Availability parameters.

Hopefully this helps.

Keith

udo_martens
Active Contributor
0 Kudos

Hi Linda,

Alessandro give an example in his blog: [Using the Communication Channel Web Service with ABAP: A Sample Report|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11633] [original link is broken] [original link is broken] [original link is broken];

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

I was thinking about the same blog to suggest but then I saw, it says after changing the status automatically you have to login to ID to activate the change list manually. Correct me if I am wrong.

Regards,

Sarvesh

udo_martens
Active Contributor
0 Kudos

Hi Sarvesh,

that blog was just n example. The report creates changelists, but you can easily activate them by another service: [SAP help: Activate a Change List (Activate)|http://help.sap.com/saphelp_nw04/helpdata/de/46/813b5c2e726ef0e10000000a1553f6/frameset.htm]

Regards,

Udo

Former Member
0 Kudos

I can't understand the language mentioned in the link, anyway thanks for your reply.

Regards,

Sarvesh

udo_martens
Active Contributor
0 Kudos

Hi Sarvesh,

here the link with engl language: http://help.sap.com/saphelp_nw04/helpdata/en/46/813b5c2e726ef0e10000000a1553f6/content.htm

Regards,

Udo

BTW: You can change the language of any sap help side by right mouse click, properties, copy the address and put it into your brower address field by changing language sign (here i changed "de" to "en").

Former Member
0 Kudos

Check if Adapter Scheduling can help you as mentioned in this blog..

/people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-

Former Member
0 Kudos

I dont understand the question.

I guess you want to start and stop channel in XI/ PI.

Then you can use the Availability time planning for that.

Correct me if i haven't got your question.

Thanks,

Hetal

Former Member
0 Kudos

We have to use Control-M job scheduler and we want it to schedule PI. We're finding out that in order to do that, we might have to write a program in ABAP to start and stop the channel and then have Control-M schedule that ABAP. We know Control-M schedules the ECC6 ABAP jobs because that is our scheduler for our batch jobs in SAP.

Please let me know if you still don't understand.

Former Member
0 Kudos

HI Linda,

If i understood ur requirement correctly...

After scheduling your jobs in ABAP ..you dont need to schedule any other stuff in PI

as if you are calling a proxy programme it will automatically triggers the PI scenario after ABAP programme execution.

or if you are generating a file out your ABAP programme and as soon as the file gets created in folders based on the file adapter polling time it will be picked up...

i dont see any reason why you need to schedule PI channels in these case.

Please let us know if your scenario is completely different from above.

Thanx.

Former Member
0 Kudos

Thanks, but we Control-M to schedule PI. Our ABAP programs are putting files on a shared drive and we're using PI to pick up the files. We want everything controlled and schedule by our data operations. We use Control-M to do that scheduling. There isn't a direct link from Control-M to PI, so we are starting and stopping the communication channels through an ABAP program. That way we can use control-m to tell PI when to pick up the files and push the data where it is supposed to go.

Former Member
0 Kudos

Hi Linda,

I am not aware of any standard program to handle communication channels.

The only thing you can use are standard web services provided to manage them: [Controlling a Communication Channel Externally|http://help.sap.com/saphelp_nw04/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm]

Using them you can easily build your own report / function module or directly call the ws from ControlM.

Kind Regards,

Sergio

Former Member
0 Kudos

Thanks for the link. One more questions, Do you know how to get the response back from this to show if the status is successful. I would like to write it out.

former_member184619
Active Contributor
0 Kudos

Hi Linda,

Check this blog: /people/william.li/blog/2007/05/04/control-communication-channels-externally-without-using-rwb

this might be useful for you.

Sachin

Former Member
0 Kudos

Hi Linda,

if you use action = 'status' you will get back the status of the channel.

Kind Regards,

Sergio