Asyncronous acknowledge from file adapter

Hi,
I have the next scenario: SAP IDOC --> XI --> Flat File.
I want to retrieve some functional acknowledge information from the third system which XI sent the flat file to.
The third system can send the acknowledge information in another flat file.
Do you have some experience in a similar scenario?. I guess I have to use some BPM, maybe when XI send the flat file, It would have to wait the acknowledge file.
If I don't use a BPM, how I can correlate the "information message" with the "acknowledge message" ?
Regards,
Francisco

Hi,
Given this case,
if you get the docnum in your response, you can update the status of the idoc by the below way.
1) map it to an ALEAUD or STATUS idoc type
   - the information what you need will ONLY be the Docnum of your base Idoc (which you sent earlier to file system)
2) post this idoc in the SAP system & your Base idoc's status gets changed..
when you use ALEAUD idoc type, you may have to follow certain things for appropriate status. check the msg with subject "Acknowledgements ever switch to Status 39" in the forum
Also, I am not sure if you can do this without BPM. you need not co-relate (if you have docnum) & if you plan in this way of doing it.
Hope this helps.
Regards
Vishnu

Similar Messages

  • OS commands from File adapter Trace logs?

    Hi All,
    I am running some UNIX OS commands from File adapter as showing in below Blog.
    Problem is that in SXMB_MONI & in Runtime workbench I can not see any Trace logs written by those UNIX OS commands.
    Even I am writing echo messages.
    Runtime Workbench says only OS command file executed.
    Please guide me where I can see OS trace if some OS command fails?
    Any transaction code even at BASIS level exist?
    Or the only other way round exist is I need to write log into some files.
    /people/daniel.graversen/blog/2008/12/11/sftp-with-pi-the-openssh-way
    I am using PI7.1.
    Regards

    I think no solution, other then writing ABAP code using RFC SXPG_COMMAND_EXECUTE and put log/trace in some table/application.

  • Read File identified by filename from File Adapter

    Hi all,
    is there any way to read a file (which is identified by a given name) by using the file adapter.
    My scenario is the following:
    Webservice -> PI -> File
    I call PI via a Webservice. The webservice call contains the filename of the file that i'd like to receive as response. Is it possible to realize this scenario with PI - from my experience it is not possible. But i would appreciate if you have some alternative solutions for me.
    BR,
    Martin

    Hi Martin,
    you can't achieve required functionality by standard File adapter; you need to write adapter module to achieve it.
    SAP says
    If you are developing a module for the sender file/FTP adapter and want to access the file name, see SAP Note 819761
    below is the link for Adapter module generation which might help.
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/61e1407e858031e10000000a1550b0/frameset.htm
    Regards,
    Karna...

  • Get File Name in UDF from file adapter sender

    Hi,
    I've looking for this solution, but I couldn't find any usefull information.
    I want to obtain the name of the file, sended by the file adapter.. and later use it in the mapping logic.
    I've readed about sustitution... any help?
    Thanks.

    HI Stortoni,
    Take a look at these blogs:
    http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    Regards,
    ---Satish

  • How to transform data received from file adapter

    hi',
    I am reading the data from XML file using file adapter, now I want to write the same contents which I have read from this file to a different/new XML file, the issue is I am unable to perform a transform here, when I use a transform with source element as the output of the file read and target as the input to the new file it is writing an empty file,
    I have checked the audit trail which showsme that the transform is empty.
    please tell me how can I transform the element which I have received from one file to make them as input to next file
    thanks
    Yatan

    thanks James for input, this is my XML and XSD files
    XML file:
    <?xml version="1.0" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <emp>
    <name>yatan</name>
    <age>28</age>
    </emp>
    </xsd:schema>
    XSD File:
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="readfile">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="empid" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    I am reading XML file, I will describe my process.
    1.) File adapter>read operation ---> receive activity
    2.) Transform > source(receive input variable) <--->target(Invoke input variable)
    3.) File adapter > write operation ---> invoke activity
    Now when I am deploying this process it is sucessfully completing and able to read the file.
    when I check the audit trail receive activity shows XML data but when I check the transform it
    shows empty as below, however the write activity is performed which creates a xml file but no values in the elements
    transform in audit trail
    <Invoke_1_Write_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="readfile">
    -<readfile xmlns:ns0="http://www.example.org" xmlns="http://www.example.org">
    <ns0:name/>
    <ns0:empid/>
    </readfile>
    </part>
    </Invoke_1_Write_InputVariable>
    this is the code for my .bpel file
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Wed May 19 15:04:22 IST 2010
    Author: yatanveer.s
    Purpose: Empty BPEL Process
    -->
    <process name="ReadXMLFile2"
    targetNamespace="http://xmlns.oracle.com/ReadXMLFile2"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns4="http://xmlns.oracle.com/pcbpel/adapter/file/FileReadSync/"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:client="http://xmlns.oracle.com/ReadXMLFile2"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/ReadFile/"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns3="http://www.example.org"
    xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/file/WriteFile/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <partnerLink myRole="Read_role" name="ReadFile"
    partnerLinkType="ns1:Read_plt"/>
    <partnerLink name="WriteFile" partnerRole="Write_role"
    partnerLinkType="ns2:Write_plt"/>
    </partnerLinks>
    <variables>
    <variable name="Receive_1_Read_InputVariable"
    messageType="ns1:readfile_msg"/>
    <variable name="Invoke_1_Write_InputVariable"
    messageType="ns2:readfile_msg"/>
    </variables>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <receive name="Receive_1" partnerLink="ReadFile" portType="ns1:Read_ptt"
    operation="Read" variable="Receive_1_Read_InputVariable"
    createInstance="yes"/>
    <assign name="Transform_1">
    <bpelx:annotation>
    <bpelx:pattern>transformation</bpelx:pattern>
    </bpelx:annotation>
    <copy>
    <from expression="ora:processXSLT('Transformation_3.xsl',bpws:getVariableData('Receive_1_Read_InputVariable','readfile'))"/>
    <to variable="Invoke_1_Write_InputVariable" part="readfile"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" partnerLink="WriteFile" portType="ns2:Write_ptt"
    operation="Write" inputVariable="Invoke_1_Write_InputVariable"/>
    </sequence>
    </process>

  • How to get file name from file adapter (Read Operation)

    Hi All,
    I am reading files from local location, in jca file i gave filename property =*.* ( which reads all files), and now I want to read the incoming file name inside bpel and I want to copy the file name to some variable. Is this possible?

    Yes, its possible.
    In your receive activity,set below property in its properties tab:
    <bpelx:property name="jca.file.FileName" variable="FileName"/>
    Before that make sure to create a variable "FileName" of string type.
    Whatever file your file adapter will read,its name will be stored in this variable.
    Hope this helps.
    Regards,
    Karan
    http://learn-oraclesoa.blogspot.com/

  • Receiving "Invalid char in text." error from file adapter

    I'm testing a file adapter and am receiving the following error:
    Invalid char in text.
    The invalid character seems to be the ascii Record Separator character, Hex 1E, HTML &#xa;
    Is it possible for me to modify the file adapter schema to handle this character?

    The HTML description should have been this (minus space characters)
    & # x a ;

  • 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

  • Need to get file name and directory back from file adapter - WRITE

    I am using the file adapter to write a file. I want to log the file name of the file we just created. Since we use a precise timestamp in the file name, I can't accurately guess.
    I have an invoke in my BPEL process to the file adapter. My first try was to assign the jca.file.FileName property to a variable, but it never comes back. I looked around and saw plenty of ways to SET the file name for a write and GET the file name for a read, but no GET file name for WRITE.
    Anyone have a solution?
    Thanks in advance!

    I think I got your point... You can tell FileAdapter the filename to write, but if you don't then FileAdapter can not tell you the filename that it wrote... I think it is pretty possible Oracle didn't implement the latter, as the write operation is probably asynchronous and the filename is calculated later on...
    If what you want is just log, you may achieve your requirement by increasing verbosity on Adapter logs... Have a look at the link bellow...
    http://docs.oracle.com/cd/E15586_01/integration.1111/e10226/ad_mon.htm#CJHHBBID
    Otherwise, the solution for you will be to calculate filename yourself, and that will be a little bit of reinventing the wheel... But at least you will know the filename...
    Cheers,
    Vlad

  • Acknowledgment in File Adapter

    Hi,
    I tried a BPM that receive from a SOAP and
    writes into a file. I need BPM because of
    alerts.
    Because I started a s/a-bridge, I would like
    to send the soap adapter a response (like an
    errorcode). The sender step got a field
    Acknowledgement. How can I use this? In SAP XI
    documentation it says that the receiver got to
    send an acknowledgement, but I can't find how
    a file communication channel can send an acknowledgement.
    Any experiences??
    thanks
    chris

    I think there would be an alert if the file adpater
    could not reach the file system if I build my
    integration prozess like this:
    -> block with exception -> open s/a-bridge -> send to file -> close s/a-bridge
    The exception should close process with a control step.
    So, if I would like to close the message with a message that included an errormessage field and fill this field with a constant, how can I do this? Do I have to add a transformation step?
    I have:
    Message-types:
    - a request for soap
    - a response for soap
    - a request for file (it's not necessary, but I would like to split of web service from writing structure)
    Interface:
    - a sync out for web service
    - a sync abs for BPM
    - a request abs for BPM (web service)
    - a response abs for BPM (web service)
    - a request abs for BPM (file)
    Mapping:
    - sync out to sync abs (web service)
    - request abs (web service) to request abs (file)
    - ??? One for mapping constant into repsonse?
    how can I do the mapping of the constant, if I don't
    have a file response??
    thanks
    chris
    Message was edited by: Christian Riekenberg

  • How to ZIP a File from File adapter

    Hi All,
    How Can I create a ZIP file after reading from the directory.
    Is there any property which zip's all the read file?
    The requirement is to read an xml and create a zip of the same file in different location. Appreciate your response.
    Thanks,

    Hi,
    You can use OOTB Pipelines and Valves to achieve this. Refer below and let us know if you have any questions.
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#autoId19
    Regards,
    Neeraj Sehgal

  • File Adapter Acknowledgement in BPM - NEW Question

    This is in cntinuation of my earlier question:
    File Adapter Acknowledgement in BPM
    Now I understand that the send step should wait to get the acknowledgement from file adapter.
    As I understand This ack may be +ve or -ve.
    <b>So my question is how do we test for + ve acknowledgement in the next step / switch?</b>
    Thanks,
    HImadri

    hi,
    in condition editor of this switch step you need to choose technical objects
    and check it they = true
    for sender apps
    you can also use Main/MessageClass field 
    have a look at the bottom of this page to
    check their values:
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Capturing Errors in Acknowledgements in MDM adapter - PI7.11

    Hi Experts
    I am working on a File to MDMadapter in PI 7.11 , I am sending a request to MDM adapter and receiving the acknowledgements back to PI, but in failed status.  I have configure the Alerts to capture the erros in runtime work bench.
    However whenever there is a failure on the Acknowledgements the alerts are not being sent. How can  I capture the errors in Acknowledgements from MDM adapter.
    Thanks
    PR

    Hi PR,
       can you tell us what exactly do you mean by receiving acknowlegdements in error status?
    Do you mean you there was an ackowledgement from MDM saying that the load was un-succesful?
    Or do you mean there was an acknowledgement which went into failed status, because there was no configuration done in PI to handle that acknowledgement?
    If you mean 2nd point, then you should have a scenario to handle the acknowledgements and then have the alerts configured the normal way.
    Best Regards,
    Ravi

  • Urgent - get back an acknowledgement from external vendor

    Hello All
    I have to send Idoc from SAP to external vendor using XI and the process is asynchronous. The external vendor wants to send back an acknowledgement for success or failure. How can I handle the acknowledgement in SAP. I mean, is there any standard acknowledgement idocs for PO, Delivery, Item master etc etc. What is the standard practice to handle this acknowledgement in SAP. I dont want to do any customizing in SAP to update a ztable with the acknowledgement.
    Any help is really appreciated and the reqmt is very urgent.
    Thanks
    Ricky

    Hi,
    Like pointed this depends on the target System. What adapter are you using to send data to the target system?
    If you are using File Adapter then you will only be able to use System Acknowledgements as file adapter does not supprot application ack's.
    You can get the System Ack from the file adapter and send the ALEAUDIT Idoc back to the SAP system and so on.
    Check this link for the adapters that support app ack's,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    Regards
    Bhavesh

  • KeyFieldValue in Sender File Adapter Not Working

    Hi,
    I have a flat file like this...
    1Field1Field2Filed3.....
    2Field1Field2Field3....
    1Field1Field2Filed3.....
    2Field1Field2Field3.....
    1Field1Field2Filed3.....
    2Field1Field2Field3....
    My requirement is to pick only lines starting with '1'.
    I have configured the Sender File Adapter like this,
    Recordset Structure : SOURCE,*
    Key Field Name: KF
    Key Field Type : String(Case-Sensitive)
    File Content Conversion:
    SOURCE.fieldFixedLengths  1,5,5,5....
    SOURCE.fieldNames           KF,FIELD1,FIELD2....
    SOURCE.keyFieldValue      1
    After all this, still it picks up all the recored instead of records starting with '1'. Can any one solve this?
    Regards,
    Sreedhar

    If you feel module processor is bit tough you can use XSLT Mapping which is simple in sloving ur problem.
    Check this blog to do a sample example using module processor.
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    To implement the above check this link....
    https://websmp201.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
    /people/gowtham.kuchipudi2/blog/2006/01/13/stop-creation-of-an-empty-file-from-file-adapter-using-module

Maybe you are looking for

  • Why doesn't iTunes use track names on burned cd's instead of querying Gracenote?

    I run a recording studio and burn cd's of original music for clients. Sometimes when those clients open their cd in itunes, titles and artist names with no connection whatsoever to their music are displayed. Why does itunes not just use the titles bu

  • How the heck do i get my old librsry put on my new computer?

    got a new pc and the jerks on the hotline tried to charge me to put my library back on it!!!! please help

  • Cursor is not visible in MIAW

    Hi All, I'm working on a desktop application (flash swf files opening in director shell). When I'm launching MIAW with hidden titlebar, cursor is not appearing in flash textfield. I have used Selection.setFocus() (Action script method) to put the foc

  • Turn on display with LIRC

    Hi everyone, I've been using this forum stealthily for quite some time, but never posted because the questions I had had already been answered. Obviously, today it's not the case I'm in the process of building an HTPC, running Arch and XBMC. Everythi

  • Internal Order for Miscellaneous cost to material

    Dear Experts, I need your suggestion on below point. We have some miscellaneous cost which needs to be settled to material. Example: If the value of the 10 qty of material is 100 and miscellaneous cost for all this material is 10 then as per the requ