Problem in File-File Scenario

Hi All,
I am doing File->File Scenarios. There is no Recrod set also. I want to rename the file using XI. No mapping required. To rename the File name we can do the coding related to Dynamica configuration in one UDF and will map to the top node of the target. But i don't have the mapping here, So How can i execture this UDF or Do i need to write the Module in File adapter CC.
I tried with dummy mapping , But I am getting the following error
</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE
</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_Target_File_determined_
</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException
</SAP:P2>
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~
</SAP:P3>
<SAP:P4/>
<SAP:AdditionalText/>
<SAP:ApplicationFaultMessage namespace=""/>
<SAP:Stack>During the application mapping com/sap/xi/tf/_MM_Target_File_determined_ a com.sap.aii.utilxi.misc.api.BaseRu
ntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~
</SAP:Stack>
The mapping part is correct. There is no doubt on that. I don;t know why i am getting this error. Can you please tell me what could be the reason or any solution to resolve my problem.
Points will be rewarded for helpful answers.
Thanks in advance,
Best Regards,
Vijay

Bhaskarudu,
Option 1: If you only want to rename the file then pick the file and rename the file in receiver communicatin channel and write. Check this weblog for some help:
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
Option 2: If you want to rename the file dynamically then you should do the mapping. Check this weblog for this:
/people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
Option 3: If you are picking the file within your organisation which is shared on NFS then you use OS commands in the file adapterd to rename the file.
Regards,
---Satish

