Amount File Formatting in XSL mapping

Hi Guru(s):
I have an XSLT mapping within an File to BPM scenario. The Flat file has an amount field of 13 characters, and reads a value like 16.10, followed by trialing whitespace to fill out the 13 positions.
I am able to read this file properly with a file adapter (have content conversion), which I am mapping to a BPM input.
I have an XSLT mapping that trasnfrms the file output to the BPM input. After the transformation, sometimes, the <SignedAmount> attribute has a non-conforming output, something like: 1610.0000000000002
Is this a bug in XSLT. How can this be resolved.
BTW: I am using XI3.0 SP14.
XSLT Code snippet:
<SignedAmount>
<xsl:choose>
   <xsl:when test="DebitCreditIndicator[1]='D'">
    <xsl:value-of select="number(ChargeAmount[1] * '100')"/>
  </xsl:when>
  <xsl:otherwise>
    <xsl:value-of select="number(ChargeAmount[1] * '-1'  * '100')"/>
  </xsl:otherwise>
</xsl:choose>
</SignedAmount>
However, I get to see different behaviors for different nodes on the output.
In particular, note the second ISEG node:
- <ISEG>
  <SignedAmount>79</SignedAmount>
  </ISEG>
- <ISEG>
  <SignedAmount>1610.0000000000002</SignedAmount>
  </ISEG>
The Actual Output of the file adapter looks fine as below:
<Detail>
  <ChargeAmount>0.79</ChargeAmount>
</Detail>
<Detail>
  <ChargeAmount>16.10</ChargeAmount>
</Detail>
Thanks
Feroz

Why don't you try formating the number with XSL?
<xsl:template match="/">
<html>
<body>
<xsl:value-of select='format-number(500100, "#.00")' />
<br />
<xsl:value-of select='format-number(500100, "#.0")' />
<br />
<xsl:value-of select='format-number(500100, "###,###.00")' />
<br />
<xsl:value-of select='format-number(0.23456, "##%")' />
<br />
<xsl:value-of select='format-number(500100, "#######")' />
</body>
</html>
</xsl:template>
http://www.w3schools.com/xsl/func_formatnumber.asp

