XI 3.0 File receive comm.channel using variable for folder/file name schema

Hi,
I prepared a integration message to produce .txt file output of message.
I prepared message successfully, it's running properly and producing .txt file.
My problem is to set .txt file name.
I must set file name using by some information in .txt file.
I must get some part of the first line of .txt to set filename.
I declared a variable to do it.
How can i set referance of variable?
payload:..?
Thanks.

Hi,
this blogs might be helpful:
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0935780750DB11281184595516315205End?blog=/pub/wlg/13704
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0935780750DB11281184595516315205End?blog=/pub/wlg/2664
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0935780750DB11281184595516315205End?blog=/pub/wlg/1888
http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
Regards
Patrick

Similar Messages

  • Sender file adapter - Can I use *.xml for the file name

    Hi Gurus,
    I have some interfaces where I need to pick the file from a directory. The name of the file will have Data<i>time stamp</i> as the naming convention. Can I use *.xml to pick up my files from this directory?
    The help.sap.com documentation says that we can use this naming convention.
    <b>
    &#9679;      File Name
    Specify the name of the file that you want to process. The name can contain placeholders (*, ? (placeholders for exactly one character)) so that you can select a list of files for processing.
    </b>
    I tried using *.xml for my file name in the communication channel, XI is not picking up this file.
    Please let me know if you have the solution.
    Thanks
    Kalyan

    Murthy,
    Thanks for the reply.
    I am using GuildFTP tool as my FTP server. In this tool, all the permissions were given for the file to pick up.
    The status of the file is good.
    Where in the file adapter configuration I have to select 'Read-only'?
    The file adapter is working perfect with the exact name of the file.
    Thanks
    Kalyan

  • Using operating system command on file receiver comm.channel

    Hi,
    I pepared a XI 3.0 message generating .txt file.
    I must append content of this file to the and of the file with same name but different extension(.bak extension).
    I know it is achieved with copy name.bak+name.txt it appends txt file to the .bak file.
    My problem is: How can i supply name of .txt file to use as name of .bak file?
    How can i do that?
    Thanks.

    /usr/sap/SID......./../../../Server0
    Put the java program there.
    Regards
    Ravi Raman

  • Problem in File Receiver comm channel

    Hi,
    I can't see anything in the Recevier communication channel in the RWB > Component Monitoring>Comm. channel monitoring-->Comm. channels.
    I do have selected my comm channel.Its showing the message as "Comm. channel is configured correctly and started". But I cant see msgID and Explanation or error. Even, I cant fine any info in Error log.
    The diagnosis i did as follows. Let me know if u come across any thing.
    Checked the logs in VA but i didnt found any information and is not upto date. Bad luck
    *Recreated the Rcvr comm channel again and teste. Nohope.
    In the MONI its showing successfull, but i cant see output at destination.
    *cache is uptodate
    I have checked the queues, nothing got stuck.All queues are clear.
    *I cant restart the Server since it is in production.
    Your suggestions are highly appreciated.
    Thanks
    SRI

    Nilesh,
    All the things you mentioned are done by XI IS.  FYI plz chk below..
    Send binary file "/home/dpiadm/xi/tmp/passthru/EDI_250123.rpz", size 60, character encoding 8859_1 with QoS EO
    2007-10-19 13:48:43 Success MP: Entering module processor
    2007-10-19 13:48:43 Success MP: Processing local module localejbs/SFTPFileUploadDownloadAdapterModule
    2007-10-19 13:48:43 Success 192.133.217.6 /XI/SFTPTest pimsp kuljasimsim EDI_250123.rpz   /home/dpiadm/SridharRajuMahali /home/dpiadm/xi/tmp/passthru/ EDI_250123.rpz Enable
    2007-10-19 13:48:43 Success EDI_250123.rpz
    2007-10-19 13:48:43 Success SFTPOutBoundEDIFileToFile
    2007-10-19 13:48:43 Success SFTP_Sender_File
    2007-10-19 13:48:43 Success 8878c990-7e6b-11dc-8137-001a4b065b86
    2007-10-19 13:48:43 Success SFTPServerNameOrIpAddress  192.133.217.6
    2007-10-19 13:48:43 Success Indiashining.txt SFTPOutBoundEDIFileToFile SFTP_Sender_File 8878c990-7e6b-11dc-8137-001a4b065b86 SFTPOutBoundEEIFileToFile
    UNDEFINED
    2007-10-19 13:48:43 Success Host Key Verified
    2007-10-19 13:48:43 Success Socket Opened for Transport and connected..
    2007-10-19 13:48:43 Success SFTP SshClient is connected
    2007-10-19 13:48:43 Success Authentication Method is Public Key
    2007-10-19 13:48:43 Success Ssh2 Client is Connected and Authenticated
    2007-10-19 13:48:43 Success pimsp kuljasimsim
    2007-10-19 13:48:43 Success /XI/SFTPTest
    2007-10-19 13:48:43 Success /XI/SFTPTest
    2007-10-19 13:48:43 Success localFolder2 + dropFileName2  /home/dpiadm/xi/tmp/passthru/EDI_250123.rpz
    Entering to download file
    2007-10-19 13:48:43 Success Current Directory before LCD0 : /home/dpiadm
    2007-10-19 13:48:43 Success Current Directory After LCD0 :/home/dpiadm/xi/tmp/passthru
    2007-10-19 13:48:43 Success download completed
    2007-10-19 13:48:43 Success MP: Processing local module localejbs/CallSapAdapter
    2007-10-19 13:48:43 Success Application attempting to send an XI message asynchronously using connection File_http://sap.com/xi/XI/System.
    2007-10-19 13:48:43 Success Trying to put the message into the send queue.
    2007-10-19 13:48:43 Success Message successfully put into the queue.
    2007-10-19 13:48:43 Success The application sent the message asynchronously using connection File_http://sap.com/xi/XI/System. Returning to application.
    2007-10-19 13:48:43 Success MP: Leaving module processor
    The message was successfully retrieved from the send queue.
    2007-10-19 13:48:43 Success Confirmation mode test found. File sent.
    2007-10-19 13:48:43 Success The message status set to DLNG.
    2007-10-19 13:48:44 Success The message was successfully transmitted to endpoint http://quark:8005/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System.
    2007-10-19 13:48:44 Success The message status set to DLVD.
    2007-10-19 13:48:44 Success The message was successfully delivered.
    Note:- I AM NOT ABLE TO SEE ANYTHING IN THE RCVR COMM CHANNEL(RWB).
    any Idea about, where can I see the message if it got stuck in Integration server apart from logs
    Thanks
    Sri Raj

  • File Receiver Comm Channel in error

    Hi All,
    I am getting below error in my receiver communication channel -
    Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Unable to clone File Adapter receiver channel for parallel processing
    This is just FiletoFile scenario. I am trying to use VARIABLE SUBSTITUTION here to give dynamic name to the file at receiver. I haven't use FCC here.
    If I dont use VARIABLE SUBSTITUTION then scenario is working fine.
    Thanks & Regards,
    Rashmi Joshi

    Hi Abhradeep,
    I am getting new error now -
    Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: Vname
    I have changed the reference value as -
    Emp_ID
    payload:MT_File,1,Record,1,Emp_ID,1
    Thanks & regards,
    Rashmi Joshi

  • SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?

    I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
    Can I use variable in the filter value?
    string fileName = "Policies.doc"
    SPSiteDataQuery spQry = new SPSiteDataQuery();
    spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"

    If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
    spQry.Query = "<Where>" +
    "<Eq>" +
    "<FieldRef Name=\"FileLeafRef\"/>" +
    "<Value Type=\"Text\">" + fileName + "</Value>" +
    "</Eq>" +
    "</Where>";
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Error in File receiver comm channel

    Hi,
        In Runtime Workbench communication channel monitoring i get the following error
    Unable to create new pooled resource: UnknownHostException Error when getting an FTP connection from connection pool
    Could you please let me know why am i getting this error
    Thank you,

    Hi Deepak,
    This error you will get if you are giving wrong authentication details for FTP connection. Please make sure that your details are correct.
    First try to open your FTP server through the IE.
    Otherwise, open Command Prompt.
    Type FTP-> Open your server name->
    you will get the message connected to your server name.
    Then give the user id and password to enter into the server.
    If you are able to log in here. Then your details are correct otherwise check with the basis team for the correct user id and password.
    Regards,
    Nutan

  • 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

  • IDoc to File scenario... Receiver Comm Channel Error...

    Hi Guru,
    On the scenario IDoc to file, I'm encountering the ff error on my receiver comm channel (File Adapter)...
    ttempt to access the 1 requested objects on 1 failed.
    Detailed information:
    com.sap.aii.ib.core.roa.RoaObjectAccessException:
    Attempt to read object Adapter Metadata File | http://sap.com/xi/XI/System,
    type AdapterMetaData from application REPOSITORY on
    system REPOSITORY failed. Object does not exist. Detailed
    informatio n: SWCV ID: << removed >>
    does not exist in Enterprise Service Repository and
    System Landscape Directory (ROA_MOA_NOTCOMPLETED)
    << removed >>
    Attempt to access the 1 requested objects on 1 failed.
    Detailed information:
    com.sap.aii.ib.core.roa.RoaObjectAccessException:
    Attempt to read object Adapter Metadata File | http://sap.com/xi/XI/System,
    type AdapterMetaData from application REPOSITORY on
    system REPOSITORY failed. Object does not exist. Detailed
    informatio n: SWCV ID: e5a519a0766111dca2e8e95d0a115642
    does not exist in Enterprise Service Repository and
    System Landscape Directory (ROA_MOA_NOTCOMPLETED)
    Attempt to access the 1 requested objects on 1 failed.
    Detailed information:
    com.sap.aii.ib.core.roa.RoaObjectAccessException:
    Attempt to read object Adapter Metadata File | http://sap.com/xi/XI/System,
    type AdapterMetaData from application REPOSITORY on
    system REPOSITORY failed. Object does not exist. Detailed
    informatio n: SWCV ID: e5a519a0766111dca2e8e95d0a115642
    does not exist in Enterprise Service Repository and
    System Landscape Directory (ROA_MOA_NOTCOMPLETED)
    Please advise what possible solution can we apply?
    Thanks.
    Edited by: Rob Burbank on Dec 17, 2010 10:43 AM
    Edited by: Rob Burbank on Jan 3, 2011 12:03 PM

    Hi,
    You can check File adapter metadata under Basis SWCV -->namespace http://sap.com/xi/XI/System in IR.
    -Rahul

  • Mapping Error - Dump source message to file adapter comm channel

    Hi
    Does anyone know of a way to dump the source message to a file adapter comm channel if - and only if - the message fails during mapping. For example, we receive a message from a trading partner that lacks an element that is mandatory during the mapping. When the mapping fails, the source message is sent - as is - to a file adapter comm channel.
    I don't need anything more than the source message i.e. no need for any errors etc... to be included.
    The kicker.. I would like to do this without using BPM if at all possible.
    Any ideas greatly appreciated. Thx, Duncan

    Hey Ram,
    Go to Integration Directory and open the Receiver Determination for your scenario.
    Check the configured receiver services. They are in a table-like area in the middle of the screen.
    In this table of configured receiver services for that particular Sender Service/Interface, you should have the system that normally receives that message (your ERP or any other application system) and the service that contains the receiver file comm channel that will receive the message in case of error.
    Check help.sap.com for help on condition editor on receiver determinations.
    Now, the issue. You can only check whether a field exists, you can't check whether it doesn't exist (There's only a "EXIST" operator, and no negative operator). Thus, you can only do the following: always send messages to File, but you can avoid messages that dont have field from being sent to App System. Yeah, that sucks...
    But don't fear, young padawan! There is a possible workaround. =D
    In your message mapping, do the following for that particular field:
    If field exists (check with Exist and IF standard functions) just bypass the field. Else, map the field with an impossible value (like string "$CREATED$"). Then, in your receiver determination, you will do the following conditions:
    for App System: If field =/= $CREATED$
    for File Receiver: If field = $CREATED$
    Now, if the field doesnt exist, it will have value $CREATED$, thus the message will be sent to File and not to App System. If the field exists, the message will be sent to App and not to File.
    Try that out.
    Regards,
    Henrique.

  • What to be given in JDBC receiver comm channel?

    Hi
    I have given
    JDBC driver:com.sap.aii.messaging.adapter.ModuleXMB2DB
    Connection:jdbc:microsoft:sqlserver://sapep:1433;DatabaseName=SAPXI
    am i giving correct params?
    please help me where and how to check whether iam using correct params in my JDBC receiver comm channel.
    Thanks

    Hi Datta,
    Check
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    Best regards, Maksim Rashchynski.

  • PI 7.3 receiver AAE idoc scenario-No receiver comm channel found in ICO

    Hi,
    I am working in PI 7.3 receiver AAE idoc scenario.When I try to configure Integrated Configuration(ICO),I am not able to see the receiver comm channel in receiver agreement.
    What is the reason for this??I have configured the communication channel,but still its not shown in reciver agreement dropdown.
    Please help.
    Regards,
    Sriparna

    Hi Sriparna,
    In PI 7.3 there is are two separate IDoc adapters: "standard" IDoc adapter and one that is dedicated for AAE (ICO). Make sure that you have used the right one - most probably not, which is why you cannot see the channel in the dropdown list.
    Hope this helps,
    Grzegorz

  • Error in receiver comm channel

    Hi All,
       I am working on scenario file to file with out IR.just picking up the file from sap app server and placing in target ftp server.
    My sender comm channel is picking the file fine but when in receiver comm channel i am getiing error as
    "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Unknown payload format 0 in message"
    "Attempt to process file failed with Unknown payload format 0 in message"
    i have checked in content of the file it contains no special character. are any security is being maintained.
    please advise on this.
    Thanks,
    Bhaskar

    Hi Jude,
    I have checked in sender comm channel in message display tool under message content i am getting error as below.
    messagecontent
    message part [soap document]
    500   Internal Server Error
      SAP J2EE Engine/6.40 
    Application error occurred during request processing.
    Details:   Error [javax.servlet.ServletException: null], with root cause [java.lang.NullPointerException: null].
    Exception id: [00145E474044003F000018AD00003E0D000471A1CBF6A02A]
    what would be the error and how can i find it.
    Is this basis related issue?
    Thanks,
    Bhaskar

  • Creating SOAP Receiver comm.channel for axis web service

    Hi,
    I created Soap Receiver comm. channel fro Axis web service like below:
    *Target URL* : http://<IP>:<Port>/<x>/service
    *User:* <user>
    *Password :* <password>
    *SOAP Action:* <target namespace>/method
    when i drive PI Message that use Soap Receiver it get error below
    I do same method for .Net web service, it runs properly.
    How can i solve this problem?
    Error
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Call Adapter -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">NO_MAPPINGPROGRAM_FOUND</SAP:Code>
      <SAP:P1>Object ID B3004965647F340C997B5F2CC9EA7E22 Software Component 4CF44F80503211DEB2A0D3F40A194B29</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Mapping program is not available in runtime cache: Object ID B3004965647F340C997B5F2CC9EA7E22 Software Component 4CF44F80503211DEB2A0D3F40A194B29</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi,
    I did all  but nothing changed?
    I have doubt about axis side. Because respose like below.
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="UNKNOWN">APPLICATION_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>application fault</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="http://xml.apache.org/axis/">hostname</SAP:ApplicationFaultMessage>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    May be Soap Receiver setting for axis web service must be different.
    Thanks.

  • HELP! ORA-03113 End of file on comm channel

    Hi
    I'm new to Oracle but old-timer in Linux.
    I have just installed Oracle 8.1.7 on RedHat 7.0 successfully.
    Unfortunately, I could not create a new database.
    It's always prompt "ORA-03113 End of file on comm channel"
    whenever i run sqlplus or svrmgrl command.
    I have followed the instructions closely. Except that I did not
    create the 4 mounting points. ie. /u0 /u1 /u2 /u3 Because I do
    not know how to use it.
    Someone pls enlighten me. Is it the reason that it's failed?
    Pls help me to solve this ORA-03113 problem. Thanks!
    Samuel

    Hi
    I'm new to Oracle but old-timer in Linux.
    I have just installed Oracle 8.1.7 on RedHat 7.0 successfully.
    Unfortunately, I could not create a new database.
    It's always prompt "ORA-03113 End of file on comm channel"
    whenever i run sqlplus or svrmgrl command.
    I have followed the instructions closely. Except that I did not
    create the 4 mounting points. ie. /u0 /u1 /u2 /u3 Because I do
    not know how to use it.
    Someone pls enlighten me. Is it the reason that it's failed?
    Pls help me to solve this ORA-03113 problem. Thanks!
    Samuel

Maybe you are looking for

  • Error while executing a query

    Hi, While executing a query in portal it is giving internal server error. In the input screen help, we are searchign using wild card characters.I.e "  141",its giving internal server error, If we are giving the one value/no value the report is execut

  • Billed for subscription I did not order

    I was just notified that I am being billed for an additional subscription that I did not order.  I cancelled it but I am concerned that my account has been hacked.  Is there any way to get customer service to advise what IP address was used to order

  • Mprotect failed: Resource temporarily unavailable error while starting JVM

    Hi All, I am using JDK 1.6.0_21 in sunos on sparc server. JDK_ java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b07) Java HotSpot(TM) Server VM (build 17.0-b17, mixed mode) OS and Hardware config_ SunOS 5.10 Generic_142900-11 s

  • Default row selected in alv grid

    Hi Everyone, I have couple of alv screens. By default the topmost cell is highlighted in the first grid, the data of second grid is dependant on the first one. So if the topmost record is selected by default in first grid, i want to highlight its cor

  • Mohammadi, Help me!!    FND_INSUFF_PRIVILEGES

    I met trouble the same to you: OAFrame.jsp oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_INSUFF_PRIVILEGES. (Could not lookup message because there is no database connection)      at oa_html._OAFrame._jspService(_OAFrame.