Similar Messages

  • File Mail Scenario Problem  ( V.V.Urgent)

    Hi ,
    I am Using PI7.0.
    I have a file in FTP ( xyz.rtf)  and i want to attach the file and send to the mail.
    I configured the scenario.
    But I can pick the file and make an attachment and sending to the mail.
    My problem is my file xyz.rtf is converting into .xml file and attaching.
    I need the same xyz.rtf file to attached to the mail.
    And i am using PI 7.0 and i am not finding any options in the file adapter.
    Help me and do the needful.
    points will be awarded.
    Regards,
    Jayasimha Jangam

    Hi Jayasimha ,
    When n sender side you will read the file it will be converted to xml format. If you wish to send it to Mail adapter as an attachment with same .rtf  format, then refer below scenario. Here Image file is send as the way you wish to send your rtf file.
    Sending an Image File Through Exchange Infrastructure in a File-to-Mail Scenario
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    Thanks
    Swarup

  • Simplified Chinese format problem in File-File Scenario.

    Hi,
    I have configured File(FTP) - > File(FTP) Scenario.
    I am expecting a Chinese File from Source system which is AS400. I am using the file encoding format UTF-8 while the chinese characters are in GB2312 format. My sender file adapter picks up the file correctly, but SXMB_MONI gives Mapping related Parser error. Kindly Suggest.
    Do i need to change some character set or code page? if yes, where should it be done?
    Thanks Charu.

    Hi,
    Under File Encoding, specify a code page.
    The default setting is to use the system code page that is specific to the configuration of the installed operating system. The file content is converted to the UTF-8 code page before it is sent.
    Permitted values for the code page are the existing charsets of the Java runtime. According to the SUN specification for the Java runtime, at least the following standard character sets must be supported:
    US-ASCII
    Seven-bit ASCII, also known as ISO646-US, or Basic Latin block of the Unicode character set
    ISO-8859-1
    ISO character set for Western European languages (Latin Alphabet No. 1), also known as ISO-LATIN-1
    UTF-8
    8-Bit Unicode Character Format
    UTF-16BE
    16-bit Unicode character format, big-endian byte order
    UTF-16LE
    16-bit Unicode character format, little-endian byte order
    UTF-16
    16-bit Unicode character format, byte order
    Check which other character sets are supported in the documentation for your Java runtime implementation.
    XML text documents generally contain their own code page description and should be treated as binary data type.
    If it is not there the you need write the Adapter module for sender side .
    Or you can use the XSLT mapping using CDATA.
    see the below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Regards
    Chilla

  • Problem in output file generation in AL11 tcode - need quick help

    Hi experts,
    Scenario:- Proxy to File ( file is generated in AL11 directory folder.
    Probelm:
    Last field value is generated with correct values in SXMB_MONI output payload, But when I open a file in AL11 the last field fiew value are getting trimmed. Also when I get the dump of file - file also has the same trimmed value.
    For example: Expected value in MONI is 12345 where as in AL11 i m getting 1234
    I have reduce the length of previous fields and run the scenario again - for this scenario all the values are coming in AL11 as well as in MONI.
    Is somthing to do with screen width length.
    Deepak Jaiswal.
    Edited by: deepak jaiswal on Aug 6, 2009 11:45 AM

    HI ,
          Its a problem with File Transfer tcode sxda_tools and AL11 sometimes. Ask your Basis team to give you file contents from PI Server directly.  This file should have right contents as you expected.
    I also faced the same problem and wasted lot of time to solve it.
    Hence, check the folder where you dump this file on application server and give this path to basis to provide you this file from server.
    Regards,
    Anurag Garg

  • File-to-File/RFC scenario with reading filename

    Hi,
    i have a File-to-File/RFC scenario which causes some problems in desining it correctly. Maybe some of you has an idea how to do this.
    Scenario:
    - A file is picked up by a File-Adapter. The files are different: pdf, doc, tiff, jpg, txt, ...
    - The file must now go through a business process (not necessary the file, but i need the filename in the business process).
    - The process has to contact several backend systems (SAP R/3) to collect some data. To achieve this the filename has to be send to this systems.
    - The collected data are send via SOAP to a receiver system
    - The file itself has to be stored in a directory via File-Adapter.
    Here's my problem:
    - Is it possible to transport the binary file content within a message which contains other elements (e.g. filename)?
    - Is it possible to do graphical mappings with such a payload (only 1 to 1)? Or must i use Java Mappings only?
    - How to generate a Message from the sender File Adapter which contains binary file content AND filename? Is this possible with a Module?
    - Is it better to create 2 messages with an adapter module? One with the image the other with the filename. Or is it better to split them later in a Mapping?
    Thanks in advance,
    ms

    If all that you need is the file name, use adapter specific settings in the sender file adapter. Then you can access the file name in mapping runtime in UDFs. If you want to have content of the pdf, jpg etc images, i do not think there are ready modules available except for reading pdfs ( you might have to research on this).
    For look ups etc with R3 systems, you can use the file name that you got from the adapter and store it in mapping fields.
    VJ

  • Error in file-file scenario: HTTP response contains status code 503

    Hi folks,
    I've encountered the foll error in file-file scenario:
    Testing file-file scenario (followed the blog: https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&)
    Initially i was hving problems with recvr comm channel, which are now resolved. File is sent successfully but not recvd. I tried to modify the scenario above and change the file type to 'Text' but still got the same error.
    I've checked SICF -->default_host/xi/engine , we dont maintain logon data there. when i test the default_host/xi/engine service, it resolves into an ip addr as follows:
    http://<hostname>.<domain.com>:8001/sap/xi/engine?sap-client=<clientNo>
    (Also, we hv a BW system running on the same server ,which uses a fully qualified domain, while we dont which is why we get the above domain. Im not sure if there are any issues with that.)
    and we get the foll error:
    Error Code 10060: Connection timeout
    If i remove the domain manually, im prompted for userid/pwd and get the foll result:
    - <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP:Header />
    - <SOAP:Body>
    - <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <faultcode>SOAP:Client</faultcode>
      <faultstring>Pipeline specified in URL attribute (type) not existing</faultstring>
      <faultactor>http://sap.com/xi/XI/Message/30</faultactor>
    - <detail>
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="MESSAGE">URL_PIPELINE_NOT_FOUND</SAP:Code>
      <SAP:P1>/sap/xi/engine?sap-client=<clientNo></SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Pipeline ID , which is expected as value of attribute &quot;type&quot; in the URL, does not exist in the Integration Engine (URL = /sap/xi/engine?sap-client=811)</SAP:Stack>
      </SAP:Error>
      </detail>
      </SOAP:Fault>
      </SOAP:Body>
      </SOAP:Envelope>
    also, we dont hv any overload issues as this is dev env and not many of us are using the xi server. Would really appreciate if any of you can share your inputs on how to resolve this. Thanks!!
    cheers
    Prachi

    Hi ,
    Look in to this for all errors
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
    Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
    Possible Tips: Because of J2EE application com.sap.aii.af.ms.app not active
    • Try to (re)start the application using the Visual Administrator Choose Server --> Services --> Deploy --> View on Application or restart the J2EE engine
    • The problem is that not all J2EE services can be started by the J2EE. i.e Start the Visual Administrator and select Server->Services->Deploy in the tree on the left. On the right-hand side, choose the Runtime tab page. You see a tree in the right window with all applications if you select the APPLICATION radio button. Check if they are running, otherwise choose Start. Usually the J2EE engine starts all services automatically.
    • Refer SAP Note 803145,807000,791655
    <b>Award Points if found usefull.</b>

  • Problem in Receiver File adapter :Module XML2PLAIN

    Hi Friends,
    I have a FILE -> FILE scenario ,In this when I am downloading the data in XML format it is getting downloaded successfully.The output look like this ...
    <b>I have only one field to be displayed in the output</b>.
    <?xml version="1.0" encoding="utf-8" ?>
    <Returnkey>
    <field1>000000000621185CA</field1>
    </Returnkey>
    Module Name                                                      Modulekey
    localejbs/AF_Modules/MessageTransformBean      XML2Plain
    <b>Module key parametername                      parameter value</b>
    XML2Plain      Transform.Class            com.sap.aii.messaging.adapter.Conversion
    XML2Plain      Transform.ContentType   text/plain;charset=utf-8
    XML2Plain      xml.addHeaderLine         0
    XML2Plain      xml.conversionType       SimpleXML2Plain
    XML2Plain      xml.fieldFixedLengths    25
    Please some one help me out I,I have tried all the options  and I cant use File content conversion in this case ,(I have JMS adapter which actually sends this information to MQ,as  it is working in XML format AND not in plain format ,I am testing this temporarily with a receiver file scenario)
    Thanks in advance.

    Hi
    you can use the following modules and the parameters.
    Processing sequence :
    localejbs/AF_Modules/MessageTransformBean
    localejbs/SAP XI JMS Adapter/ConvertMessageToBinary
    localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService
    Module Configuration:
    Transform.Class----
    >com.sap.aii.messaging.adapter.Conversion
    TransformContentType----
    >text/plain;charset=utf-8
    xml.addHeaderLine----
    >0
    xml.conversionType----
    >SimpleXML2Plain
    xml.fieldFixedLengths----
    >10,10,10(for ex)
    xml.fixedLengthTooShortHandling----
    >Cut
    if you still face the problem please reply me back.
    Thanks
    Rinku

  • File -- File sceranio problem

    I am having some problem in the file-file scenario at the sender file adapter level. Please look at the following message:
    2006-01-09 10:23:17 Error Attempt to parse XI system response failed
    2006-01-09 10:23:17 Error Transmitting the message to endpoint http://host:port using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to invalid content type for SOAP: TEXT/HTML.

    Hi Michael and tny,
    I have just read the problem description and I have just the same error..
    BUT ON the PCK while module developing.
    What can I do on the PCK instead?
    I have restarted the AFW Core service, the XI Messaging System and afterall the complete J2EE Server.
    I have also restarted the CPA Cache, I thought there lies the problem.
    Nothing help, even the same problem.
    Any ideas, what I can do? (I was a little bit suprised that the CPA Cach refresh via url doesn't work. Maybe here lies the problem.
    Any ideas?
    Best regards,
    Dries

  • Problem in Sender File content conversion

    Hi all,
    my sender file structure is as follows:
    records
    header
      f1   minlength=1 MaxLenth=1
      f2   minlength=5 MaxLenth=5
      f3   minlength=7 MaxLenth=7
    detail
      f1   minlength=1 MaxLenth=1
      f2   minlength=5 MaxLenth=5
      f3   minlength=18 MaxLenth=18
    now i need to use these fixed field legth file and perform fcc.
    under fcc of communication channel
    documentname=MT_details
      rcs   header,,detail,
    header.fieldNames  header.f1,header.f2,header.f3
    header.fixedFieldLengts 1,5,7
    detail.fieldNames  detail.f1,detail.f2,detail.f3
    here I Am not using any key field
    when i test the scenario with test file
    A E123 X12345
    T T123 Textlineitem12345
    My problem is the file is not getting picked from the specified path.
    Please correct my configuration.
    Thanks,

    Check the FOLDER permission of the path.
    There may be some permissions missing to access that folder .
    Check with your BASIS or UNIX team.
    Edited by: Naresh Nelapatla on Feb 27, 2012 7:17 PM

  • XI is not able to archive file in file-idoc scenario

    Hello friends,
    I have an issue in my file->idoc scenario. When a file is placed to XI's filesystem using FTP, it is placed under xiftpuser user. Owner of all directories in this structure wher the file is placed is xiftpuser. XI is not able to archive the file because of the permissions on the archive directory. But the problem is, permissions on this directory are 775 and xiftpuser and xipadm user are in the same group. So this should work. But it doesn't. When I change permissions to 777 everything works fine.
    Do you have any idea what could be wrong?
    Does it matter, that xipadm user has been added to the common group with xiftpuser "later", when XI was up a long time before? Do we need to restart j2ee to take these new permissions into account?
    Thank you,
    Olian
    Edited by: Olian Saludew on Sep 23, 2008 11:46 AM

    Hi,
    If archive directory Path is d:\archive
    Put a '\' after it.
    e.g. "D:\archive\"
    It will work.
    Regards,
    Akshay.

  • XML-IDOC to Plain File: File Receiver Cnt Conversion Problem Nested Stucts

    Hi all,
    I have an IDOC-XI-File scenario and I have a problem with the file receiver adapter and the content conversion parameters when the final data type has nested structures. Imagine that I have something similar to the following:
    My desire is to get something similar to this in the output file:
    SEGMENT0;HEADER
    SEGMENT1;100
    SEGMENT2;0200000716
    SEGMENT3;1000
    SEGMENT2;0200000717
    SEGMENT3;1000
    SEGMENT3;1001
    SEGMENT3;1002
    But what we are getting is this:
    SEGMENT0;HEADER
    SEGMENT1;100
    SEGMENT2;0200000716;SEGMENT3;1000
    SEGMENT2;0200000717;SEGMENT3;1000;SEGMENT3;1001;SEGMENT3;1002
    The content conversion parameters of the file receiver are as follow:
    Recordset Structure: IDOC,EDI_DC40,E1STATS,Z1HDSTAT,Z1ITSTAT
    IDOC.fieldSeparator: ;
    IDOC. endSeparator: ‘nl’
    IDOC. addHeaderLine: 0
    EDI_DC40.fieldSeparator: ;
    EDI_DC40. endSeparator: ‘nl’
    EDI_DC40. addHeaderLine: 0
    E1STATS.fieldSeparator: ;
    E1STATS. endSeparator: ‘nl’
    E1STATS. addHeaderLine: 0
    Z1HDSTAT.fieldSeparator: ;
    Z1HDSTAT. endSeparator: ‘nl’
    Z1HDSTAT. addHeaderLine: 0
    Z1ITSTAT.fieldSeparator: ;
    Z1ITSTAT. endSeparator: ‘nl’
    Z1ITSTAT. addHeaderLine: 0
    I’ve tried to use the parameter beginSeparator=’nl’ for the segments Z1ITSTAT but it’s not working. I haven’t been able to find a solution in the other forums. Can anybody help me?
    Thanks in advance
    Roger Allué Vall

    Can you explain it with my example? I can't see what you mean.
    <ZSYSEX01>
    .<IDOC BEGIN="1">
    ....<EDI_DC40 SEGMENT="SEGMENT0">
    ........<FIELD1>HEADER</FIELD1>
    ....</EDI_DC40>
    ....<E1STATS SEGMENT="SEGMENT1">
    ........<FIELD2>100</MANDT>
    ........<Z1HDSTAT SEGMENT="SEGMENT2">
    ...........<FIELD3>0200000716</FIELD3>
    ...........<Z1ITSTAT SEGMENT="SEGMENT3">
    ...............<FIELD4>1000</FIELD4>
    ...........</Z1ITSTAT>
    ........</Z1HDSTAT>
    ........<Z1HDSTAT SEGMENT="SEGMENT2">
    ...........<FIELD3>0200000717</FIELD3>
    ...........<Z1ITSTAT SEGMENT="SEGMENT3">
    ...............<FIELD4>1000</FIELD4>
    ...........</Z1ITSTAT>
    ...........<Z1ITSTAT SEGMENT="SEGMENT3">
    ...............<FIELD4>1001</FIELD4>
    ...........</Z1ITSTAT>
    ...........<Z1ITSTAT SEGMENT="SEGMENT3">
    ...............<FIELD4>1002</FIELD4>
    ...........</Z1ITSTAT>
    ........</Z1HDSTAT>
    ....</E1STATS>
    .</IDOC>
    </ZSYSEX01>
    Regards,

  • Problem with Local File Identification in RFC

    Dear all,
    We are working on a scenario where we have to integrate an external application with SAP system. The external application would use SAP DMS as document repository; It will send us a local file path and we have to upload the document located in that path as an attachment to a DMS Document Info Record. We have designed a wrapper RFC for this purpose, which encapsulates the standard Fm BAPI_DOCUMENT_CREATE2. This BAPI takes a file path input under table parameter DOCUMENTFILES. Problem is, when we are running the RFC from SAP GUI, the document info record is created correctly with the document as attachment, but when we invoke the RFC from the external application, the process fails and we get an error message stating:"Error while checking in Original Files". We debugged the scenario and found out that, while running under SAP GUI, the BAPI is able to identify a GUI Link, and hence succeeds; but while calling from the external application, the BAPI fails to find a GUI Link, tries to start a FTP Server using RFC Destination SAPFTP, and fails. So, obviously, the BAPI is not able to parse the local file path because of non-existence of GUI Link. So,in this regard, my question is: is there no way that we can pass a local file path from an external application to SAP, and get the same identified and get the document uploaded? Is there any alternative to our approach?
    Awaiting answers.
    Regards,
    Sid

    Solved the problem by:
    Converting file content to binary->transferring binary content to a wrapper RFC->writing the content into a temporary file in application server->then calling BAPI_DOCUMENT_CREATE2 to create the document without attachment->then calling CVAPI_DOC_CHECKIN to checkin the temporay file from application server.
    Related references:
    http://wiki.sdn.sap.com/wiki/display/PLM/DMSandbackground+processing
    https://websmp130.sap-ag.de/sap/support/notes/504692
    How to upload file from Web Dynpro into R/3 (BAPI_DOCUMENT_CREATE2)
    Thanks to All who have contributed to the Solution.
    Sincere Regards,
    Sid

  • FILE - FILE Scenario - output file is not available

    Hi
    I'm doing simple file - file scenario based on the weblog
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    In RWB >> msg monitor shows, the message status is successful. But I'm unable to find output file in the directory as I mentioned.
    Pls help me where to find.. what is the problem
    - Govind J

    Hi Govind,
    These are a few things you can do:
    Check the permissions of the folder where the file is being generated by XI.
    If you are doing Content conversion, please can you just remove it and see if the XML file is getting generated.
    Also, please check if it's picked up by any other application when you place it on the server.
    I am assuming out here that you are speaking abt the file that is give by SAP XI after processing the incomming file.
    Also check default .trc log file in visual admin.it will tell u if there any errors
    and also check the permissions of the files generated by XI
    Regards,
    Abhy

  • Reciver File channel unable to get message from Xi in file- file scenario

    Hi All,
    I have done a small File to File scenario.
    Sender file adapter receiver the file and gives it to XI, then deletes the file from that directory.
    Receiver is unable to get the file.
    I have a message mapping defined for the receiver which concatenates two fields from one message type and transforms it to another.
    I have configured the scenario.
    When I check the adapter stats Sender channel picks the Xml deletes it from the directory.
    <b>Sender channel:</b>
    Sender Adapter v1014 for Party '', Service 'SourceFileBS':
    Configured at 04:25:50 2006-06-03
    Up and running: Last message processing started 05:10:50 2006-06-03
      last poll interval started 05:10:50 2006-06-03
      length 60,000 secs
    <b>Receiver channel:</b>
    Receiver Adapter v1027 for Party '', Service 'TargetFileBs':
    Configured at 04:25:50 2006-06-03
    Up and running - no message processing until now
    I configured the scenario (receiver agreement, determination, sender agreement, and interface determination).
    Instead of Business systems, I Configured Business services (Virtual) for inter company communication.
    XI is unable to give the message to the receiver channel.
    Please help me to debug the scenario.
    Regards,
    Meher

    Hi All,
    Thanks for all your Responses.
    I see a high payload in my monitor belonging to some other process ( shipped with XI) MAT_LEGACY.
    The scenario which I executed is showing up a status of <b>scheduled</b>
    Adapter has picked the message at 01:59:37 2006-09-12
    and start time and the end time of the message is shown as
    01:59:37 2006-09-13 in the XI monitor with a status of scheduled .
    can I purge the sceduled messages for MAT_LEGACY scenario?
    if yes how do i do that?
    is this causing a problem for the file not being received by receiver?
    when i go to the transaction manager with SMQ1 with the client 100 i see the queue on which the above message is persisted with a queue status of ready.
    help me.
    Regards,
    Meher

  • Comma and quote problem in csv file

    Hi
    My requirement is to append data in an csv file. This is Proxy to File FCC Scenario. for some of the fields from proxy which contains comma(,) and also double-quote("). for these fileds the in the csv file it is spiting in to two columns and appending in to the next column. and the double-quote symbol is not inserting in the csv file.
    1. why the double-quote(") is not inserting in to the csv file columns?
    2. how to over come the comma problem? I want that particular file need to append in one column only.
    Thanks
    Vankadoath

    hi vankadoath,
    Were you able to solve comma issue in CSV file.
    Even i am facing similar issue.....
    wheneever there is a comma in field, it is updating data after comma into next field.
    If anybody has solution for the same.......
    pls suggest the same............
    santosh.
    Edited by: santosh koraddi on Jan 20, 2011 9:44 PM

Maybe you are looking for