Similar Messages

  • Unknown file format when downloading map loader?!?...

    I downloaded nokia maps from the nokia website and then nokia map loader but for some reason a get a message on my n73 saying that the nokia map loader is an unknown file format...can anybody tell me what to do??

    I assume you're trying to install the map loader on your computer and not on your phone
    If you can't get map loader to work, you could try this map loader alternative: http://nokiamaps.moo.no . You don't need to install anything for that.
    symbian programs & themes, nokia maps for any browser on any operating system of your choice, and other tricks to tame symbian: http://symbian.site666.info

  • XSL-Maps: "Elements to Ignore Config File" broken

    Hi,
    We use Jdev Studio Edition 10.1.3.3.0 build 4157 in a SOA project.
    The JDev XSL mapper displays only simply xslt structures.
    Often, the xsl map generation fails after manually editing the code.
    This applies to 100% valid xsl, sometimes restarting JDev helps.
    According to:
    http://download.oracle.com/docs/cd/E11036_01/doc.1013/e10295/xslt_mpr.htm#CFAIBFFJ ,
    elements can be ignored to have JDev display a partial xsl map.
    However, that does not work as described in the documentation.
    Elements within <elements-to-ignore> still cause map generation to fail!
    How can we get JDev to ignore code parts it cannot display?

    Hi,
    Thanks for your reply. When I created extensions.xml (as advised by you) and tried specifying it as User Defined Extension Functions Config file, I get the following error:
    Invalid User Extension Functions Config File
    Invalid value 'object' for attribute:'as' line 5 column 52
    i.e. the following line:
    <function name="extensions:getMSPDate" as="object">
    Any pointers on what will be the correct value for attribute 'as' for element 'function'?
    Also, what is the default namespace being used in the extensions.xml?
    Is there a link for more documentation on the format for extensions.xml?

  • Unable to open xsl file in Jdev 10.1.3.4.0.4270 (XSL Map generation failed)

    Hi Guys,
    I am trying to edit an XSL file using Jdeveloper 10.1.3.4 and it gives me the error "XSL Map generation failed. Please use the source editor to correct the problems and return to the design editor".
    In the Mapper Message Log i find these lines.
    Line Number:(44) : Error: "xsl:import" XSL Element Currently not Supported
    Line Number:(68) : Error: "xsl:apply-templates" XSL Element Currently not Supported
    Line Number:(67) : Error: <xsl:template match="/"> and <xsl:template name="..."> are the only permitted <template> elements in the XSL
    Any help / pointers is very much appreciated.
    Regards,
    Vik

    Perhaps better late than never...
    This is a limitation in JDeveloper that it cannot render an XSL in design/mapper view when it contains these features of XSL. Pretty much 100% of AIA transformations fall into this category.

  • ABAP XSL mapping - Binary data of attached file

    I have a webservice which is converting attachment and putting it into XSLT Node. when I mapped this node to Attachment payload of my partner (using ABAP xsl mapping), I got an error.
    I was able to send the same file via SOAP UI...
    On further investigation of the http log files, I noticed that Binary data for both streams looked same, but when I did a word count, I noticed that SOAP UI was a single line file while my PI data was more than 400 lines.. so I coded a fn:transfer of this data to convert end of line character to empty value. it did seem to work...
    My question, is this approach correct? or is there any way to ensure binary data stream in XML node does not contain those additional characters?

    can you provide input xml
    Edited by: RajuGA on Dec 7, 2011 2:09 PM

  • XSL file formatting

    XSL file formatting
    Hi there.
    I have problem with this files xsl, the problem is the output for the field date and number:
    a) `2011-05-13T21:50:00` instead of `13/05/2001 21:50:00`
    b) `.00` instead of `0`This is the output in XML:
    <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
         <s:Schema id="RowsetSchema">
              <s:ElementType name="row" content="eltOnly" rs:CommandTimeout="30">
                   <s:AttributeType name="myDates" rs:number="6" rs:nullable="true" rs:writeunknown="true">
                        <s:datatype dt:type="dateTime" rs:dbtype="timestamp" dt:maxLength="16" rs:scale="0" rs:precision="19" rs:fixedlength="true"/>
                   </s:AttributeType>
                   <s:AttributeType name="Net" rs:number="29" rs:nullable="true" rs:writeunknown="true">
                        <s:datatype dt:type="number" rs:dbtype="numeric" dt:maxLength="19" rs:scale="2" rs:precision="10" rs:fixedlength="true"/>
                   </s:AttributeType>
                   <s:extends type="rs:rowbase"/>
              </s:ElementType>
         </s:Schema>
         <rs:data>
              <z:row myDates="2011-05-13T21:50:00" Net=".00" />
         </rs:data>
    </xml>This output XML is generate with ASP code and saved in the csv format:
    <!-- #include virtual="/_XML/adovbs.inc" -->
    <%
    filename = "titty.xml"
    Set xmlDoc = CreateObject("MSXML2.DOMDocument.4.0")
    Set xslDoc = CreateObject("MSXML2.DOMDocument.4.0")
    %>
    <%
    sql = "SELECT * FROM tbl_login"
    Set rs = objConn.Execute(sql)
    rs.Save xmlDoc, 1
    xmlDoc.Save Server.MapPath(filename)
    rs.Close
    Set rs = Nothing
    %>
    <%
    Set oDOM = CreateObject("MSXML2.DOMDocument.4.0")
    oDOM.async = False
    oDOM.Load Server.Mappath(filename)
    Set oXSL = CreateObject("MSXML2.DOMDocument.4.0")
    oXSL.async = False
    oXSL.Load Server.Mappath("Trasform_csv.xsl")
    strTransform = oDOM.transformNode(oXSL)
    Set fso = CreateObject("Scripting.FileSystemObject")
    strPath = Server.Mappath("testme.csv")
    Set file = fso.opentextfile(strPath, 2, True)
    file.write strTransform
    file.Close
    Set file = Nothing
    Set fso = Nothing
    Set oDOM = Nothing
    Set oXML = Nothing
    Set oXSL = Nothing
    %>The XSL file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
    xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
    xmlns:rs="urn:schemas-microsoft-com:rowset"
    xmlns:z="#RowsetSchema">
         <xsl:output omit-xml-declaration="yes"/>
         <xsl:template match="/">
              <!-- show a header by looking Schema element -->
              <xsl:for-each select="/xml/s:Schema/s:ElementType/s:AttributeType">
                   <xsl:value-of select="@name"/>
                   <xsl:choose>
                        <xsl:when test="position()!=last()">
                              <!-- xls -->
                             <xsl:text>     </xsl:text>
                             <!-- csv -->
                             <!--xsl:text>,</xsl:text-->
                        </xsl:when>
                        <xsl:otherwise>
                             <xsl:text>
    </xsl:text>
                        </xsl:otherwise>
                   </xsl:choose>
              </xsl:for-each>
              <!-- row data -->
              <xsl:for-each select="/xml/rs:data/z:row">
          <xsl:variable name="row" select="."/>
          <!-- for each column -->
                   <xsl:for-each select="/xml/s:Schema/s:ElementType/s:AttributeType">
                      <!-- display each column if it exists -->
                     <xsl:variable name="columnName" select="@name"/>
                        <!-- go through all columns and display something that matches-->
                        <xsl:value-of select="$row/@*[name()=$columnName]" />
                        <!--xsl:value-of select="translate($row/@*[name()=$columnName],'.',',')" /-->
                        <xsl:if test="position()!=last()">
                            <!-- xls -->
                             <xsl:text>     </xsl:text>
                             <!-- csv -->
                             <!--xsl:text>,</xsl:text-->
                        </xsl:if>
             </xsl:for-each>
                   <xsl:text>
    </xsl:text>
           </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>I need another output in the XML file:
    <z:row myDates="13/05/2001 21:50:00" Net="0.00" />And in the CSV file:
    13/05/2001 21:50:00, 0Can you help me?
    Thanks in advance.
    Cheers
    Edited by: user6317803 on Aug 30, 2011 1:31 PM
    Edited by: user6317803 on Aug 30, 2011 1:34 PM
    Edited by: user6317803 on Aug 30, 2011 1:36 PM

    Thanks for your answer, I use database MySQL.
    This is the solution in the ASP code:
    SELECT DATE_FORMAT(myDates, '%d/%m/%Y %H:%i:%s') myDates
             , REPLACE(NET,'.', ',') NETEdited by: user6317803 on Sep 1, 2011 9:09 AM
    Edited by: user6317803 on Sep 1, 2011 9:12 AM

  • File Adapter -- File Format (Mapping Error)

    Hi All, am using a file adapter to pick up file using content conversion , but i can see it happens to be mapping error, i have set all in right format but below one thing i cud not understand how to change, as shown bellow.
    Test XML format in mapping:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_DMS_FINAL xmlns:ns0="http://dms:scenario">
       <Record>
          <Row>
             <FirstName/>
          </Row>
       </Record>
    </ns0:MT_DMS_FINAL>
    actual XML picked up by Sender File Adapter:
      <?xml version="1.0" encoding="utf-8" ?>
      <ns:MT_DMS_FINAL xmlns:ns="http://dms:scenario">
      <Record>
      <Row>
      <FirstName>296501_000_00</FirstName>
      </Row>
      </Record>
      </ns:MT_DMS_FINAL>
    The difference between both is the "ns0" and "ns" , how to make it equal , which part is to be modified to make it equal, kindly revert back with solution.
    With regards
    Srinivas

    Hi ,
    Thx for replies , i followed as shown in above blog and went fine but there is mapping error as shown below,
    xml format after pick by sender file adapter
      <?xml version="1.0" encoding="utf-8" ?>
      <MT_DMS_FINAL>
      <Record>
      <Row>
      <FirstName>296501_000_00</FirstName>
      </Row>
      </Record>
      </MT_DMS_FINAL>
    xml file format from test tab in Message mapping
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_DMS_FINAL>
       <Record>
          <Row>
             <FirstName>296501_000_00</FirstName>
          </Row>
       </Record>
    </MT_DMS_FINAL>
    See above xml first statment is different , how to make it equal
    Help
    Srini

  • Convert amount from flat file format to user format

    hi,
    how to convert amount from flat file format to user specific format.
    input:  1000.00
    output: 1.000,00 (user specific)
    thanks in advance

    move that value to a type WRBTR variable
    and use write statement.
    data v_wrbtr type wrbtr.
    data v_char(20).
    v_wrbtr = 1000.
    write v_wrbtr to v_char.
    v_char will contain the amount in user format.
    Prerequsite, go to SU3 transaction.
    Defaults tab, chose the decimal notation .
    Regards,
    Ravi

  • What file formats should I use for maps?

    I've come to the IL forum simply because of the number of file formats IL will process.  My question however is more generic to file formats.
    I work with a large local county government (just as a citizen) and one of the projects we're working on is to get a full suite of maps (and other GIS output) for distribution.  Although they will be made available online, the intent is to print/plot.
    For some maps, we'll want to have the capability to add vector graphics (ovals, rectangles, text, arrows) for highlighting.
    The intent is for the county to provide machine readable GIS output so that we can do our own printing (via Kinkos for example).  We'll also be putting the maps online although only for simple viewing and downloads.
    What file format(s) should I ask to have the map sets in?
    Because I'm a novice when it comes to understand which format to ask for I've done some homework on jpg, tiff, gif, etc.  I think IL will take in any of them and that's where any vector graphics would be added (for print destined output).  I also have FW which could be used for web destined output if needed.
    What is most important is the quality of the printed output so I'm assuming dpi is going to be important.  I'm also assuming that we'll ask for the output to be intended for a rather large plot (e.g. 36" x 48" or perhaps even larger) even though we may not actually produce a map of that size.  For what I've learned on this and other Adobe forums, no matter what file size and format we get, printing to larger paper will eventually lose visible resolution thus the intent to start with the largest we'd ever print.  We might have circumstances where we would crop but again understand what can happen when blowing those up.
    One option, of course, is to have the county produce PDFs.  Is that a good idea for our purpose meaning do we lose anything to have the file format generally acceptable?  I'm assuming somewhere along the process we'll need to produce pdfs for downloads but that may not be the best format to get from the GIS output.
    Keep in mind that we don't have GIS software at present.  In the future we may move to using a GIS viewer which would mean we would have file generation capabilities, but for now, we're going to have to handle non-gis output files.
    I'm not even sure I'm asking the question well so feel free to educate me along the way.  I'm interested in learning.
    Tom

    (pricy)  I know that may sound strange given having CS2,
    Yep. Sure does. Plus:
    So in comparing prices, be sure to include the costs of the third-party plug-in route, such as MAPublisher (and the associated headaches of mission-critical dependence upon third-party add-ons in general).
    Since IL can take in pdfs and can add vector markup
    Working with PDFs is pretty much universal these days, for practical purposes.
    Understand this about PDFs and Illustrator: Illustrator's Save As...PDF dialog provides an option for "Preserve Illustrator Editing Capabilities." Selecting that option actually embeds in the resulting file a full duplication of the file as native Illustrator objects. That results in very bloated PDF file sizes--because they contain two full copies of the file.
    That's not what you want to do for PDFs that will be distributed/downloaded. So you're going to want to keep your AI-native files separate anyway. Opening a PDF that was saved without that option turned on in Illustrator is pretty much the same thing as opening it other mainstream drawing progams. So the "seamlessness" of PDF/Illustrator is really much about marketing.
    But no matter. Your mind is already made up to use AI for this. If it were me, I'd be exploring all options.
    JET

  • Process to map payment data in soft file format into SAP ISU

    Hi Experts,
    I am preparing TO BE documentation for a power sector client. Currently payment is received in soft file format through below medium -
    ·       Internet Payment Via payment gateway Bill desk.
    ·       Payment using ATM Machines
    ·       Payment Thru Easy Bill Pay option.
    Than currently data is downloaded (CCR for internet, ATM) and entries are posted in cash book.
    Can someone help me what process will be used to upload the data in SAP-ISU system and also post the payment in customer account.
    Thanks in advance,

    Hi,
    You need to develop a customised program to upload the file in a SAP acceptable format and then call SAP standard program RFKKZE00 to process the same, create payment lots and post the amount into customer account.
    You need to perform validation and checks against the file format of the file that you ar uploading.
    Once the file passes the checks, it is reformatted to a file which is accepted by the SAP standard program RFKKZE00.
    A file in the SAP accpted format will have-
    One file header record (BFKKZGR00 structure) per file
    One payment lot header (BFKKZK structure)
    Any number of items (structure BFKKZP)
    You can include data for any number of lots in a file. However, you have to ensure that you always specify the lot header first and then the related line items.
    After you have created reformatted file, then perform a check to ensure that the source file and the reformatted file has the same date and no data has been missed.
    Call the SAP standard program RFKKZE00 (T.code-FPB3) to process the reformatted file.
    You can goto t.code -SLG1 to check for any errors\messages.
    Hope it helps......
    Thanks,
    Amlan

  • Help! Urgent !- Mapping error - XML file format ?

    Hello,
    I can't load this xml file (by http adapter):
    <?xml version="1.0" encoding="UTF-8"?>
    <ZVG_GetOrderList_requ>
    <Orders>
        <Order MessageType="GETORDERLIST" DecimalSeparator="POINT" Currency="EUR">
            <CustomerCode type="AG">0330029839</CustomerCode>
            <Plant>1141</Plant>
            <SalesOrganisation>1141</SalesOrganisation>
            <DocType>1</DocType>
            <DistributionChannel>01</DistributionChannel>
            <Division>99</Division>
            <BeginDate>20040926</BeginDate>
            <EndDate>20041026</EndDate>
            <TransactionGroup>0</TransactionGroup>
            <CustomerOrderNumber />
            <ERPOrderNumber />
        </Order>
    </Orders>
    </ZVG_GetOrderList_requ>
    is there any problem in this file ?
    The message mapping seem to be correct
    do we have to add some tags in the file ?
    Thanks for your help
    Message was edited by: Fabrice Petetin
    Message was edited by: Fabrice Petetin

    I obtain the following error message :
      <?xml version="1.0" encoding="iso-8859-1" ?>
    - <Top>
      <First>BeginTrace</First>
      <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
      <Trace level="2" type="T">......attachment XI_Context not found</Trace>
      <Trace level="1" type="T">Interface Mapping http://ZVGEPOWER_TRANSACTIONS ZVG_GetOrderList</Trace>
      <Trace level="3" type="T">Object ID of Interface Mapping A6AE36BEA38F36198AF80ECE75E2F905</Trace>
      <Trace level="3" type="T">Version ID of Interface Mapping 1AADFDF03E2611D9CF65DA19C0A82AA1</Trace>
      <Trace level="3" type="T">Mapping Steps 1 JAVA com/sap/xi/tf/_ZVG_GetOrderList_request_</Trace>
      <Trace level="2" type="T">Mode 3</Trace>
      <Trace level="3" type="T">Creating Java mapping com/sap/xi/tf/_ZVG_GetOrderList_request_.</Trace>
      <Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._ZVG_GetOrderList_request_</Trace>
      <Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>
      <Trace level="3" type="T">Document start</Trace>
      <Trace level="3" type="T">Start tag [ns0:BAPI_SALESORDER_GETLIST]</Trace>
      <Trace level="3" type="T">Add raw attribute [ xmlns:ns0="urn:sap-com:document:sap:rfc:functions"]</Trace>
      <Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>
      <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_ZVG_GetOrderList_request_</Trace>
      <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BAPI_SALESORDER_GETLIST/CUSTOMER_NUMBER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:296) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:68) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:236) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:63) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor468.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy22.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</Trace>
      <Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_ZVG_GetOrderList_request_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BAPI_SALESORDER_GETLIST/CUSTOMER_NUMBER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd</Trace>
      <Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_ZVG_GetOrderList_request_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BAPI_SALESORDER_GETLIST/CUSTOMER_NUMBER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:72) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor468.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy22.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BAPI_SALESORDER_GETLIST/CUSTOMER_NUMBER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:296) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:68) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:236) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:63) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor468.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy22.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Top>

  • ** How to use TO_DATE function in Stored Proc. for JDBC in ABAP-XSL mapping

    Hi friends,
    I use ABAP-XSL mapping to insert records in Oracle table. My Sender is File and receiver is JDBC. We use Oracle 10g database. All fields in table are VARCHAR2 except one field; this is having type 'DATE'.
    I use Stored procedure to update the records in table. I have converted my string into date using the Oracle TO_DATE function. But, when I use this format, it throws an error in the Receiver CC. (But, the message is processed successfully in SXMB_MONI).
    The input format I formed like below:
    <X_EMP_START_DT hasQuot="No" isInput="1" type="DATE">
    Value in Payload is like below.
    <X_EMP_START_DT hasQuot="No" isInput="1" type="DATE">TO_DATE('18-11-1991','DD-MM-YYYY')</X_EMP_START_DT>
    Error in CC comes as below:
    Error processing request in sax parser: Error when executing statement for table/stored proc. 'SP_EMP_DETAILS' (structure 'STATEMENT'): java.lang.NumberFormatException: For input string: "TO_DATE('18"
    Friends, I have tried, but unable to find the correct solution to insert.
    Kindly help me to solve this issue.
    Kind Regards,
    Jegathees P.
    (But, the same is working fine if we use direct method in ABAP-XSL ie. not thru Stored Procedure)

    Hi Sinha,
    Thanks for your reply.
    I used the syntax
    <xsl:call-template name="date:format-date">
       <xsl:with-param name="date-time" select="string" />
       <xsl:with-param name="pattern" select="string" />
    </xsl:call-template>
    in my Abap XSL.  But, its not working correctly. The problem is 'href' function to import "date.xsl" in my XSLT is not able to do that. The system throws an error. Moreover, it is not able to write the command 'extension-element-prefixes' in my <xsl:stylesheet namespace>
    May be I am not able to understand how to use this.
    Anyway, I solved this problem by handling date conversion inside Oracle Stored Procedure. Now, its working fine.
    Thank you.

  • Problem in XSL mapping with leading zero's

    Hi ,
    i am facing a problem in disigning a XSL mapping where one of the source field (type string ) ,and I need to remove the leading zero's to map it to target.
    we have format-numer ,but It is not working in this case ,may be because of type string.
    and the replace command is not supported .
    So can any one suggest me some way to resolve this xsl problem.
    Thanks,
    Raju.

    I write an example
    xsl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <xsl:template match="/">
              <doc>
                   <xsl:apply-templates/>
              </doc>
         </xsl:template>
         <xsl:template match="source_field">
              <source_field>
                   <xsl:call-template name="remove_leading_zeros">
                        <xsl:with-param name="value" select="."/>
                   </xsl:call-template>
              </source_field>
         </xsl:template>
         <xsl:template name="remove_leading_zeros">
              <xsl:param name="value"/>
              <xsl:choose>
                   <xsl:when test="starts-with($value, '0')">
                        <xsl:call-template name="remove_leading_zeros">
                             <xsl:with-param name="value" select="substring($value, 2)"/>
                        </xsl:call-template>
                   </xsl:when>
                   <xsl:otherwise>
                        <xsl:value-of select="$value"/>
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
    </xsl:stylesheet>
    to test:
    input xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <doc>
    <source_field>000000123456</source_field>
    <source_field>0987654</source_field>
    </doc>
    output xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <doc xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <source_field>123456</source_field>
         <source_field>987654</source_field>
    </doc>
    hope can help you.
    regards
    Bin

  • Lockbox File Format in Europe

    Hi,
    We are in planning to implement Lockbox functionality for auto cash application in our European company codes. I have few questions:
    1)What file formats can SAP read other than BAI2  format.We are using standard SAP program  RFEBLB00 (Transaction FLB2) to read a BAI2 file for our US company codes and they work fine.
    2)Ours is Bank of America and they are unable to provide BAI2 format? Has anybody faced this kind  of situation where Bank can't provide BAI2 format for Europe transactions? What are the alternatives?
    Thanks in Advance.
    Rakesh

    Currently, only BAI and BAI2 file formats are supported by SAP.  It includes
    the following:
    BAI Record Format:  Specify the length of the document numbers (10 in
    the standard SAP System) and the number of document numbers in record types 6
    and 4 of the BAI file. Your bank must agree on this format information.
    BAI2 Record Format: It is not necessary to specify the length of the
    document or the number of document numbers in record types 6 and 4. This is
    because BAI2 file is designed that each document number is on a different record
    type 4 with its corresponding payment and deduction amounts.  Your bank must
    agree on this format information.
    NOTE:  while the BAI and BAI2 formats are supposedly standard, experience
    has shown that they can vary by bank and many SAP clients have contracted for a
    customized format.  The format received will need to be mapped to reconcile with
    the SAP delivered data dictionary layout (Tables FLB01, FLB05, FLB06, etc.) to
    ensure proper processing.  If the format does not reconcile and the user does
    not want to have the bank change the format, SAP recommends that a user-written
    ABAP be used to reformat the file or alternatively the SAP data dictionary can
    be modified (this is a repair that will need to be re-applied in future
    releases).
    Batch Input Sessions [Posting Functions]:  Specify which postings the
    system creates (general ledger cash postings and/or customer cash
    application).  It is recommended that both choices are selected if you are using
    the general ledger and accounts receivable modules.  For the general ledger you
    can decide whether to post one aggregate amount to the incoming cash account or
    one line per check. This depends on your reconciliation with the bank.  In
    addition, you can choose to create and name a batch input session to insert any
    missing or new customer bank details into the customer master records  (this can
    only be done if the system identifies a valid document number).
    Important Note: The lockbox  program first attempts to identify the customer
    with unique bank information in the customer master record matching to MICR
    information on the check, so maintenance of unique customer MICR information is
    important to ensure success.  If there is more that one customer with the same
    MICR bank and account, then the program cannot apply the check to an
    account.  This situation usually means that either the same customer has been
    set up twice, or maybe what should have been only Ship-to or Sold-to customers
    for the same Payer have actually been set up as separate Payers. Alternatively,
    it may be necessary to set up a relationship where one customer is identified as
    the main Payer and has MICR info, and the related customers do not have MICR
    info but instead have the main Payers customer number in the Alternate Payer
    field of the customer master record.
    The payment information provided in the bank data file will create a payment
    advice per check.  This payment advice will be used by the lockbox procedure to
    clear subledger open items.  For more information on payment advices, please
    read accounts receivable/accounts payable Payment Advice Notes in the IMG or
    On-Line Help

  • Flash 'Unexpected File Format' Save corruption

    Hello.
    We recently upgraded to Windows 7 64Bit from Windows XP here at work, and since the upgrade i've discovered a very scary issue with Flash.
    When going to save one of my large projects, often Adobe simply crashes outright, freezing up and displaying a standard error message.
    "Adobe Flash CS5 has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." - with an option for "Close program"
    I hit close program, and Flash disappears. If I try and open that same FLA file again, I get the error message
    "Unexpected File Format"
    Unfortunately it seems since Flash is crashing in the middle of saving, it is corrupting my FLA file. This is extremely worrying, since it corrupts my entire source file.
    I'm lucky I keep regular backups, otherwise I could have lost months of work instead of just todays. In the meantime I have been copying and pasting a new version of the file each time I open Flash, but it's a crapshoot whether next time I save if it will kill it or not.  
    Here's the details of my computer:
    OS: Windows 7 - Recently upgraded from 32bit Windows XP
    64 Bit Intel Xeon X5560 @ 2.80 Ghz
    4GB Ram
    The Flash CS5 version is 11.0.0.485
    The FLA in question is 10MB, and contains some large map files (gifs), lots of small JPG's as well as a fair chunk of code as well as importing of external classes. I've tried replicating the issue on smaller files, and haven't been able to do so.
    I was wondering if it was a case of not enough memory, but Flash appears to use around 450 mbs. About 40% of my total memory is free, according to the Task Manager performance.
    Any ideas what could fix this issue?

    Hello Sukhi12,
    I just read your reply and I can't believe that Adobe is taking a stand like this!
    Are you seriously (no really, SERIOUSLY?!?) telling us that Flash is not designed to save files over a network?!?!?
    I am really upset by the fact that Flash is such a badly designed product and I'm even more upset by the fact that appearently Adobe doesn't give a ***** about it!
    Are you aware that in the modern world EVERY company has a policy to save files over a network? For most developers it's not a choice of saving locally, it's just not an option. We are forced to use networkdrives, and if I may say so, I totally agree we should! Come on Adobe, this is 2011 you know! And saying in your technote (from 2009!) that we just have to use a third-party version control system is totally rediculous!
    A few things that I like to say about this matter:
    1) I have been using Flash for about 10 years now. I have been using a network drive most of this time and I never (really, never!) experienced corrupt files while saving. Even with flash 5 there was no problem at all! So something changed with Flash CS5 and Flash CS5.5 and Adobe is too lazy to admit it. Very bad....
    2) Why is it that software like Photoshop is able to save over a network without any problems? Why is a PSD-file so much different from a FLA-file? Surely Adobe must have people on the payroll that are perfectly able to code software that can save over a network? Photoshop proves it's possible, doesn't it?
    3) I told you in the beginning of this forumpost that I'm saving my files over a network. Why didn't you show us the technote at that point? Why did you ask me to send you sourcefiles first? Is there some boss that told you to get rid of those nasty questions, or something?
    4) I'm really surprised that the technote says that Flash IDE is not "designed" to function across LANs. Why is this not mentioned on the Flash Product Page where you want us to pay $699 for this product? I would really like to know this as a new customer! Something in the features like: "Beware, unlike other software, Flash Professional is NOT ABLE to save your files across LANs. If you try to save, flash will most definately corrupt your files beyond repair".
    5) As you can see, I am really upset about this and especially about the attitude Adobe is displaying about this. I'm am surely going to twitter this to everyone I know and start a good amount of posts in the Flash Community about this.You really can't do this, Adobe.
    You might not suspect this, but I am actually a big fan of Flash, as I suspect most of you are. I like to think that I support Flash despite the fact that Apple is pissing all over it lately. I defend it to people by saying it's a wonderfull product that does wonderfull things. I am very dissapointed that Adobe is letting us down like this.
    Please answer these question for us. I'm sure the Flashcommunity is dying to know what's going on here!
    And also, please ask your developers to fix this annoying problem. I'm sure it's not impossible....
    Regards,
    Sander

Maybe you are looking for

  • How can I difference the diference the diferent generations of time capsule

    Hi, I want to buy the Time Capsule, but first I want to know how can I know how to diference the diferent generations of time capsules before buying, to buy the latest one.

  • 2 Devices in Fatal1ty

    Hey, is it anyhow possible to connect 2 devices to sound card? (only fatalty pro) I mean repro + headset

  • Ipad image burn in

    iPad at 1 1/2 years, diminished enjoyment and privacy concerns. I brought my iPad2 to an apple store and showed them just how bad my screen retention problem was. You can easily read the last url off the background when safari is closed. They, i spok

  • Bind dataset in a chart

    Hello, I want just load some data from database and show it in a javafx chart. Since it's not possible to instantiate a javafx app and pass some values like a dataset, it must be possible to bind the data. An example would be great!

  • How to sync .mp3 Lecture files into iPhone?

    I cannot seem to find an answer to this on the forum. I have several ~50min audio lecture files (in .mp3) that I would like to have on my iPhone to listen while walking. Each file is around ~10MB. I have enough space. I added them to iTunes, however