cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling communication channel

Former Member
0 Kudos

Hi All,

Is there a way to control adapter availability dynamically.

Requirement - My scenrio is IDOC to file. SAP ECC will generate multiple IDOCS and will send them to PI as different messages. SAP PI once all the data is written in a file will send the file to receiver system.

As per my design, SAP PI will write the data to a temporaray file. Once the the file written, Another channel will pick that file and send it to receiver system. I want this second channel to get activated dynamically once the file is written in temporary location.

Is this possible? Also let me know if above requirement can be fullfilled by some other way.

Thanks

Amol

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>Is there a way to control adapter availability dynamically.

>>Requirement - My scenrio is IDOC to file. SAP ECC will generate multiple IDOCS and will send them to PI as different >>messages. SAP PI once all the data is written in a file will send the file to receiver system.

>>As per my design, SAP PI will write the data to a temporaray file. Once the the file written, Another channel will pick that file >>and send it to receiver system. I want this second channel to get activated dynamically once the file is written in temporary >>location.

>>Is this possible? Also let me know if above requirement can be fullfilled by some other way.

You can create two scenarios.

First scenario collect all IDOCs and write as one file on the receiver system.

See this [link|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14425] [original link is broken] [original link is broken] [original link is broken]; .This might be helpful

second scenario: Just File transfer from one place to other FILE TO FILE (only ID objects needs to be created)

for [second scenario|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4383] [original link is broken] [original link is broken] [original link is broken]; see this link.

Create Unix script something similar ...

Step 1: check the file available (file that is created by first scenario)

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

Step 3 wait for 2 mins (sometime like command sleep 120)

Step 4: Check the file transfer occured in the reciever side

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

Note: This link will be helpful for starting and stopping the command (same link from previous reply )

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

Use wget http://.. command in the script

Edited by: Baskar Gopal on Mar 10, 2011 1:28 PM

Former Member
0 Kudos

You can control the file adapter (or any adapter in the java stack) with HTTP Requests:

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

So you may write an UDF or Adapter Module in your first transfer that starts/stops the other channel.