Message traceability in PI - File Adapter

Hi Experts,
I have a Idoc to FTP scenario. Idocs are sent from SAP R/3 to PI where they are converted to file format and saved. Another communication channel reads these files one by one and sends them to an FTP folder.
Now my question is, how will I trace/find the message which was generated by the second channel if I have Idoc number?
Thanks,
Netrey

You can use variable substitution and you can name the file on the basis of Idoc number through dynamic configuration
By this way the file name will be that of the IDoc number through which it is generated
http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6830e67f2a6d12e10000000a1553f6/content.htm
PI File Adapter variable substitution
regards
Ninad

Similar Messages

  • Empty Message Handling with Receiver File adapter

    Hi,
         We were using the "Empty-Message-Handling" (status set to Ignore) of Receiver file adapter to stop a 0 KB file from being written to the specified directory.
    However, inspite of this, a 0KB file continues to be written.
    The specifications are given below-
    File Construction Mode - Add Time Stamp
    Put File - Directly
    Empty Message Handling - Ignore
    Maximum Concurrency - 1
    File Type - Binary
    Can anyone please help with this.
    Thanks and Regards,
    Shiladitya

    HI,
    In one of thread the same problem was coming. Just look at the thread.
    Receiver file adapter creates empty files, Empty-Message Handling SP19
    Or
    Follow the weblog for the same requirement.
    /people/gowtham.kuchipudi2/blog/2006/01/13/stop-creation-of-an-empty-file-from-file-adapter-using-module
    Thnx
    Chirag
    Reward points if it helps.

  • How to store the rejected messages in bpel using file adapter

    Hi all,
    I am using the file adpter to read the text file.In file some bad messages are there.
    now i can read the correct data.but i can't view rejected messages.
    if im not using "rejectedmessagehandler" , but it is stored in default directory.
    In my application,correct messages are reading but bad messages are not stored in default directory.
    pls can you help on that rejected messages store

    Hi
    You have to define rejectedMessageHandlers in activation agent part of ur fileadpater in bpel.xml.
    ex:
    *<activationAgent*
    className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent"
    partnerLink="UrPartnerLinkName">
    *<property name="rejectedMessageHandlers">*
    file://YourFolderStructure (Where you want to save your rejected messages... Only folder structure)
    *</property>*
    *</activationAgent>*
    If u have any rejected messages those will be written to a file named as INVALID_MSG_ + process-name + operation-name + current-time in the above structure
    Regards
    PavanKumar.M

  • Decryption of Message after processing by File adapter

    Hi,
    Encrypted File> XI> Encrypted File
    I have to pick up an encrypted file, decrypt it and do the message transformations & business process associated wiht it and place it in another folder by encrypting the file again.
    How can i acheive this.?
    Regards,
    Siva Maranani.

    Hi siva,
    You can use Java Mapping or user-Modules to do this.
    Go thru this link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/webinars/how to handle unstructured source content for adapters/the pdf presentation of how to handle unstructured source content for adapters.pdf
    Regards,
    Sridhar

  • Recordsets per Message in File adapter

    Hello All,
    I am  using Recordsets per Message option in Sender file adapter. And my source file contains more than the specified in Recordsets per Message.
    Can you please tell me why it is not working
    Regards,
    Moorthy

    Hi,
    Please try to make small addition in your Sender FCC.
    Recordset Structure: Row,5000
    Recordset per Message: 1
    It will divide your file into 5000 records and generate separate messages.
    Hope this helps to you.
    Regards,
    P.Rajesh

  • Setting messageId in File Adapter

    Hi all,
    I am trying to set the message Id in the file adapter, does somebody know it is possible?
    I tried with DynamicConfigurationBean, but while i'm able to set other header values (like correlationId or interface name), it is not modifying the message ID at all, even when in the adapter log I see
    "property message.messageId from key (http://sap.com/xi/XI/System/File)FileName with value EBSP_20090214_090130"
    If i test reading from message.messageId I get the id generated by XI, but when I write it is not changed...
    I want to use the file name as ID, it is already an unique identifier in the sender system and it would be great to use this ID in XI too...
    I am using XI 3.0 SP19.
    any ideas?
    thanks!!

    Hi Nicholas,
         Did you place this module before the adapter module for the file adapter.
    You might want to have a look at this
    [http://help.sap.com/saphelp_nw70/helpdata/en/45/da2239feb22e98e10000000a155369/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/45/da2239feb22e98e10000000a155369/frameset.htm]
    Regards,
    Akshay

  • OS commands in File adapter

    Hi Experts,
    I have a requirement to move the xml file(size 2GB)  across the FTP server. I thought of zipping the file due to huge size before picking it up and unzip before dropping at the receiver FTP.
    I know we can use Run Operating System command before and after message processing option in File adapter, but can you please guide me how can really use this option.
    Thanks in advance,
    MK

    hi mk
    check the below blogs
    *OS COMMAND     *                    
    Executing Unix shell script using Operating System Command in XI                         
    Executing Unix shell script using Operating System Command in XI                                   
    Performing FTP Commands From ABAP                                   
    Performing FTP Commands From ABAP          
    regards
    kummari

  • How to get the name of file was read from file adapter ?

    Hello!
    I make a pooling into one directory to read all *.fat files in this directory, and I want the name of this file
    is it possible ?
    God bless all!

    it is mentioned in the sample code.. look at the pdf guide inthe sample code document for file adapter.
    you need to define a variable of message type of the file adapter inbound header message type and assign the variable to the apapters tab in the receive activity..
    the variable will have file name now

  • How to handle large data in file adapter

    We have a scenario Proxy -> PI -> File Sever using File adapter.
    File adapter is using FCC for conversion.
    recently we had wave 2 products live and suddenly for this interface we have increase in volume of messages, due to which File adapter is not performing well, PI goes slow or frequent disconnect from file server problem. Due to which either we will have duplicate records in file or file format created is wrong.
    File size is somewhere around 4.07 GB which I also think quite high for PI to handle.
    Can anybody suggest how we can handle such large data.
    Regards,
    Vikrant

    Check this Blog for Huge File Processing:
    Night Mare-Processing huge files in SAP XI
    However, you can take a look also to this Blog, about High Volume Messages:
    Step-by-Step Guide in Processing High-Volume Messages Using PI 7.1's Message Packaging
    PI Performance Tuning Best Practice:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2016a0b1-1780-2b10-97bd-be3ac62214c7?QuickLink=index&overridelayout=true&45896020746271

  • SAP XI - Combine Two files as one in File Adapter

    Experts,
    I want to combine two files as one in File adapter itself.  I am using a simple scenario of File-to-File where i am just sending the file from sender to receiver as it is , EXCEPT, i want to add one line at the end of the file .
    I was thinking of doing this in File adapter , avoiding any mapping program in Integration Repository ..
    ANY INDEA's ??
    Regards,
    Ashutosh

    Hey
    You have 3 options,first one can be to execute a OS command before message processing or use adapter modules to append the new line in the sender adapter.
    the second option(and better one) is to do this via message mapping.
    third option is to write a OS script and execute it after message processing on receiver file adapter.
    one thing you need to make sure is that since OS scripts run on XI server itself(not on FTP server) so in case you are picking file from FTP server and delivering to FTP ,then you can't use option 1 or 3,you can only use option 2
    Thanx
    Aamir

  • To much files in archive of file adapter

    Dear all,
    on a day in november the RWB and the sxmb_moni show about 150 messages that
    have been processed by a sender file adapter.
    On the file system we have two files (all in all 152) more in our archive for this day. Neither the day
    before nor the day after have a different amount of messages so that the two message
    could not be a problem of late processing (for example over midnight).
    I also check that no empty files where in archive.
    My question: What kind of problem could appear that a message get processed through file adapter and save
    to archive folder but not getting processed by adapter engine or integration engine?
    Thanks
    Chris

    Hi,
    My question: What kind of problem could appear that a message get processed through file adapter and save
    to archive folder but not getting processed by adapter engine or integration engine?
    There can be few situations when this can happen.
    For example - say you are sending out a proxy from PI to R3 / BW system. Your sender file channel will read and archive the file, but when the PI tries to generate the proxy, it encounters an error - "User is not authorized to process messages" ... Means, the id that PI is using to send and process the proxy in R3 is not having proper authorization.
    But once you have fixed this problem, you can re-start the message from MONI in PI.
    Similarly, there can be other cases when this situation can arise.
    So, for those 2 extra archive files, you might be interested in checking the logs in MONI / RWB if any message went into error.
    Regards,
    Neetesh

  • File adapter receiver channel is not initialized.

    Hi
    iam wrking idoc-file scenario, as per the requirement i have created 4datatypes  4 mapping in IR with 4 communaction chanles in ID. the scenarios is working fine with 3 mappings.but in 4 the scenario
    the file genaraing properly , i have cheked in SXMB_moni payload but it is not creating in destination system
    in runtimeworkbench->message-monitaring-> adpater
    i have find the below issues
    1) File adapter receiver channel CC_DDPWCS_US_TO_101 is not initialized. Unable to proceed: null  Error 2) Exception caught by adapter framework: File Adapter configuration not initialized:
    3) Error Delivery of the message to the application using connection AFW failed, due to: File Adapter configuration not initialized:.
    please tell me how can i reslove the issue
    thanks
    niru

    Hi
    i have checked the content convertion and changed as below
    the structure is
    Row.fieldNamesTrans_Id,Order,Item,Product_Id,Product_desc,Lot_nr,Ship_via,Exp_qty,Carousel_loc,compart,Destination,Label
    Row.fieldSeparator     ,
    Row.fieldFixedType     char
    Row.endSeparator     'nl'
    Row.addHeaderLine     4
    Row.headerlineTrans_Id,Order,Item,Product_Id,Product_desc,Lot_nr,Ship_via,Exp_qty,Carousel_loc,compart,Destination,Label
    even though iam facing the issue. iam wondering  "_i have used in the similar structure for other 3 mappings in same scenario those are working perfect "_ but based on condition if 4 th mapping is executed iam facing the problem
    error message in RWB/Adapeters
    File adapter receiver channel CC_DDPWCS_US_TO_101 is not initialized. Unable to proceed: null
    Error Exception caught by adapter framework: File Adapter configuration not initialized:
    Error Delivery of the message to the application using connection AFW failed, due to: File Adapter configuration not initialized:.
    please help if any of you face the similar situation , i struck-up long ago here
    regards
    niru

  • Save file in multiple directories using receiver file adapter?

    Hi,
    Is it posible to save file in multiple directories using receiver file adapter?
    Regards,
    Ashish

    Well, there is a round about way to do that -
    The idea is to use multi mapping. 1:n mapping
    1) Map ur message to 2 different record set nodes. Since you want to use the same file both the mapping will look exactly the same. make sure that the filepath and filename are a part of the output payload message
    2) In the file adapter config. make sure the the file name and file path are from these payload fields. You can use a context object to refer these fields. Voila...the files are created in the 2 direcoties you mentioned.
    of course the simplest way is to route the same message to 2 business systems/services and write them out using 2 ccs.,
    Arvind R

  • Directory specification for File Adapter

    Hello,
    I would like to ask if it is possible to determine a directory where message is saved for file adapter based on message content.
    E.g. I have general directory (GD) under which I would like to save a messages in directories with are called based on vendor number what is part of a message.
    So a message would be saved in
    ...\GD\vendor number\file name.
    In case that vendor number directory is not created yet I need to create it.
    I know that in file adapter a directory name is constant and file name can differ based on settings.
    This behaviour is in Business Connector enabled through possibility to write an "user-exit" in Java for directory determination.
    Is something similar possible in XI ?
    We are currently running on XI 3.0 with external adapter engine version 2.0 but to use internal adapter engine is no problem for me.
    Thank you for your advice.
    Marian Morzol

    Hi Marian,
    You can do this with content based routing in the interface determination, but then you have to create a new interface/channel for every extra directory.
    Cheers,
    Frank

  • Performance of File Adapter

    Hi Experts,
    Many of the Messages are failed in File Adapter that is in the Module. We found it is due to heavy load.
    How to improve performance of File Adapter.
    How to check the Thread Count for the File Adapter.
    What are the parameters i need to change to improve performance.
    Regards
    Sankar

    Hi
    Look this blog to inhance performace of File Adapter.
    XI/PI File and JDBC Receiver Adapter performance and availability improvements
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0ed3b8c-698c-2a10-fbaf-b1df0c82fc8a
    Re: Performance Problem with File Adapter using FTP Conection

Maybe you are looking for