cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization of SAP system and XI channels

Former Member
0 Kudos

Hi Experts,

Our SAP system backup works on every Sunday, till Monday morning, so right now I am using Avalability Time Planning to start and stop the channels for such requirement. But one issue is there, if SAP system comes up late on Monday ie after scheduled time, but XI channles start then many messages stuck in queue. And I am supposed to clear it manually. All the channels also error out.

Is there any way to stop such manual work. Can we synchronize SAP system and XI channels ? Please provide your suggestions.

Regards,

Nutan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Finally it got resolved.

Shabarish_Nair
Active Contributor
0 Kudos

use or schedule report RSARFCEX and RSQIWKEX to help you

Former Member
0 Kudos

HI Vijay,

Please explain me more, since I am not aware of these reports.

Regards,

Nutan

sunilchandra007
Active Contributor
0 Kudos

Have a look at [XI : How to Re-Process failed XI Messages Automatically|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2728] [original link is broken] [original link is broken] [original link is broken];

Regards,

Sunil Chandra

Former Member
0 Kudos

Hi friends,

I got a solution for this issue: External controlling of channels. But for that I need to create a HTTP request sent to the url:

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

In my case, R/3 system goes down after a script runs. So, I want to design the interface in such a way that, when the script runs to stop the R/3 system, then through an Abap program the above url to be called. But I am not getting how to do that. Please provide me suggestion.

Regards,

Nutan

Former Member
0 Kudos

Hi Friends,

As per my previous solution, it wont be possible because as sap system shut down script starts Abap stack will also go down. So, can it be possible to generate http request through unix script and take external control on channels. Please suggest if you are aware of any sample script in unix for generating http request.

Regards

Nutan

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>> So, can it be possible to generate http request through unix script and take external control on channels. Please suggest if you are aware of any sample script in unix for generating http request.

Yes, it is possible. Use Wget command in the unix script.

Example:

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

where action is start or stop

Hope that helps.

Former Member
0 Kudos

Hi,

I tried to use wget command, but it was failed because it required few ports to be open. Now it's resolved by using the below details:

#!/usr/bin/python

import base64

import urllib2

encodedstring = base64.encodestring("username:password")[:-1]

auth = "Basic %s" % encodedstring

req = urllib2.Request("http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=action", None, {"Authorization": auth })

handle = urllib2.urlopen(req)

result = handle.read()

open("output.html","w").write(result) # write to output.html

I used the above script. It worked fine. This script is scheduled on every weekend so, that when the SAP system goes down this will be invoked and it will stop the vhannel or start, as per the request.

Thanks for the help.

Regards,

Nutan