Reg:To control the communication channel actions externally
Dear All,
My scenario is File to File. Can anyone suggest me how to start and stop a communication channel without using communication channel monitoring in RWB and ATP in component monitoring,since there is no time frame has been set.
Thanks in Advance,
Lavanya .B
Hi,
Try this ... just a sample, modify as per your requirement.
import java.net.*;
import java.io.*;
class ExternalChannelControlPI
public static void main(String[] args)
try
//Give Host Name, Port and Channel Name
URL server = new URL("http://<Host:port>/AdapterFramework/ChannelAdminServlet?party=*&service=*&channel=" + <ChannelName> + "&action=start");
//Hard code User Name & Password
String userPassword = "<USERNAME>" + ":" + "<PASSWORD>";
URLConnection uc=server.openConnection();
uc.setRequestProperty ("Authorization", "Basic ");
BufferedReader br = new BufferedReader(new InputStreamReader(uc.getInputStream()));
String inputLine = "";
String output = "";
while (( inputLine = br.readLine()) != null)
output+=inputLine;
System.out.print(output);
br.close();
catch (Exception e)
e.printStackTrace();
Similar Messages
-
External control of communication channel
Hi Friends,
I had observed that for the external control of communication channels the status is showing as "Channel Stopped",is it necessary to stop the channel , Could you please update me what are the statuses we can maintain in the case of external communication channels.thaers is only 2 statuses like stop and start communication channels only.
http://help.sap.com/saphelp_nw73/helpdata/de/ce/de449248544617876064a02b2a0fb8/frameset.htm
control of communication channels
http://help.sap.com/saphelp_nw73/helpdata/de/4b/abc051dcae4c4683841983e6d11375/content.htm -
How to set up the communication channel for third party idoc
Hello,
I am trying to send an idoc from an sap 4.6c system to an third party system. The third party system is supporting idcos with trfc.
My problem is to set up the communication channel in the integration builder (configuration) for the third party system. The idoc is waitung in XI to transport.
My settings are:
adapter type: idoc
transport protocol: idoc
message protocol: idoc
adapter engine: integration engine
rfc destination: xyz (is working fine)
interface version: sap release 4.0 or higher
port: ??
sap release 46c
My problem is the port. should i set up a port in idx1? But the third party is not an sap system and so i dont have a client.
On the xi i have defined a port in transaction we21 (transactional rfc) for the third party with my rfc destination xyz. But if i enter that port in communication channel i got error messages.
Thanks for any help.Hi Christian,
yes, you have to mainztain that port in idx1.
First ypi load the rfc-metadata from an SAP referenzsystem and afterwards copy this metadata to the third party port.
For further details check the onlinedocumentation "IDoc Processing with the IDoc Adapter" XI -> runtime -> adapter
Good luck,
Holger -
Error in generating the communication channel
Hi All,
I am getting the following error while trying to configure the business scenario using the Integration Directory.
Attempt to create object failed
Unable to generate the communication channel (XI_Test_Sender_BS, XI_Sender_BS): com.sap.aii.utilxi.misc.api.ClientServerException
Here I am trying send a message from a third party system to an SAP R/3.I had selected the adapter type as File adapter on the sender side and Idoc adapter on the receiver side.While configuring using the Configuration Wizard, the error mentioned above is generated.
Please help me.
Thanks and Regards,
Soumya.HI Rajesh,
Thanks for quick reply...
My requirement was to idetify the order number in table which i have generated a sequence to be unique in DB.
Do we have any option to process a single file at a time from the sender location instead of multiple files...i can see processing sequence <bydate> option in nfs but not in FTP.
Please suggest....
Thanks in advance,
naveen -
Calling specific put/get commands from the communication channel
Hello,
I need to execute a specific command to place or read the file from the bank file server.
The command for placing the file is something like this -
put localfilename %localfilename%SECUPGPENA%GPEXRIP%%B
I am trying to use the following command in the "Run Operating System Command Before Message Processing" section of the communication channel
"put %F %%F%SECUPGPENA%GPEXRIP%%B"
But the files are not being transferred.
I believe that I need to replace the actual message processing command by the given command by writing a script and calling it.
Please give me any pointers for solving the issue.
Regards,
MayankHello,
Thanks for your response.
I have already gone through the above blogs.
The issue is that I need to replace the actual command used in the file transfer with the given put command.
Please let me know if there is a workaround for it.
Regards,
Mayank -
Channels not monitorable in the Communication Channel Monitor / RWB
Hi,
Back on XI after a long break ☺
I am facing an issue with our in-house JCA adapter used in XI scenarios. When trying to monitor the channels using our adapter from the Communication Channel Monitor in RWB, I have the following:
Status: NA
Short Log: No adapter registered for this channel
The adapter is deployed and the integration scenarios using it work perfectly:
- sda package deployed through the SDM
- the metadata defined in the Design
- a valid and working configuration involving the scenario is defined
The messages are going through and are monitorable in both SXMB_MONI and RWB...
All other channels using system adapters (File, RFC, SOAP ) do display a status (as a color icon) and a Short Log and they can be administered (start/stop) using the enabled buttons when selected
From the Adapter Monitor page, our adapter has a green status, and all the channels configured to use it display the status, Name and Text information...
I have no idea what could be the issue should the adapter implement a special interface to be monitored from the RWB, is it a configuration issue, permissions issue???
I saw 2 posts with this error message but they did not help me to figure out where the issue is
Thanks for your help,
Adalbert
Edited by: Adalbert Wysocki on Apr 29, 2008 6:52 AMHi Gouri,
Thanks for your response, I will try would suggestion for testing... but
I am wondering why the namespace has to be http://sap.com/xi/XI/sample ???
It sounds weird that this namespace has to be fixed... as the purpose of a namespace is to create a isolation/container for names... so it needs to be customizable...
I did not see anything in the Adapter Development guides related to this kind of constraints...
Thanks,
Adalbert -
Start and stop the Communication channel from Java Mapping
How to start and stop the Communication channel from Java Mapping in XI 3.0
Scenario PI - > MQ -> Third Party web application
Web application is down and then Communication channels are stop manually .
We need to automate this process,
MQ Solution - Trigger will be set in MQ which will be called when web application is stopped
Trigger will send u201CSTOP u201C message to PI
How to configure PI scenario to stop different com channels when this message received ?check this link: http://help.sap.com/saphelp_nw04/helpdata/EN/45/0c86aab4d14dece10000000a11466f/frameset.htm
make sure that MQ send http request to PI. i dont think a configuration scenario is required in PI. Only roles should be enabled with proper user provided to MQ team.
However, for security reasons, you can configure a scenario if you dont want to expose PI infrastructure directly to 3rd parties. -
Shut down the communication channel query
Hi Experts,
I wanted to know answers to the following
1) Is there any limit on the number of messages that can pile up in the adapter engine if we shut down (Deactivate the communication channels)?
2) When we reopen the communication channels later, will the messages be processed in the same order they have arrived?
Regards,
Ravi Kanth Talagana>
Ravi Kanth Talagana wrote:
> Hi Experts,
> I wanted to know answers to the following
>
> 1) Is there any limit on the number of messages that can pile up in the adapter engine if we shut down (Deactivate the communication channels)?
completely depends on your server configuration (h/w)
> 2) When we reopen the communication channels later, will the messages be processed in the same order they have arrived?
>
> Regards,
> Ravi Kanth Talagana
once they are reopen you will have to manually resend them and again if they are EOIO configured then the sequence will be maintained. -
Regarding the Communication channel options
Hi guys,
In the Communication channel We have an option in the File processing parametrs that is File construction mode Here i gave Append, every time the output is appended to the current file, but my requirement is i want to append the data on the date wise, means today(29/08/08) i want only one file, tomorrow(30/08/08) ill get only one file,...
How to achieve this, how we will give the date in the CC ?Hi,
Rather than using the variable substution use this.
1. Create a UDF with two input a,b with the following code.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String fname = "file" + a + ".xml";
conf.put(key, fname);
return "b";
2. Map the CurrentDate function with transformDate and with the UDF as input a and any other mandatory field as another input b map the out put of the UDF to the required filed.
3. In the TransformDate function use the Source date format as yyyy/MM/dd and target date format as yyyyMMdd.
note: mapping any source field with b input via UDF to the target field ensures that the UDF is always executed and sets the file name with the current date.
Thanks
SaNv... -
Identifiers tab of the Communication Channel
Can any one explain me about,
<b>Identifiers tab of the Communication Channel</b> in the context of both A2A and B2B scenarios.
Thanks,
-Naveen.Hi Naveen,
Mostly this will be useful when u r doing B2B scenario.
To explain this let us take an example.
Vendors/Suppliers are represented by some code in our business. But outside our business it might be represented by some other code. But both the codes representing the same Vendor/Supplier. It is just like a same person holds different roles at different time. Mr X can be a father of a child, husband of a lady, etc...So, how to handle this situation in XI. Here comes this identifiers.
Mostly this concept will be useful in Value mapping. In value mapping table we need to specify the idetifier and schemes that how a value shoud be represented. Either it can be DUNS (a code that represents the vendors) and other two options in XI (I forgot it). This value mapping table is maintaied in ID. During the mapping, these values will be mapped only at runtime, (so u wont get any result durign testing).
U can also refer help.sap.com (Value mapping) for more help on this...
Regards,
Prasad U -
BD Lookup Error _ Not using the COmmunication channel!
Dear all,
I Tried to do DB Lookup as told in this blog by siva
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
I used the below code.
I am not Getting any error, the mapping is successfully ACTIVATED. But in the Receiver field i am Getting Null as output , the DB lookup which i have mentioned is not connecting to the Database and executing and fetching the query. Just inthe receiver field its througing the Null valuse. The Required Value is not fetched by using the communication channel.
I am getting the above error when i try to TEST THE MAPPING in IR.
Below is the code i used.
SERVER:XI 3.0
SP:18
RECEIVER DATABSE: MSQL SERVER 2000
CODE----
//write your code here
String Query = "";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
Query = "Select cir_id from circle where cir_sap = 'IDBL'";
try{
channel = LookupService.getChannel("<Business Service/System Name>","JDBC_channel_receiver Communication channel");
accessor = LookupService.getDataBaseAccessor(channel);
resultSet = accessor.execute(Query);
for(Iterator rows = resultSet.getRows();rows.hasNext();){
Map rowMap = (Map)rows.next();
result.addValue((String)rowMap.get("cir_id"));
catch(Exception ex){
result.addValue(ex.getMessage());
finally{
try{
if (accessor!= null) accessor.close();
catch(Exception ex){
result.addValue(ex.getMessage());
END CODE----
Please help me out.
I am getting output as null. But in database value is there for cir_id where cir_sap='IDBL'.
Regards,
PrakashAs i told before i have tested the interface, its not showing any error, its Activated and throwing Null as output.
Its not fetching the value from database. In CC Monitoring also the adapter is in Green Status. No error over there. Its throwing the output as Null (Default value in the code.)
Below is the connection parameter i have used:
DRIVER:com.microsoft.jdbc.sqlserver.SQLServerDriver
CONNECTION : jdbc:microsoft:sqlserver://<IP>:1433;DatabaseName=test_db
But in the blog
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
If u can see properly, he has mentioed some extra parameters in the JDBC Connection Parameters.
But the screenshot is not proper so i am not able to see the querry he has used in Connection parameters.
Please help
Could anyone tell how to write the Select statement in Connection Parameter for Adapter as given (Partialy in screenshot in BLOG)?
Regards,
Prakash
Edited by: senthilprakash selvaraj on Jul 1, 2008 7:33 AM -
Error when trying to change the communication channel
Hi SapAll.
under the Integration Directory ,when i try to change the Descryption of communication channel and save it ,it is raising the unknown error which i cont uderstand at all as it is complaining about the other operation mapping which is using this comm channel in its process Integration scenario.
one thing i cont understand is y it is complaining about the other operation mappings which the communication channel is not at all related to ot.
the following below is the error that iam getting while changing the descryption of communication channel and saving it
Attempt to access the 1 requested objects on 1 failed. Detailed information: com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Operation Mapping ECC_ApprovedOrdersQuery_ApprovedOrdersRead_to_TRADESTONE_ServiceHandlerService_ApprovedOrdersRead | urn:sap.shoprite.co.za:ecc:pa, type MAPPING from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Operation Mapping ECC_ApprovedOrdersQuery_ApprovedOrdersRead_to_TRADESTONE_ServiceHandlerService_ApprovedOrdersRead | urn:sap.shoprite.co.za:ecc:pa not found
Attempt to access the 1 requested objects on 1 failed.
Detailed information:
com.sap.aii.ib.core.roa.RoaObjectAccessException:
Attempt to read object Operation Mapping ECC_ApprovedOrdersQuery_ApprovedOrdersRead_to_TRADESTONE_ServiceHandlerService_ApprovedOrdersRead
| urn:sap.shoprite.co.za:ecc:pa, type MAPPING from
application REPOSITORY on system REPOSITORY failed.
Object does not exist. Detailed informatio n: Object
Operation Mapping ECC_ApprovedOrdersQuery_ApprovedOrdersRead_to_TRADESTONE_ServiceHandlerService_ApprovedOrdersRead
| urn:sap.shoprite.co.za:ecc:pa not found (ROA_MOA_NOTCOMPLETED)
will be waiting for your response.
regards.
Varmathe problem is sorted.
my colleague has got incorrect objects in the scenario which is using the same communication channel,so she just deleted all the objects in that scenario under configuration .
now i can change and save,activate the communication channel after my colleague deleted the objects of the scenario.
regards.
Varma -
Controlling the sequence of Actions in PA 40?
dear experts,
can we control the sequence of actions executed thro PA 40?
for example , we have the following sequence actions in a client scenario
1. Hiring ( prioritised as 1)
2.probation( prioritised as 2)
3.confirmation( prioritised as 3)
4.change of salary( prioritised as 4)
5.transfer( prioritised as 5)
6.deputation( prioritised as 6)
7.separation (priotirises as 7)
Actually, SAP allows you to run change of salary after probation without confirmation
it allows you to run separation action after change of salary without transfer or deputation in between,
By prioritising actions customisation, system only throws a warning and allows the user to execute any actions after any other action except Hiring action ( sequence no 1)
can we prevent the system to prevent this ,by doing customistion , but without going for any development like hardcoding of sequence
soliciting PA experts advice
nataraj s
sap hr consultanthi,
as far as i know there is no such customization.
as such the sequence of actions depend on the clients.
hence they are left independent of each other.
there is no set standard or sequence of actions.
like a person can be hired today can be transferred tomorrow.
for some other person hired today for some reason terminated tomorrow.
one person hired to day next action can be cahnge in pay.
hence i dont beleive waht you are asking for is possible.
regards
nalla -
External Control in communication channel PI 7.1
Hi experts,
I would need to start and stop a communication channel from an external program, I have read in differents post that is possible via http call. But when I do the http call I get a permissions error. What permissions o roles I need in my user to do this http call?
Is necessary configurate anything? My PI version is 7.1.1.
Thanks in advance
Jose ManuelA user needs the following role to query the status of communication channels:
● xi_af_channel_admin_display
A user needs the following role to start or stop communication channels:
● xi_af_channel_admin_modify
http://help.sap.com/saphelp_nwpi711/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm -
Unable to Find out Adapter Engine in the Communication Channel
Hi Experts,
I am Unable to select the Adapter Engine As Integration Server in the File Sender Communication Channel.
Please Let Me Know
Regards
KhannaHI Khanna
Check the SLD that Adapter Engine is insatlled and all the adapter has the metadata there.
Go to Transaction Code SXI_CACHE in the Inetgration Server(XI- ABAP stack) Then you can see the list of components.
Just have a look into Menu Bar - in there goto : GoTo->Adapter Engine Cache ( if the status is green - then it is correct-otherwise you need to refreshit.)
You just go thru mentioned document from service.sap.com/nw04
You will get the full info about that.
/people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place
/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
http://help.sap.com/saphelp_nw2004s/helpdata/en/0d/28e1c20a9d374cbb71875c5f89093b/frameset.htm
Just try with Visual Administrator to check the services for the adapter engine are running or not
All services starts with SAP XI..
SAP XI AF Core
SAP XI AF CPA Cache
SAP XI AF Messaging
SAP XI Adapter XI
SAP XI AF Security
Check SAP note on CPACache- 741214 and also 824236.
Let me know if any errors..
Cheers..
Vasu
<i>** Reward Points if found useful **</i>
Maybe you are looking for
-
Acrobat 9 will not convert html
While running Acrobat Pro 9 and using I.E. 7 I tried to convert a web page to .pdf and all I get is a garbled pdf page. I have lowered the security setting in I.E. to medium but this does nothing. A couple weeks ago I was able to convert a web page t
-
XML into table: Why do all my insert values are NULL?
Hello, I'm pretty new in XML ... then I still learn a lot by myself !!! I surfed to a lot of forums and examples .... I have a XML file. I built a XSL file in order to insert a part of my XML file into a table. The 2 files are loaded as CLOB into a D
-
Content Management Role missing in EP 7
Hi Experts, I have to store some documents in SAP EP KM. I have noticed that Content Management Role missing. We are using EP 7. Its strange. Can you please let me know the reason. Earlier I was using Content Management role for storing documents, Co
-
Since I downloaded the latest version of the firmware, I have being seeing system error popping up on the screen especially when the phone is turned back on.....can anyone tell me why this is happening?
-
Service 'Apple Device' (Apple Mobile Device) failed to start
Can anyone help please..my iTunes stopped working on my laptop OS Windows 7 .. I uninstalled..then reinstalled.. but came across a warning box saying: Service 'Apple Device' (Apple Mobile Device) failed to start. Verify that you have sufficient privl