Problem in mapping-BAPI to file.

Hi all,
I am working on an bapi to file scenerio.My requirement is 2 files need to created in the target ,
First file has the payload and its name(filename) needs to hav message id.
Second file is a catalog file which only holds the name of the first file(Howmany ever file are reaching target,this file wil hav names of all those files.).
I have used multi mapping wherein for the first structure i hav done dynamic configuration to generate filename and its wrking fine.
For the second stucture (has only 1 field for passing filename)i wrote following UDF and mapped it
String constant;
java.util.Map map;
map = container.getTransformationParameters();
constant = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
String fileName = constant + ".txt";
return constant;
but now  output of the second file is empty ie the filenames of the first file is not present in it.
Please help as its very urget.

heyy...thanks for that, but that was a typing mistake..problem is elsewhere, i had tested by mapping that field to a constant, even then no value was present in output.
My structure looks like below.
Messages
   Message1
      mt_abcd
.        field1
         field2
         field3
   Message2
      mt_abcd2
         filename
Message1 and message2 are 2 separate files in output.
Message1's output is correctly generated.But for message2 no output atall.

Similar Messages

  • Problems with mapping after bundling messages into one XML-file

    Hi all,
    Case 1: one DebMas IDoc ==> XI ==> one XML-file : no problems with mapping.
    Case 2: several DebMas IDoc's ==> XI ==> one XML-file : problems with mapping.
    Explanation:
    Incoming DebMas IDoc's:
    Businesspartner 1 : no Customer Master Partner Functions (E1KNVPM).
    Businesspartner 2 : Customer Master Partner Functions (E1KNVPM).
    Businesspartner 3 : Customer Master Partner Functions (E1KNVPM).
    Businesspartner 4 : Customer Master Partner Functions (E1KNVPM).
    After bundling into one XML-file:
    Businesspartner 1 : no Customer Master Partner Functions (E1KNVPM).
    Businesspartner 2 : no Customer Master Partner Functions (E1KNVPM) !!!!
    Businesspartner 3 : Customer Master Partner Functions of Bp 2 (E1KNVPM) !!!!.
    Businesspartner 4 : Customer Master Partner Functions of Bp 3 (E1KNVPM) !!!!.
    All the payloads of the IDoc's are correct.
    In the message mapping we use a Container for the Partner Functions (shown as below)
    Is this a serious bug in the mapping of SAP XI ?
    Does anyone knows how to solve this serious problem.
    E1KNVVM -
    > Partner_Container
    E1KNVPM -
    > Partner
       PARVW -
    > ParnerRole
       KUNN2   -
    > PartnerNumber
    Regards,
    Theo Pijlman

    Hi,
    Example:
    Input idoc has field F1 with occurence 0..unbnd
    My input values for field F1 is
    1
    none
    2
    3
    Say, I have a mapping, F1---->TargetF1
    In the target only 3 TargetF1s will be created for the values 1,2,3 and nothing will be created for the field F1 with no value.
    To overcome this, use collapse contexts.
    F1->collapsecontexts>TargetF1
    This way, the TargetF1 fields created will have the following values:
    1
    blank
    2
    3
    Collapse contexts makes sure that a target is created, even if there is a context change specified at the source.
    Hope this is clear.
    Regards,
    Smitha.

  • Error: "We're having a problem opening this location on file explorer. Add this website to your trusted sites list and try again"

    Hello,
    When i try to open document library from SharePoint Production portal then it throws the specified error. However, when i open document library from SharePoint Development portal then it opens it in file explorer quite easily.
    Production portal is on https whereas development portal is on http. Also, UAG has been configured on production portal.
    Any idea where it's getting stuck up? Surely, this is not a browser issue on Windows 7 as it's opening the development portal's document library on the same machine.
    I've also done following things:
    - Configured Desktop Experience on production environment
    - Installed the hotfix for Windows 7
    Regards,
    Sohaib
    Sohaib Khan

    Hello Sohaib.
    Here is the list of causes defined here.Hope it helps you
    The cause and the resolution methods are the following:
    Cause: There is a missing Root site collection...
    Resolution: Check and ensure,  that the “Managed Paths” are not changed in the web Application’s page, there is a (root) explicit for
    this web application and there is a working Root site collection.
    If for any reason this is not the case in your environment, you may try the following:
    - Apply (if not already) the following Hotfix to one of those clients:
    Error when you open a SharePoint Document Library in Windows Explorer or map a network drive to the library after you install Internet Explorer 10 in Windows 7 or Windows Server 2008 R2 
    http://support.microsoft.com/kb/2846960
    Then, try to delete the cache of the IE browser before reproducing the issue. Check the result..
    - Try to temporarily disable the Antivirus and test again.
    - Check if you have installed the Desktop Experience feature on the SPS13 server.
    - Check if you face this behavior with all users, Or only with some specific ones, Or with all different client OSes.. 
    Otherwise you will need to collect the logs to further analyze...
    http://blogs.msdn.com/b/george_bethanis/archive/2013/11/04/sps13-quot-open-with-explorer-quot-random-error-quot-we-re-having-a-problem-opening-this-location-in-file-explorer-add-this-web-site-to-your-trusted-sites-list-and-try-again-quot.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Unable to generate WebService Client with Exported (BAPI) WSDL file from XI

    Hi there,
    I, trying to setup a simple Web Service environment where I'll be exposing a BAPI as Web Service via XI.
    So these are the steps I followed:
    <b>1)</b> first I imported the BAPI meta data into my SWC in the repository. <b>2)</b> Second I defined my interrface etc.. <b>3)</b> Third I exported the generated BAPI WSDL file. <b>4)</b> Fourth, I tried to generate a Java proxy/client for my Web Service using a Java IDE (IBM WebSphere Application Developer and XML Spy).
    Now the problem is that Im not able to generate the Web Service client using the exported WSDL file, the WSDL seems not to be valid...From the generated errors in the IDE, I can see that the problem has to do somewhere/somehow with the WSDL Binding element, which input parameters do not match the input parameters of the port type.
    This is a small part of the WSDL file as generated by XI:
         <wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Input">
              <wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
         </wsdl:message>
         <wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Output">
              <wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS.Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
         </wsdl:message>
         <wsdl:portType name="BAPI_AR_ACC_GETOPENITEMS.PortType">
              <wsdl:operation name="BAPI_AR_ACC_GETOPENITEMS">
                   <wsdl:input message="s0:BAPI_AR_ACC_GETOPENITEMS.Input"/>
                   <wsdl:output message="s0:BAPI_AR_ACC_GETOPENITEMS.Output"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="BAPI_AR_ACC_GETOPENITEMS.SAPBinding" type="s0:BAPI_AR_ACC_GETOPENITEMS.PortType" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
              <s0:binding style="rfc"/>
    Has anyone faced a situation like this before? Any clues where to look? I appreciate any feedback, thanks!
    Rob.
    Message was edited by: rob viana

    Hi Rob!
    I'm facing the same problem - how did you solve your issue then? I'm getting following error during generation on .NET side:
    ============================================================================================
    Error: There was an error processing 'http://server/wsdl/MIAMI_ACCDOCPost.wsdl'.
      - The document at the url http://server/wsdl/MIAMI_ACCDOCPost.wsdl
    was not recognized as a known document type.
    The error message from each known type may help you fix the problem:
    - Report from 'DISCO Document' is 'Discovery document at the URL http://server/wsdl/MIAMI_ACCDOCPost.wsdl could not be found.'.
      - The document format is not recognized (the content type is 'content/unknown').
    - Report from 'WSDL Document' is 'There is an error in XML document (2, 70138).'.
      - Value cannot be null.
    Parameter name: name
    - Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
    ============================================================================================
    kr Martin

  • How do I import Map Info Tab files into Spatial for a map of europe?

    How do I import Map Info Tab files into Spatial for a map of europe via FME and have oracle spatial draw the map without problems?
    So far I've got to the stage where I can import the data, spatially index it (in oracle 9i) and get my SVG (scaleable vector graphics) application to view the map.
    The problem is that countries that have more than one polygon (more than one row in the database) do not draw properly.
    When I view the Map Info tab file in the FME viewer I can see that the data is fine, but I can also see that some of the polygons used to draw a country are donugts and some aren't.
    This seems to cause a problem when I import the data into oracle spatial as I don't know if a row in the table needs to be inserted as an independent SDO_GEOMETRY or if it should form part of a larger SDO_GEOMETRY (as in 2 or more rows make up the polygon shape for a country).
    I have a feeling that I'm not using FME correctly, because at the moment I have to import the tab file into Oracle then re-insert the data into a spatially formatted table (one with a spatial index) - I get the impression that FME should do that for me but as I'm new to this I don't really know.
    Any Help welcome :|
    Tim

    Tim,
    MapInfo has a free utility called EasyLoader that allows you to upload a table directly to Oracle. EasyLoader creates the geometries and spatial index. You can download it free from http://www.mapinfo.com/products/download.cfm?ProductID=1044
    Andy Greis
    CompuTech Inc.

  • Problem with creating a new file in the Filter

    hi,
    i have the following problem.
    1) For all requests ending with *.xml (for example requests such as http://www.asdf.com/feeds/myfile.xml ) i have mapped it to a filter
    2 ) In the filter i did the following...................
    //getting the file name from the url
    //create the file if it does not exists..................
    chain(request,reponse);
    //done
    problem is
    3) a) For files which iam not creating in filter (i.e files which are already there) the response is proper it is returning a xml file
    b) But for files which are not there already , which we are creating in the filter dynamically it is showing a 404 (i.e file not found message)
    But if i refresh again in the browser it is getting a valid XML file.......................................
    I could not able to figure it out why it is returning 404 error in cases where the file is being created dynamically.................................
    Can any one guide me resolving this problem?

    Hi pawan
    Try this badi :   MB_MIGO_BADI  -
    (BAdI in MIGO for External Detail Subscreens)  as the name suggest ,
    If you want to add a screen in header level use : Method : PBO_header an code as :
        e_cprog   = 'ZMMPRM0001'.     """ Your screen created
        e_dynnr   = '1000'.                     "Your screen No
        e_heading = 'TEXT ID '(004).    """" Name of the screen to be created .
      ELSE .
        e_cprog   = 'ZMMPRM0001'.
        e_dynnr   = '1000'.                     "External fields: Display
        e_heading = 'TEXT ID '."(004).
    or if at item level
    u can use methid : PBO_DETAIL
    for item level screen creation . and code in the same maaner ..
    You can explore the remaning methods as per your requirements .
    Hope it helps ..!
    Regrads
    Swapnil P KAmble

  • Problem in mapping remoteobject on server side

    Hello all
    I am trying to use remoteobjects in Flex and PHP via Zend_AMF.  I am having problem in mapping the data object in flex with the one in PHP.
    Here's my code....
    private function getAuthors(event:Event):void
         serviceRO = new RemoteObject();
         serviceRO.endpoint = "http://localhost/sampleproj/public/";
         serviceRO.destination = "zend";
         serviceRO.source = "MyService";
         serviceRO.addEventListener(FaultEvent.FAULT, faultListener);
         serviceRO.getData.addEventListener(ResultEvent.RESULT, resultListener);
    Now, here's the server side directory structure that works for me....
    webroot
    + sampleproj
    ++ public
    +++ index.php (index file for the webapp)
    +++ MyService.php (this is the service class)
    +++ VOAuthor.php (this is the Value Object class)
    Since the index file, and the service file and value object are all in same directory, it works.
    This is what DOESN'T work....
    webroot
    + sampleproj
    ++ services
    +++ MyService.php (this is the service class)
    ++ vos
    +++ VOAuthor.php (this is the Value Object class)
    ++ public
    +++ index.php (index file for the webapp)
    The error that I get is:
    Channel.Connect.Failed error
    Here's little of something that's going on in index.php
    <?php
    require_once ('C:/webtools/zendframework/zf/library/Zend/Amf/Server.php');
    require_once ( realpath(dirname(__FILE__) . '/../services/MyService.php') );
    $server = new Zend_Amf_Server();
    $server->setClass("MyService"); // adding the class to AMF server
    $server->setClassMap("VOAuthor", "VOAuthor"); // mapping the ActionScript VO to PHP VO
    echo($server->handle());
    ?>
    My guess is that in ActionScript code I have to do something with RemoteObject's endpoint.
    Can anybody please help me out with this?
    Thanks and Regards
    ShiVik

    The problem turned out to be in the php code.
    Here's how I changed it
    <?php
    require_once ('C:/webtools/zendframework/zf/library/Zend/Amf/Server.php');
    $server = new Zend_Amf_Server();
    // the following methods provide the lazy loading of services and value objects
    $server->addDirectory( realpath(dirname(__FILE__) . "/../services/") );
    $server->addDirectory( realpath(dirname(__FILE__) . "/../vos/") );
    echo($server->handle());
    ?>
    Earlier I wasn't taking into account the change of directories for service and value object files.
    Thanks and Regards
    ShiVik

  • Problem in mapping a many to many relation to a list

    Hi,
    I have a problem with mapping a many to many relation to a list.
    I have a Many to Many relation in my database between tables baskets and products. This relation is implemented with a join table basket_products, which has two fields which correspond to the foreign keys to tables baskets and products. The join table need to have another one column "order", which defines the order of the products for the specific basket.
    In my mapping I have:
    @Entity
    @Table(name = "baskets", uniqueConstraints = {})
    public class Components implements java.io.Serializable {
    @ManyToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY)
         @JoinTable( name="baskets_products",
                             joinColumns=@JoinColumn(name="b_id", referencedColumnName="pr_id"),
                             inverseJoinColumns=@JoinColumn(name="pr_id", referencedColumnName="pr_id"))
            //This of course doesn't work!!
           //@OrderBy(value="order")
         public List<Products> getProductses() {
              return this.productses;
         public void setProductses(
                   List<Products> productses) {
              this.productses = productses;
    @Entity
    @Table(name = "products", uniqueConstraints = { })
    public class Products implements java.io.Serializable {
    @ManyToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "productses")
         public Set<Baskets> getBasketses() {
              return this.basketses;
         public void setBasketses(Set<Basket> basketses) {
              this.basketses = basketses;
         }In the EJB spec I read that :
    "The property or field name must correspond to that of a persistent property or field of the associated
    class."
    What to do if I want to use a field from the join table to do the ordering of the list??
    My problem is that the field "order", is not defined to the EJB container as a persistent field, so it cannot be used. But for my needs it is necessary that this field is included in the join table.
    I thought that I could use the secondary table annotation to map the join table to the Baskets class, as well, so that I can define the order field, but this solution seems to me as a really wrong one.
    Can anyone help me??
    Thanks,
    Elenh.

    Hi Martin-
    Can you please help me. Here are the details:
    We have created an AQ in Oracle DB which will have the following message Structure:
    CREATE OR REPLACE TYPE enqueue_payload AS OBJECT
    ( field1 VARCHAR2(100),
    field2 VARCHAR2(100),
    field3 DATE,
    field4 VARCHAR2(100),
    field5 NUMBER,
    payload CLOB,
    In the Payload field we are enqueing an XML message.
    We have to use a OSB proxy service to dequeue the message from the AQ, transform it to another format and send to a SOA Composite.
    We created a AQ Adapter in Jdeveloper 11g and imported the WSDL, XSD and .jca jca binding file into the OSB project. And configured the OSB proxy service using the WSDL imported.
    However in OSB proxy service message flow when I try to create an XQUERY transformation, I see that the Payload field does not expose the structure of the XML message that is being enqueued. I even changed the message structure definition to have the payload field as XMLType. But it didn't help.
    On analyzing the XSD created by AQ Adapter, I see that the payload is being defined as "string" in the XSD.
    Inputs Needed
    =========
    1. How can we parse the payload field defined as CLOB/XMLType in OSB so that I can see the structure of the XML message it holds ?
    2. Is there any in-built function in OSB to convert it to XML ?
    3. Any other inputs in order to transform the XML message coming in the payload field as CLOB/XMLType
    Please provide your inputs and I hope that I have clearly explained my use case.
    Thanks in advance for your time and help!!
    Regards,
    Dibya

  • Problem in mapping from  import manager  to Data manager

    hi friend's....I got a problem while mapping the data from import manager  to Data manager .The problem is the data in import manager (i.e source hierarchy) will map to single filed in data manager ( i.e target hierarchy)..
    Help me it will be great full to me
    Regards
    Yugandhar

    Hi Ana,
    If you have a hierarchy in this format:
    N1            N2                 N3
    A              A1                 A11
    A              A2                 A21
    A              A3                 A31
    B              B1                 B11
    Then u have to follow these steps for import.
    1. Select source file and destination hierarchy table at top of import manager.
    2.  Go to Partitions tab (Second tab) Just above the tabs, if u click on the plus sign against your source file, you will see N1, N2 and N3. Cick on N1 and in partition tab, add N2 to right side by double clicking on N2.
    3. Now add N3 to right side by double clicking on it.
    4. Go to field mapping (Third tab). There you will see a field N1(Partition). Map this field to yourhierarchy field on destination side.
    5. In value mapping (Below the field mapping), Expand your source hierarchy. Select all (ctrl + A). Click on "Add" button. Select "Add Branch as child" option.
    6. Go to Matching tab (Fourth tab). only one field will be there. take ity on the right side. and select the import action as "Create".
    7. Go to last tab. Click on import button.
    Your hierarchy has been imported. You can check it in data manager (in hierarchy mode).
    Hope this solves your problem.
    Regards,
    Dheeraj.

  • Facing problems while mapping fields in LSMW.

    Hi Friends,
           i got a requirement to upload the address. Address is in
    flat file.requirement is to use LSMW with object 0602 and the
    standard report program is RSADRLSM02.This standard report
    program uses the structures for uploading are ADR_LSM0 to
    ADR_LSM6.But i have some fields in the source structure are
    not at all related to the fields in destination structure(i.e ADR_LSM0 to ADR_LSM6)therefore i am facing problem while
    mapping the source and destination fields.is there any other
    way to map the fields.Please help me it's very urgent.
    Thanks in advance.
    Regards,
    Sumiti Gupta.

    Thanks for the reply santosh.
    GIS FIELD                                      SAP LOCATION
    ADDR_GID(10char)                     EXADR-KUNNR
    STR_NO(10)                               ADR_LSM0-STRT_CODE
    STR_NAME (42)                         ADR_LSM0-STREET
    ADDRESS_UNIT(7)                     ADR_LSM0-HOUSENUM_H
                                                          and
                                                     ADR_LSM0-HOUSENUM_L
    ADDRESS_UNIT_TYPE(5)           EVBSD-VBSART
    POST_CODE (10)                       ADR_LSM0-POST_CODE
    MUNI_NAME (40)                        EXADR-APPLDATA
    MAILING_CITY(60)                      ADR_LSM0-CITY_NAME
    MAP_PAGE(4)                           EADRSTRTGRID_GRID_ID
    EVAC_ZONE(1)                          EVBSD-ZEVAC
    PIN_NUM (18)                            EHAUD-PLTXT
    in the above fields the structure with ADR_LSM0 are found with the other fields i m not able to find the similar fields in the destination structure.Please help me.
    Regards,
    Sumiti Gupta.

  • BAPI to File Scenario

    Hi Everybody,
    Greetings!!!
    I am new for XI, pls help me to sort out the queries given below:
    1. Can u all help me out for step by step procedure to be followed for BAPI to File Scenario. (Guide me all configuration step to be performed in R/3 & XI)
    2. Also, pls tell me how to configure BAPI in ALE (I am using BAPI_GOODMVT_CREATE)
    3. Also, guide me in Value mapping in XI. (Eg: if the value is A then it should call BAPI_GOODMVT_CREATE, if the value is D then it should call BAPI_GOODMVT_DELETE and if it is U then BAPI_GOODMVT_CHANGE) - Give me code if it is necessary in case of JAVA mapping.
    I will appreciate you for quick response and solve my probs.
    Regards/Guru

    Hi Guru,
    <i>Can u all help me out for step by step procedure to be followed for BAPI to File Scenario. (Guide me all configuration step to be performed in R/3 & XI)</i>
    1) Go to transaction sm59.
    2) Give some name.
    3) Connection type TCP/IP.
    4) Activation Type Registered Server Program.
    5) Give some programid. You have to use this program id in RFC sender communication channel.
    6) In gateway host give the host name of R/3.Give gateway service.
    Before testing this connection create a RFC sender communication channel in XI.There specify the parameters like R/3 hostname,program id created above, authorization credentials for R/3 etc.Then activate the communication channel.Then test your TCP/IP connection in R/3. You have to test connection only after you create RFC CC in XI because it will go and check for the program id in XI.
    You will need to schedule a JOB in your R3 system that will call the RFC during every time perdiod.
    <i>Also, guide me in Value mapping in XI. (Eg: if the value is A then it should call BAPI_GOODMVT_CREATE, if the value is D then it should call BAPI_GOODMVT_DELETE and if it is U then BAPI_GOODMVT_CHANGE) - Give me code if it is necessary in case of JAVA mapping.</i>
    Your requirement can be easily met using the Extended Reciever determination that we have...
    Here actually based on condition from the message in the payload u can assign your receivers..
    Below is the steps to do the same...
    Under Receiver Determination --> Configured Receivers --> Specify the 2 receivers and beside the same you have an option called condition, there you specify the condition on which it has to go to the first system and then the condition on which it has to go to the second system.
    When you click on the codition it will open another window (Condition Editor window) under which you have a Left Operand which when you click will open up another window(Expression Editor window), there for your need you check on the XPath radio button and then click on the field whose value you wanna check from the structure that it displays, when you click on the field it fills in the XPath Expression, then click ok.
    After that it takes you back to the previous window(Condition Editor window) with the Left Operand having the XPath Expression, so all you will have to do is to fill the Right Operand which is nothing but the value you want that field to contain.(For Example if a field "A" that you have selected which comes in the XPath Expression in ur Left Operand,has a value "1" in your Right Operand)
    There you also have an option to put in an "and" or an "or" condition if required(For Example if you wanna check if "A" and "B" is satisfied or it you wanna check if "A" or "B" is satisfied, this can also be done)
    I also suggest u to go through these blogs..
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    If you have any doubts or clarifications on the same, please do ask and i will tell you how to proceed.
    Regards,
    Abhy Thomas

  • Problem on downloading a zip file

    I am having a problem on downloading a zip file(file size is about 2Mb). Sometimes I can get a complete file and can open the file, sometimes the zip file is chunked(the file size is smaller than the right one), so I can't open it.
    The file content is stored in a blob field. The code first goes to database get the blob as inputstream, then copy the inputstream into response.getOutputStream().
    The problem is unpredictable. Even for the same blob data, sometimes I can get working file, sometimes I just get crapped file.
    Could somebody help me out? I am struggling with it.
    Any input is appreciated!
    public class DownloadTextAction extends Action implements Serializable{
        private static Log log = LogFactory.getLog(DownloadTextAction.class);
        public ActionForward execute(ActionMapping mapping, ActionForm form,
                                     HttpServletRequest request,
                                     HttpServletResponse response) throws Exception
            ActionErrors errors = new ActionErrors();
            String batch_id = (String)request.getParameter("batch_id");
            String fileName = batch_id+".zip";
            try
    //          response.setContentType("application/octet-stream");
              response.setContentType("application/download");
      //        response.setContentLength(content.length());
    //          response.setHeader("Content-Disposition", "inline; filename=\""
    //                    + fileName + "\"");
              response.setHeader("Content-Disposition", "attachment; filename=\""
                        + fileName + "\"");
              InputStream in = untilService.getBlob(batch_id);         
              OutputStream out = response.getOutputStream();
              FileHelper.copy(in, out);
              out.flush();
              in.close();
              out.close();
            catch (Exception e)
              errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.detail", e.toString()));
              saveErrors(request, errors);
              log.error(e.toString());      
            return mapping.findForward(Constants.SUCCESS);
        }

    Maybe a fault in the missing FileHelper.copy() method?

  • Mapping Errors Log file to be sent via FTP

    Hi All,
    Functional specs of a file to file scenario require to create an aditional log file containing the file name, creation date and a list with the lines were a problem occurred with an error description and then send it to R3 via FTP.
    Does anyone know if it's possible or not? and if it's possible, how could I do that?
    Thanks in advance.
    Cheers.

    Daniel,
    This is possible.
    1. To get the Source File name and and appned the date to it, you can use Adapter Specific Identtifers -- File Name in the Sender and receiver file adapter and in the message mapping, set the file name using this code,
    2. Rest of error handling can error record creation for the error file can be handled via the mapping itself.
    String newfilename="";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    // Get Sourcefilename
    String oldfilename=conf.get(key);
    //get the date
    java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMdd" );
    dateformat.format( new java.util.Date() );
    //append source+date+L
    String nwfilename=oldfilename+dateformat;
    conf.put(key, newfilename);
    Regards,
    Bhavesh

  • Format file problem uploading electronic bank statement files FF_5 RFEBKA00

    hello
    I am facing a problem when uploading electronic bank statement files with the file format. The situation is as follows:
    1- Electronic bank statement files are sent by FTP from the bank to a certain directory in AL11
    2- we have developed a "z" program that just picks electronic bank statement files from AL11 directory and process them using standard FF_5 (RFEBKA00) program.
    3- When processing some files had an error, when debugging we have verified that errors are caused by some "special" characters non Unicode as "®" (=Hex'AE') with UTF-8, a '#' is displayed.
    SAP answers a question as follows:
    AL11 is designed to display os-files (log-files, trace-files etc.)
    from within the SAP-system for supporting purposes in order not to
    logon to the os itself.
    It was not designed to display any file-content in the system created
    with any code-page.
    AL11 opens the file in textmode with encoding option default, which
    means UTF-8 in a unicode system and NON-UNICODE in the other case.
    You cannot change this setting.
    If you have the need to specify these options, depending on your files,
    you can make a copy of report RSWATCH0 and customize the OPEN-statement
    to yor needs.
    On a Unicode system, the files need to be in Unicode format (UTF-8).
    Eg:When you interpret a non-Unicode "®" (=Hex'AE') with UTF-8, a '#' is
    displayed.
    Case 1:
    Who is creating those files? Are these files
    1) created by you
    2) are they written by a SAP application?
    ==>There are the notes 752835 and 747615 for cases like these.
    In case 2) it may be that the application responsible for the file
    download (not AL11!) should be the problem, considering note 752835.
    There is also the possibility for you to convert the file to the correct format using our tool RSCP_CONVERT_FILE (note 747615).
    System administrator has told me to copy standard RFEBKA00 program and modify the OPEN-statement but I am not agree because I think that the problem is when generating the files in bank's system and/or sending the files to SAP by FTP.
    Does any body face a problem like this before? Any ideas?
    Thanks a lot

    Hello,
    The files that are available in AL11 are in Unicode.
    Can you convert them to text by using the following method and then try:
    You must have mapped this directory and having access.
    Right click on file
    Open with: Microsoft Office Word
    Then the pop-up comes: File conversion - bacs
    Select Other encoding radio button
    Then select "Unicode" from list
    and say OK
    Now the file is being opened in readable format:
    File SAVE as PLAIN TEXT
    Save the file in the same folder that you are referring to in AL11
    Now if you try with this .txt file, it should work in FF_5
    Thanks,
    Ravi

  • Problem with mapping the Entity beans onto database tables

    Hi,
    I got a problem with mapping the Entity beans onto database tables. Here are what I did:
    First Step:
    asant capture-schema
    Second Step:
    capture-schema -driver com.pointbase.jdbc.jdbcUniversalDriver -dburl jdbc:pointbase:server://localhost/sun-appserv-samples -username pbPublic -password pbpublic -table APPLICANT -table APPLICANTSKILL -table CUSTOMER -table LOCATION -table job -table JOBSKILL -table SKILL -out build/agency.dbschema
    The first step was fine. But, in the second step, I got the error message as follow:
    using dburl:jdbc:pointbase:server://localhost/sun-appserv-samples
    using username:pbPublic
    using password:pbpublic
    using driver:com.pointbase.jdbc.jdbcUniversalDriver
    using schemaname:null
    using output file:build/agency.dbschema
    JDO71100: Failed to find a class. Verify that the class is available on your CLASSPATH
    java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at com.sun.forte4j.modules.dbmodel.jdbcimpl.ConnectionProvider.<init>(Co
    nnectionProvider.java:38)
    at com.sun.jdo.api.persistence.mapping.ejb.CaptureSchema.main(CaptureSch
    ema.java:130)
    at com.sun.jdo.spi.persistence.support.ejb.util.CaptureSchemaWrapper.mai
    n(CaptureSchemaWrapper.java:29)
    Thanks for your help!

    You need to add the pbclient.jar or some similar name like that, in the CalssPath.

Maybe you are looking for

  • My iPod is full of unusual bugs. Any support would be great.

    Man, I pray I’m not as stupid as I look. Got my 160gb classic yesterday and have combed through the entire “feature guide” (Apple PDF download) and still have more bugs than a hornets nest. I own several other ipods as well as other Mac equipment and

  • Difference between mtl_system_items and mtl_system_items_b

    Hi All, Can anyone tell me the difference between mtl_system_items and mtl_system_items_b ? Regards, Shruti

  • Pop-Up Box not working with Coin-Slider

    I added a coin-slider box in the index page. I have a <div id="mypopup" that is no longer working after I added the coin-slider. Could you help me fix the popup box so both items work on the index page? Here is the link to the homepage... www.theram.

  • Help Needed On A Major None Rebooting System!!!

    After I updated my system (167 package ) I can't boot up my system again, I get lots and lots of error that flashes by on my screen, here is some of the error I was able to write down. /sbin/splash:  line 36: /lib/splash/cache/gensplash.log: Read-onl

  • Oracle Grid Control Reports

    I have a number of reports relating to capacity management which work great. I am being asked now to produce a single report for database growth - i.e a graph that shows the growth of all my db's for the month on one line graph. I can produce these p