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,
Alan
try 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
Similar Messages
-
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 -
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,
MadhuHi 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. -
Communication channel parameters for XI receiver adapter
Hi
I am implementing a ABAP server proxy - to do this, I am creating a XI adapter type - Receiver communication channel so that messages from XI go to ---> the R3 system wherein the proxy is implemented.
I have seen a weblog with a sample defn of communication channel of this adapter type , but the illustration there is not clear enough.
Based on documentation for this in help.sap.com, I have the following questions :
1. Do we have to setup a HTTP type destination in the XI box pointing to the R3 system ( on which ABAP proxy is implemented ) . I guess this is the case, since XI needs to find the connection to the R3 box to pass the proxy message to it .
2. If we do have to setup a HTTP type destination in XI pointing to R3, what is the path prefix and service number field values that need to be given...
I tried putting in /sap/xi/engine as path prefix and 8000 as service with the logon credentials for the R3 system and I get a status code error of 500 ( <b>Pipeline specified in URL attribute not existing</b> ) when I test the SM59 connection in XI...
Any pointers on what am I missing here ??Hi Karthik,
>>1. Do we have to setup a HTTP type destination in the XI box pointing to the R3 system ( on which ABAP proxy is implemented ) . I guess this is the case, since XI needs to find the connection to the R3 box to pass the proxy message to it .
Based on 'addressing type' field in XI adapter you can either specify HTTP destination in communication channel or provide all the required details in the communication channel itself.
>>2. If we do have to setup a HTTP type destination in XI pointing to R3, what is the path prefix and service number field values that need to be given...
I tried putting in /sap/xi/engine as path prefix and 8000 as service with the logon credentials for the R3 system and I get a status code error of 500 ( Pipeline specified in URL attribute not existing ) when I test the SM59 connection in XI...
use the URL /sap/xi/engine?type=receiver
Also make sure that your R/3 is set up as a local integration engine for proxy communication..
Check this..
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
Regards
Anand -
File Overwriting in File Receiver Communication Channel
Hi,
I have an IDoc to File scenario.
My file receiver communication channel has the following parameters :
- File name scheme = %timestamp%_AOBSD4RL.MES
(I'm using variable substition and the variable "timestamp" is initialized at mapping time with the current time in format yyyyMMddHHmmss).
- File Construction Mode = Create
- Option "Overwrite Existing File" not activated
When two inbound messages result in the same target file name, the second one overwrites the first one although the "Overwirte Existing File" setting is not active in the receiver channel. Is this a bug in XI ? (I'm on 7.00 SP11)
And is it possible to say to the receiver channel to process only 1 message per second so there will no more target file with same name ?
Thanks in advance,
LaurenceHi Laurence,
There is no such facility with Receiver File Adapter to process single message in one step.
I want to suggest you a may possible way to overcome( it's just an idea), though I never worked with them I think it will work.
As you the file name is assigned to message with timestamp at receiver communication channel step you can schedule the outbound queue in such a way that it will transfer the message in delay.
Try to investigate further more, But i m not sure that Queue Scheduling is supported by SP11 or not.
Regards,
Shri
Reward point if it helps you -
Dynamic Configuration of Mail receiver Communication Channel
Hi,
like in /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping for http receiver CC, i am trying to do header customisation, with XHeaderName1 for mail header fields like content-type, content-disposition, but it doesn't works ...
in my mapping i've added :
> (...)
> DynamicConfigurationKey cDisposition = DynamicConfigurationKey.create("http:/""/sap.com/xi/XI/System/Mail", "XHeaderName1");+
> dynaConf.put(cDisposition, "attachment;filename=myFile.txt");
in Communication Channel ASMA i've added variable header : XHeaderName1 --> Content-Disposition
in monitoring i see that XHeaderName1 is filled with attachment;filename=myFile.txt
but in the mail send like this, this configuration has no effect
Someone can help me ?
Edited by: MedAmine on Aug 19, 2009 3:20 PMOnly one standard mail header field can be influenced: this is indeed "Content-Disposition".
You have done halve way, the only thing you have missed is to set the additional parameter 'OMail.AddContentDisposition' to false within 'Advanced Mode'.
Have a look at this WiKi:
http://wiki.sdn.sap.com/wiki/display/ESOAInfrastructure/Dynamic+Email+Attachment+name+for+Received+Mails+with+ASMA+and+without+using+mail+package -
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 -
Error in Receiver Communication Channel in FCC
I have a simple scenario of Proxy to File. I have to just one field in complete row. So my structure is as below : MT_RecordIB -> Records. So my XSD looks like this :
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://XXXl.com/INF31018/SAPSerOrd_DaysIn" targetNamespace="http://hnwl.com/INF31018/SAPSerOrd_DaysIn">
<xsd:element name="MT_RecordIB" type="DT_RecordIB" />
<xsd:complexType name="DT_RecordIB">
<xsd:sequence>
<xsd:element name="Records" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
I have used FCC and the parameters are :
Recordset Structure Records
Records.fieldSeparator 'nl'
But I am getting following error in Receiver Communication Channel :
Failed to process message content. Reason: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_RecordIB' found in document', probably configuration error in file adapter (XML parser error)' (Software version: 3.0.21)
Thanks,
Pankaj SinghHey Pankaj,
Your content conversion parameter might be configured improperly.
Refer this blogs
/people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
Refer the following threads for your problem
[ Unknown structure 'ns0:MT_dbglgtr_FileName' found in document'|Unknown structure 'ns0:MT_dbglgtr_FileName' found in document']
Rgds
Ramesh -
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 -
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 -
Proxy receiver communication channel
Hi Experts,
When I am executing an interface in XI, I am getting the message in SXMB_MONI.
<SAP:Stack>Unable to create HTTP client (exception 1)</SAP:Stack>
The receiver is Proxy here. Where can I get the service number of R/3 system to enter in the XI receiver communication channel and what's the significance of this? I am using Proxy receiver adapter with URL address connection. I have given 8000 as the service number. Not sure whether this is right. What is the path prefix?
In the SXMB_ADM, do I need to maintain some parameters for proxy?
Thanks
RickyI did give the Service number of R/3. My R/3 uname and password for login
But I am getting the message in MONI "HTTP response contains status code 401 with the description User not authorized for message processing Authorization error when sending using HTTP (error code: 401, error text: User not authorized for message processing". Pls help to sort this out
Thanks
Ricky -
JDBC : error in receiver communication channel?
Hi Experts ,
I am doing a JDBC to JDBC scenario. The following error comes in my receiver communication channel monitoring.
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'VIN_STG_STORER_RMS' (structure 'Statement'): java.sql.SQLException: FATAL ERROR document format in structure 'Statement': expected 'access' tag(s) not found
My receiver data type has got the 'access' tag. What other reason can cause this error?
Receiver table name : VIN_STG_STORER_RMS
Regards,
ShamlyHi Ranjit,
My moni shows processed successfully. but the error is in communication channel.
I have pasted below the target xml structure. Any suggestions?
Thank you.
Shamly.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://mg.adityabirla.com/mg/wms/store_supps" targetNamespace="http://mg.adityabirla.com/mg/wms/store_supps">
<xsd:element name="MT_WMS_Store_Supps" type="DT_WMS_Store_Supps" />
<xsd:complexType name="DT_WMS_Store_Supps">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
1f3cf480f98411dcb83a0003ba0adbbd
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Statement">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
33dd8ee0ef5c11dcb812001d7df81104
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="VIN_STG_STORER_RMS">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
33dd8ee1ef5c11dca724001d7df81104
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="access" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
a31a45f0ef5c11dca305001d7df81104
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="STORERKEY" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
a31a45f1ef5c11dcb3c3001d7df81104
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0" />
<xsd:maxLength value="15" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="TYPE" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
a31a45f2ef5c11dcc33e001d7df81104
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0" />
<xsd:maxLength value="30" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="WHSEID" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
a31a45f3ef5c11dcabb7001d7df81104
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0" />
<xsd:maxLength value="30" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
...and so on for many other fields.
Edited by: Shamly MM on Mar 24, 2008 10:27 AM -
FTP error: Receiver Communication Channel
Hello Experts,
I am getting the following FTP error in my Receiver Communication Channel.
Error occurred while connecting to FTP server: Peer certificate rejected by ChainVerifier
Please suggest.
Thanks,
AnupHi Anup,
Problem is with FTPS and not FTP.The SSL handshake needs to confirm that the FTPS client is using the FTPS server's DNS name to access the FTP service since only the DNS name of the FTPS server is stored in the certificate signed by the trusted CA (e.g. VeriSign). it's the way the Certification Authorities works.
If you are using any IP address then try with your host name.
Regards,
Madan
Maybe you are looking for
-
Just downloaded the new OS for IPhone. Despise the appearance. It has jacked with the way I like things in some unacceptable ways. Is there any way to keep the OS, but return to the old appearance? Important to know BEFORE I download OS for computer.
-
ABAP Dump After EHP4 Upgrade "SYNTAX_ERROR"
Hello I performed ERP ECC 6.0 to EHP4 upgrade. System is working fine, Support Package stacks at maximum level, kernel, tp and R3trans is up-to-date. Only problem is I am getting "SYNTAX_ERROR" every minute. What could be the reason? Runtime Errors
-
Deleting junk emails in roadrunner webmail
Time Warner , the provider of roadrunner Internet service, tells me there is no way to delete trashed webmail emails from my iPad 2. This sounds absurd to me. Has anyone else used webmail with roadrunner?
-
Apple, are you listening?
I have to ask, what the heck is going on lately? - Not all artists appearing in iPad music player when using home sharing. - Wrong album are in iPad music player when using home sharing. - Wrong movie cover art in iPad video player when using home s
-
"Last Page Viewed" Function in Adobe Reader 9.x
Can anyone tell me how to set Reader 9 to open files to the last page viewed? I can't seem to find it in the preferences. Thanks in advance for any help!