Query regarding OS Command in Receiver Communication Channel

Hi All,
Consider the following  :
1. Sender communication channel picks up file <abc.txt> from /files/in directory. The CC is configured to archive the file in the location /files/archive.
2. Resulting Message is processed successfully in integration engine.
3. Receiver communication channel is configured to place the file in target directory /files/out, and the Run OS command after message processing is set as : "/scripts/FTP_SCRIPT.pl %F".
The above scenario works fine, but I do not understand why it works. :).
I can see (by looking at logs maintained by the script FTP_SCRIPT.pl) that in step 3 %F passes "/files/in/abc.txt" as a parameter.
I believe that the file should not be available in the "in" folder because the sender communication channel would have already archived it. Why is it available?
In what order is XI processing steps 1-3 in the background?

Hello,
If you have selected Adaper Specific message attributes in both the adapters(File sender/Receiver), the same file name which is currently being used will be passed to the place holder '%F' .
and you might have selected RUN OS command before message processing.
Just confirm.
Regards,
Sreenivas.

Similar Messages

  • 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

  • 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

  • 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

  • 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

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

  • Content type in SOAP receiver communication channel

    Hello,
    so far I thought that the SOAP receiver adapter always sets the content type to text/xml. However now I found out the following strange thing:
    If you check the option "without SOAP envelope" then the content type is application/xml. Is there any way to influence this as the receiver of the message only accepts text/xml.
    Have you had any similar experience?

    hi,
    - open SOAP receiver communication channel - module tab
    - add the module "localejbs/AF_Modules/MessageTransformBean" or AF_Modules/MessageTransformBean"  before the standard SOAP module
    - add the parameter = Transform.ContentType with value = text/xml
    I'm just not sure if you need to add value =  text/xml or "text/xml" so try the second one if the first one will not work
    does it work now?
    Regards,
    Michal Krawczyk

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

    Hi 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

  • Dynamic user credentials for XI receiver communication channel

    Hi Experts,
    I am working on File(XML ) to ABAP  proxy scenario. I want to know if I get the user-id and password information to login to R/3 system as part of the XML  payload, can I use this information to connect to R/3 system in my XI Receiver communication channel?
    Using a generic user credentials either in RFC destination or specifying it in communication channel configuration will not work. This is because the requirement is that the objects that will be created in inbound ABAP  proxy (for ex Material Master) should be created with the user information that is coming from payload rather than a generic user.
    Any pointers how to acheive this?
    Thanks and regards,
    Prasad
    Edited by: Prasad MLN on Nov 16, 2009 4:00 PM

    Hi,
        You might want to learn more about Principal Propagation in sap XI:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID2039785750DB21057082877817322485End?blog=/pub/wlg/7068%3Fpage%3Dlast%26x-order%3Ddate
    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/0f16bef65c7249e10000000a155369/content.htm
    Regards,
    Ravi Kanth Talagana

  • REG: Receiver Communication channel

    Hi All,
    What are different receiver communication channels used to send data to a SAP system?
    Thanks in advance,
    Siva.

    Hi,
    in XI3.0/PI7.0 the available adapters from XI to R/3 are IDOC, RFC and XI for proxy communication.......
    in PI7.1 all of the above and WS for Web Service Reliable Messaging is also available.........
    Regards,
    Rajeev Gupta

  • 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

  • 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

  • How to configure receiver communication channel in File to mail scenario?

    Hi all,
            I'm working in FIle-to-Mail Scenario. I did all the required configuration In Integration repository. As per my Scenario whenever a text file stored in Application server of the R/3 system. it should be sent as a attchment with a mail.so i set a sender communication channel with file adapter in sender R/3 system . i dont know which business system should i refer for my receiver communication channel.because my receiver end is  a mail server. should i create any third party business system for this one?
    can anyone suggest me to define a receiver comm channel in a right manner?
    helpful answers will be rewarded.

    Hi,
    Check these
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    Regards
    Seshagiri

  • FCC in Receiver Communication Channel

    Hi Frnds,
    i did FCC for below message , but its not working can any one help me onthis
    I want to implement File Content Conversion in receiver communication channel.
    DataString is 1:Unbounded
    <Records>
      <DataString>1234567892222222222222222222222</DataString>
      <DataString>4567899998728379023479565222222</DataString>
      <DataString>5678903562634730632758579738458</DataString>
    </Records>
    Flat file format looks like this
    234567892222222222222222222222
    4567899998728379023479565222222
    5678903562634730632758579738458
    regards,
    Raj

    if it is the multiple occurence of the DataString that you want to take care off then refer this blog which deals with a similar approach:
    /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
    regards,
    Abhishek.

  • 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

Maybe you are looking for

  • Financial statement in 5.0

    Hi, Is there any method to get Financial Statements (as Balance Sheet & Profit and loss statement) in SAP 5.0 Hyperion situation? Thanks & Regards

  • Property nodes to items in cluster are FRAGILE

    This issue has bugged me for a long time .  I just got bit again and I wonder if anyone else has a workaround. I just checked and LV 2009 has it too. Create a custom control of a cluster with three elements named A, B, C (numeric controls, booleans,

  • How can I display multiple CPUs on my new iMac i7?

    In activity monitor on one of my MBPs, I can see both CPU Usage graphs. But on my new iMac (4 core), I only see one. Is there a way to see all four?

  • Photos Change Color When Published

    Good morning, Wondering if anyone might be able to advise me on why the colors of my photos appear washed out when I publish my iWeb page to a folder. When I open the page in Firefox the colors are not as vibrant and saturated as when they are in iWe

  • Applying style to all TextBoxes in a Grid?

    <Style x:Key="InputTBStyle" TargetType="TextBox"> <Setter Property="Background" Value="LightYellow"/> <Setter Property="Width" Value="100"/> </Style> I have defined the style in the Applicatoin.Resource. I could apply the style to each textbox in a g