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

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,
    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

  • 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.

  • 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
    Fabricio

    I 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

  • 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,
    Shamly

    Hi 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,
    Anup

    Hi 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

  • 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
    Jain

    By 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

  • 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 Singh

    Hey 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 Ramesh

    Hi 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

  • 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,
    Laurence

    Hi 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

  • AS2 adapter not visible in Receiver Communication Channel (Adapter Type)

    Hi,
    We wish to connect to our customer using AS2 adapter as the receiver communication channel.
    We are unable to find the "AS2 adapter type in the in "adapter type" field. (Choose Adapter Metadata).
    Our XI version is as following (NW04S_11_REL Service Pack 11).
    Version
    Service pack:
    11
    Release:
    NW04S_11_REL
    Is there add-on to be installed on XI or is there any activation required?
    Thanks in Advance,
    Rehan

    SAP_BASIS
    Release 700
    Level 0011
    Highest Support Package: SAPKB70011

  • 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.
        Juan

    Hi 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

  • Add-CMDeploymentType: How to add a file/folder detection method

    Hello all, I'm discovering how to add applications & deploymenttypes to my SCCM deployment through Powershell. Adding the application went smoothly, but I'm struggling a bit at the deploymenttype. I want to add a file/folder detection clause as you c

  • The GNOME login manager crashes upon booting

    Every time I start up Arch, I get a window with a sad face in a computer saying that there was a problem and I have the option to log out which does nothing. The only way I am able to access my desktop is to open another terminal, manually log in, an

  • Xml outputting

    Hi, I'm calling an api using cfhttp and getting an xml document back I'm struggling to output the xml document though in a sensible format. The xml looks roughly like this:- soap:Envelope XmlText XmlAttributes struct xmlns:soap http://schemas.xmlsoap

  • Trying To Switch To BT - Horrendous Customer Servi...

    Apologies in advance for the following wall of text but I'm really at the end of my tether with BT now. I've been trying to complete an order over the last couple of days (before the promotional period ends) and due to a website error I've been unabl

  • Display picture not changing

    Set and reset display preference for desktop but each time i reboot it changes to same pic - even when deleted.