Access interface related entries from within Receiver Communication Channel
Hi,
when i open the interface determintation that i created, i can see.
Sender Details:
Communication Component:Sys_Sample_One_D
Interface: UserMasterQuery_Outb
Namespace: urn:sample.com:I_Legacy_JDBC_Application
Receiver Details:
Communication Component:Sys_Sample_Two_D
Interface:EmployeeEmailProcessing_Inb
Namespace:urn:sample.com:I_Legacy_FileApplication
Interface Mapping: UserMasterResultset_to_EmployeeEmail
I created a Generic File Receiver communication Channel for my receiver BS: CC_FileReceiver
In the target FileName field of the Communication channel, i would not like to hardcode any filename value, but my requirement is, the filename should be the same as the name of the Receiver Interface, that has been used in the message exchange.
in my case, it should be something like EmployeeEmailProcessing_Inb.xml
How can we access dynamically the interface related entries in the Communication channel, and how can we set those values in the Target Filename value of the File Receiver communication channel.
in short, if i use the same communication channel for other scenario, the received filename should be different based on the receiver interface name that is executed.
It would be even more better if i could access/set the receiver namespace value as part of the TargetFileName or TargetFileDirectory values.
pls let me know how this can be possible.
Thanks in advance,
Madhu
Hi Shabarish,
thanks for your blog.
After i saw the blog, the UDF can be created in ESR.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(u201Chttp://sap.com/xi/XI/System/Fileu201D,u201CFileNameu201D);
String MyFileName = a + "_" + b +".xml";
conf.put(key, myFileName);
At this point, i can see that the required value is stored in certain key in the DynamicConfiguration.
In the blog, i could not see anything related to ID.
My question is, what do we need to do ID,
when we create the FileReceiver Communication Channel, in that we need to specify the mandatory field "Source File Name". what value do we need to enter here.
Are there any additional things do we need to do in Communication Channel in ID.
Similar Messages
-
Accessing receiver communication channel parameters in mapping
Hi,
I have an XI sender to HTTP receiver scenario with mapping to set the value of the target URL, which is set as an Adapter Specific Message Attribute (TargetURL).
The mapping is responsible for adding hashed authentication credentials to the end of the URL string.
Ideally I'd like to be able to read the values of the host, port and path from the receiver communication channel configuration than hardcode these in the mapping class.
Does anyone know whether it is possible to read receiver communication channel values within mapping?
I could store the full URL string in the communication channel but this would not be secure hence the preference for doing this in mapping.
Thanks,
Alantry using Dynamic confiuration
please check HTTP rec doc: http://help.sap.com/saphelp_nw2004s/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
○ URL: TargetURL
○ HTTP Destination: HTTPDest -
Error in HTTP_AAE receiver communication channel, PI 7.4 dual stack
Dear Experts,
I am facing the below certificate error in HTTP_AAE receiver communication channel while using the third party (bank) private key. Third party bank server is HTTPS enabled, moreover they have generated the public and private keys on their server, and they shared the corresponding private keys in .p12 format to us. Our scenario in SAP PI is synchronous ABAP Proxy to HTTP_AAE, when I see the message in SXMB_MONI after testing, we get he below certificate error, though we have provided the correct path from keystorage view and keystorage entry in HTTP_AAE receiver communication channel
“com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SENDING_HTTP_REQUEST, sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”
We have imported the private key provided by bank in Netweaver admin key storage, by following the below steps.
NWA -> Certificates -> Key Storage -> TrustedCA->Import Entry->Entry Type->PKCS#12 Key Pair->select the .p12 file->import.
Please see the attached doc for related screenshots.
Please experts help me experts as this is on high priority from client, also suggest me if I am doing anything wrong here.
Thanks,
FarhanHi Farhaan,
do you have only one certificate or multiple certificate? HTTPS can have 2 or 3 certificates (Root, Intermediate [optional, if any 3rd party person is there in the middle then we can get this certificate] and system certificates).
The issue is with the certificate and it can be because All the certificate is not present or path is not correct.
Please refer the below wiki in which solution is given for this peroblem.
Troubleshooting 7.1 - End-User Experience Monitoring - SCN Wiki
The similar issue is resolved by applying SP level patch, please refer the below discussion
SAP PI 7. 3 HTTP_AAE Receiver with SSL
Please check the below blog -
Configure the HTTP_AAE receiver communication channel with SSL
please also check the below discussion
Where to Import Clients SSL certificate for HTTP_AAE
regards,
Harish -
Accessing Receiver Communication Channel Properties
I need to access the target directory information mentioned in the receiver communication channel of file adapter from within java mapping. The "Directory" parameter in the Dynamic configuration has the sender side directory information and i understand that this can be changed to any other directory which would be set as target directory for the receiver comm channel. However my requirement is to access the target directory maintained in the receiver communication channel from within the java mapping - would be great if someone could help.
Hi,
you can achieve that using [Integration Directory Programming Interface|http://help.sap.com/saphelp_nw04/helpdata/en/46/6dca42e5c269dfe10000000a11466f/frameset.htm]
Regards,
Udo -
Error in the SOAP Receiver communication channel
Hi ,
My scenario is RFC - to -SOAP (synchronous ) i have specified the TARGET URL inthe SOAP receiver comminication chanel.. but while testing the interface by providing the test data from R/3 .. I'm not getting any Respose.. ..
If I check in the SXMB_MONI in i'm getting the following message .. but the URL whicjh i provided that is fine.. but my doubt is through XI may be it's not able to connect the Target System... .. so, please suggest me...
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: www.webservicex.net</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
regards
JainBy default, the SOAP adapter sends the SOAP message with the content type text/xml.
When you check "Do not use SOAP envelope", the default contnet type is application/xml.
You can change the content type like this: Go to the SOAP receiver communication channel module tab. Add the module "localejbs/AF_Modules/MessageTransformBean" before the standard module. Add the parameter name Transform.ContentType and value text/xml.
Check out this
/people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi
One way of testing ur scenario
/people/michal.krawczyk2/blog/2005/08/25/xi-sending-a-message-without-the-use-of-an-adapter-not-possible
Also have a look here
SAP Note 856597
reward points if solution found helpfull
regards
chandrakanth -
SSL in Soap receiver communication channel
Hi,
I have a webservices that works fine in Soap UI. The webservice provider uses the SSL, but works like a web browser, doesn´t need to install a certificate before access the webservice.
But when i try to use SAP PI using the soap receiver communication channel, the soap adater return the follow message:
"Peer certificate rejected by ChainVerifier"
I read some thing about using axis to solve this problem but I can´t find anything to configure this scenario.
If someone had this problem and solved it, i will apreciate the help.
Thanks
FabricioI Have 2 communication channel:
1) This works fine
Adapter Type: SOAP
Receiver
Transport Protocol: HTTP
Message Protocol: SOAP 1.1
Adapter Engine: Integration Server
Target URL: https://gw-homologa.serasa.com.br/wsacheixml/wsacheixml.asmx
SOAP Action: https://sitenet05.serasa.com.br/WSAcheiXML/WSAcheiXML/ConsultaAchei
2) This doesn´t work
Adapter Type: SOAP
Receiver
Transport Protocol: HTTP
Message Protocol: SOAP 1.1
Adapter Engine: Integration Server
Authentication: Basic
User/Password
Target URL: https://treina.spc.org.br/spc/remoting/ws/consulta/consultaWebService
SOAP Action: blank
Both are https and the certificate is sent at communication time (There isn´t a certificate to install in the Key Store in Visual Administrator)
I read that Axis manage this kind of integration with webservices, because the certificate must be installed at the moment of sending http request.
I don´t know why the first interface works fine an the another doesn´t work, then I´m trying with Axis.
In the SOAP UI both interfaces work fine.
Thanks -
SMTP Receiver Communication Channel error: connection refused
Dear all.
When migrating processes from XI 3.0 to PI 7.1 we run into the problem that we can't get the SMTP Receiver Communication Channel working on PI. We get the following error in Communication Channel Monitoring:
Message processing failed. Cause: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.net.ConnectException: Connection refused: connect
(The NetWeaver Administrator log shows the following:
unable to call the mailer: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.net.ConnectException: Connection refused: connect)
- We copied all configuration settings 1-on-1 from XI to PI, and double-checked we made no mistakes.
- We confirmed the PI system can in fact reach the mailserver by successfully sending Email from the ABAP stack of the PI system (transactions SOST and SCOT)
- When deliberately mistyping the mailserver URL, we get the error: java.net.UnknownHostException. This makes me believe that the 'connection refused' error we get (after re-entering the correct mailserver URL) is indeed coming from the mailserver. But why would it refuse the connection if it allows the connection from the ABAP stack of the same server? And why didn't we run into any such problems on XI?
Any help is much appreciated!
Kind regards,
Eddy Driessen.Hi All,
We have upgraded our XI3.0 system to PI7.1 and currently performing testing for different adapters. We are also facing similar problem for a scenario File to Mail
19.11.2010 11:31:56 Error Mail: error occured: java.net.UnknownHostException: [url]
19.11.2010 11:31:56 Error Mail: error occured: com.sap.aii.af.lib.mp.module.ModuleException
19.11.2010 11:31:56 Error Adapter Framework caught exception: Failed to call the endpoint
19.11.2010 11:31:56 Error Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null " null"]; nested exception caused by: java.net.UnknownHostException: [url].
19.11.2010 11:31:56 Information The message status was set to WAIT.
*[url] = Mail server
Can anyone suggest the steps to solve this error
Thanks
Varun -
Regarding Receiver Communication Channel (Concurrency problem)
Hi Masters ,
In Receiver Communication Channel which is connected to oracle data base ..while updating records Status from N to C . i am getting following errors :
**Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has reached maximum concurrency (5,000 concurrent messages) and no free resource found within 5,000 milliseconds; increase the maximum concurrency level**
Actually we are updating 10000 records status from N to C....... earlier it was updating in 30min now its hanging and giving above error ...... after 3 hrs its automatically displays updated succesfully message .
Can you help me to understand wht exactly happening and at wht level i have to do settings in communication channel so tht it should work properly..
Thanks in Advance.............
Jagannath.Hi Jagannath
you can specify the maximum concurrency for receiver adapters. This defines the number of messages an adapter can process in parallel on a cluster node.
Enter the number of messages to be processed in parallel by the receiver channel. For example, if you enter the value 2, then two messages are processed in parallel. Default value is 1 and this means only one message can be processed at a time by the receiver channel.
http://help.sap.com/saphelp_nw70/helpdata/EN/64/ce4e886334ec4ea7c2712e11cc567c/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
increase this parameter from 1000 to a higher value you required and you would not be facing such problem
Regards
sandeep
If helpful kindly reward points -
Problems in IDOC receiver communication channel
Hi,
I am trying to build an interface to get data from 3rd party legacy system using JDBC and post the data into ECC using IDOCS. I have IDOC built in ECC, I am able to import the metadata in IDX2 after creating port in IDX1. But after building the whole interface, I dont see the IDOC receiver communication channel which has to post IDOCS in the ECC 6.0 system.
Please assist.
Rgds
KishoreOK in that case, we are getting the following error in the Message monitoring:
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="OUTBINDING">CO_TXT_OUTBINDING_ERROR</SAP:Code>
<SAP:P1>-BS_AVN_TO_FILE_JDBCSERVER</SAP:P1>
<SAP:P2>-BS_WOAV_IDOC_SENDER,urn:sap-com:document:sap:idoc:messages.ZAVENTITY01.ZENTITY</SAP:P2>
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>No standard agreement found for , BS_AVN_TO_FILE_JDBCSERVER, , BS_WOAV_IDOC_SENDER, urn:sap-com:document:sap:idoc:messages, ZAVENTITY01.ZENTITY</SAP:AdditionalText>
<SAP:Stack>Problem occurred in receiver agreement for sender -BS_AVN_TO_FILE_JDBCSERVER to receiver -BS_WOAV_IDOC_SENDER,urn:sap-com:document:sap:idoc:messages.ZAVENTITY01.ZENTITY: No standard agreement found for , BS_AVN_TO_FILE_JDBCSERVER, , BS_WOAV_IDOC_SENDER, urn:sap-com:document:sap:idoc:messages, ZAVENTITY01.ZENTITY</SAP:Stack
Please check and assist.
Rgds
Kishore -
Intermittent problems with a RFC receiver communication channel.
Hello.
I want to know how to get the total channel history for a RFC receiver communication channel (in RWB only last 5 calls are available).
We use this communication channel in a java mapping to run a RFC of the abap engine of XI. Sometimes the rfc doesn't work and mapping throws a mapping transformation exception. Then, without a modification, we reprocess the message in SXMB_MONI and it is processed without errors. We think that it could be caused by a huge message volume.
How can I get the maximum number of rfc calls that the rfc communication channel can admit simultaneously. Which parameters have influence in these calls?
Thank you very much.
Alberto.1. Increase the maximum connections
from help.sap.com
Additional Parameters
Parameter ~~~~ Entry
Maximum Connections ~~ Maximum possible number of initial connections required between adapter and sender system. This value is limited internally to a maximum of 50.
2. /people/community.user/blog/2006/09/21/xi-rfcadapter-reconnect-issue -
Need to use only one sender and receiver communication channel.
Hello Experts.
I have a scenario where in I have to use only one sender and receiver communication channel to push files from different source directories to different receiver directories.
For Eg;
Sender
D://dir1/file1 ---> E://dir1/File1
F://dir2/file2 ----> G://dir2/file2
H://dir3/file3-----> I://dir3/file3.
Can this be achieved by using pass through scenario?
Please let me know if the requirement is not clear.
Thanks in advance.
Advit RameshHi Advit,
I think it is possible. You have to use the Advanced Selection for Source file in the sender channel to define multiple files to be picked up. Also, the Dynamic configuration must also be enabled and used in the mapping so you can manipulate the target directory and target file name based on your source files.
For Polling from multiple directories:
http://wiki.scn.sap.com/wiki/display/XI/File+Sender+Adapter+-+Polling+Multiple+Directories
Dynamic Configuration:
Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integration - SCN Wiki -
Recordset structure in receiver communication channel
Hi gurus!
I have a problem with my receiver communication channel it says "Unknown structure 'Headers' found in document', probably configuration error in file adapter (XML parser error)'"
It's for sure that the problem is in the configuration of the adapter.
My scenario is from iDoc to File and i need to write only one header and many Lines, i made the data type like:
Headers
---Header
Lines
---Line
And the problem is in the configurarion of the recordset structure and the lines below.
If you know another way better to make the data type to acommplish what i've to do, just tell me I just made it that way because i thought it could work.
If something is not clear just let me know, what i more need is the config. of the receiver adapter.
Thanx in advance.
JuanHi Juan
If i understand correctly .. you are doing FCC on your receiver communication channel...and the following is your Target Data type
Headers
---Header
Lines
---Line
and FCC parameters you created are as below
Recordset structure: Headers,Header,Lines,Line
Header.fieldSeparator \r\n
Header.endSeparator \r\n
Line.fieldSeparator \r\n
Line.endSeparator \r\n
If the above data is correct, then I would like you try out the FCC parameters in my previous post. Because in the FCC parameters, you used only substructures(Header and Line) and you did not mention the lists ( Headers and Lines). That's why i think it is errored out.
If my interpretation is wrong, please let me know where i went wrong, i will try to look at again. -
O/P file in receiver communication channel.
Consider a file to file scenario..
and in the receiver Communication Channel,We have to specify the name of the output file right.but i want my output in a different way.....
my output file names are different.....what shall io do now....
Any ideas...Hi Reddy,
your requirement is not clear...
Try these
Dynamic File Name Part 1
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
Dynamic File Name Part 2
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
XI: The same filename from a sender to a receiver file adapter - SP14
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Sachin -
Error in JDBC receiver Communication Channel
Hi,
I am facing a problem at receiver communication channel of JDBC adapter. I am gettting the error as,
"com.sap.aii.af.ra.ms.api.RecoverableException: Channel has reached maximum concurrency(5,000 concurrent Messages) and no free resourse found within 5,000 milliseconds; Increase the maximum Concurrency Level."
I am having the configuration on 4 different nodes. but suddenly only 1 out of 4 is working fine but remaining 3 are throwing this exception. It says to increase Maximum Concurrency level but i want to send only one message through one channel.
Is there a way to rectify this error. I am in deep trouble.
can anyone help me out in solving this issue, Its very greatfull if you do the needy.
Thanks,
Soorya,Hello Aarthi,
I have gone through the link which you have provided for me in this regard. But i am not clear why those values,
AFW.Call.maxConsumers 10
AFW.Recv.maxConsumers 5
AFW.Rqst.maxConsumers 10
AFW.Send.maxConsumers 5
JDBC_http://sap.com/xi/XI/System.Call.maxConsumers 20
JDBC_http://sap.com/xi/XI/System.Recv.maxConsumers 10
JDBC_http://sap.com/xi/XI/System.Rqst.maxConsumers 20
JDBC_http://sap.com/xi/XI/System.Send.maxConsumers 10
These are concerned to MS only but not at JDBC adpater.
We have to look at JDBC prospective but not at the MS prospective.
So can you please look into the issue as JDBC adapter perspective.
Its like this that, there are 5000 messages are waiting for the free resource with in the next 5secs and as it is reached maximum concurrency of 1.
So my question here is,
Is there only one option to increase this value to 2 or more?
Or else do we have any other option to overcome this problem.
Please reply to this ASAP.
Thanks,
Soorya. -
Regarding the JDBC Receiver Communication Channel error
Hi All,
While executing Jdbc to Jdbc interface, i am getting error in jdbc receiver communication channel. please see below message for error description..
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel 'JDBC_AccntStatements_Receiver', Service 'BS_BusinessSystem', Party '': JDBC Adapter configuration not activated
Note: the channel status is active and activated(not in change mode).
Any idea on this error.
thanks,
Madhusudhan.Hi
According to your Error Message,
Saying that JDBC Configuration is not Active.
Once again cross check all the config is Activated & also Test your Config Using Config Test Tool in ID
And also check in RWB-Adapter Engine-Adapter monitoring ---select the option instaled & Started. whether the JDBC Adapter is working fine or not
Maybe you are looking for
-
Short dump while executing report group.
Hi, We are upgrading to ECC6.0 from 4.6C Now while testing the report group i got short dump. This is due to to the 'Exception condition "LOAD_PROBLEMS" raised.' Error analysis A RAISE statement in the program "SAPLSLDB" raised the exception
-
Xi Alerts - Can a field in the payload be a part of the alert message?
Hi All, I have a requirement in my alert configuration wherein a specific field in the message payload needs to appear in the Alert message. In the std configuration I see field containers for std things like message ID, services etc... bu
-
Hi all I can't understand why I don't have an imge on my screen. What's wrong? public void paint(Graphics2D g2){ g2.setColor(new Color(225,225,225)); g2.fillRect(x, y, width, height); Image image= Toolkit.getDefaultToolk
-
Has anyone tried building an SAP Query (SQ01) against the FICA transaction tables: DFKKKO (header) + DFKKOPK (GL line items) + DFKKOP (BP line items)? I'm getting duplicate line items (OPUPK) on my SAP Query. My INFOSET was created by creating an in
-
About PO Release Strategy Workflow : WS20000075
Hi, I want a workflow for PO release strategy. I believe that there is a standard workflow WS20000075 for the same. But I am unable to use it. I am not a functional guy and there is no one else to assist. Can somebody tell me how I should go about? T