Format Definition - Mapping Methods

Hello,
I have problem in Format Definition addon with mapping methods "count(path)" and "sum(path)" (Node Set Functions). I don't know how to use them.
I need to sum some ammounts in transaction records, so I wanted to use mapping function "sum", but I'm not able to discover way how it works - what I have to write as "path"? For example sum(%ammount) or count(%ammount) where %ammount is reference no. of standard field or standard segment or segment group doesn't work. And I haven't found any information about these functions on SAP's web and in existing format defs.
Some advice, please?
Thanks, Roman

Hello Hendri,
I'm working on GEMINI bank format.
This format doesn't contain header or trailer and what is worse, it doesn't contain ending balance. I want to compute it from starting balance and debit and credit ammounts from transactions. I thought that I can use "sum" function, but I'm not able to discover how.
Btw. In other bank formats I haven't need it too. I've also looked to existing bank formats from SAP but in any I haven't found neither "sum" nor "count".
Regards, Roman

Similar Messages

  • Regular expressions in Format Definition add-on

    Hello experts,
    I have a question about regular expressions. I am a newbie in regular expressions and I could use some help on this one. I tried some 6 hours, but I can't get solve it myself.
    Summary of my problem:
    In SAP Business One (patch level 42) it is possible to use bank statement processing. A file (full of regular expressions) is to be selected, so it can match certain criteria to the bank statement file. The bank statement file consists of a certain pattern (look at the attached code snippet).
    :61:071222D208,00N026
    :86:P  12345678BELASTINGDIENST       F8R03782497                $GH
    $0000009                         BETALINGSKENM. 123456789123456
    0 1234567891234560                                            
    :61:071225C758,70N078
    :86:0116664495 REGULA B.V. HELPMESTRAAT 243 B 5371 AM HARDCITY HARD
    CITY 48772-54314                                                  
    :61:071225C425,05N078
    :86:0329883585 J. MANSSHOT PATTRIOTISLAND 38 1996 PT HELMEN BIJBETA
    LING VOOR RELOOP RMP1 SET ORDERNR* 69866 / SPOEDIG LEVEREN    
    :61:071225C850,00N078
    :86:0105327212 POSE TELEFOONSTRAAT 43 6448 SL S-ROTTERDAM MIJN OR
    DERNR. 53846 REF. MAIL 21-02
    - I am in search of the right type of regular expression that is used by the Format Definition add-on (javascript, .NET, perl, JAVA, python, etc.)
    Besides that I need the regular expressions below, so the Format Definition will match the right lines from my bankfile.
    - a regular expression that selects lines starting with :61: and line :86: including next lines (if available), so in fact it has to select everything from :86: till :61: again.
    - a regular expression that selects the bank account number (position 5-14) from lines starting with :86:
    - a regular expression that selects all other info from lines starting with :86: (and following if any), so all positions that follow after the bank account number
    I am looking forward to the right solutions, I can give more info if you need any.

    Hello Hendri,
    Q1:I am in search of the right type of regular expression that is used by the Format Definition add-on (javascript, .NET, perl, JAVA, pythonetc.)
    Answer: Format Definition uses .Net regular expression.
    You may refer the following examples. If necessary, I can send you a guide about how to use regular expression in Format Defnition. Thanks.
    Example 6
    Description:
    To match a field with an optional field in front. For example, u201C:61:0711211121C216,08N051NONREFu201D or u201C:61:071121C216,08N051NONREFu201D, which comprises of a record identification u201C:61:u201D, a date in the form of YYMMDD, anther optional date MMDD, one or two characters to signify the direction of money flow, a numeric amount value and some other information. The target to be matched is the numeric amount value.
    Regular expression:
    (?<=:61:\d(\d)?[a-zA-Z]{1,2})((\d(,\d*)?)|(,\d))
    Text:
    :61:0711211121C216,08N051NONREF
    Matches:
    1
    Tips:
    1.     All the fields in front of the target field are described in the look behind assertion embraced by (?<= and ). Especially, the optional field is embraced by parentheses and then a u201C?u201D  (question mark). The sub expression for amount is copied from example 1. You can compose your own regular expression for such cases in the form of (?<=REGEX_FOR_FIELDS_IN_FRONT)(REGEX_FOR_TARGET_FIELD), in which REGEX_FOR_FIELDS_IN_FRONT and REGEX_FOR_TARGET_FIELD are respectively the regular expression for the fields in front and the target field. Keep the parentheses therein.
    Example 7
    Description:
    Find all numbers in the free text description, which are possibly document identifications, e.g. for invoices
    Regular expression:
    (?<=\b)(?<!\.)\d+(?=\b)(?!\.)
    Text:
    :86:GIRO  6890316
    ENERGETICA NATURA BENELU
    AFRIKAWEG 14
    HULST
    3187-A1176
    TRANSACTIEDATUM* 03-07-2007
    Matches:
    6
    Tips:
    1.     The regular expression given finds all digits between word boundaries except those with a prior dot or following dot; u201C.u201D (dot) is escaped as \.
    2.     It may find out some inaccurate matches, like the date in text. If you want to exclude u201C-u201D (hyphen) as prior or following character, resemble the case for u201C.u201D (dot), the regular expression becomes (?<=\b)(?<!\.)(?<!-)\d+(?=\b)(?!\.)(?!-). The matches will be:
    :86:GIRO  6890316
    ENERGETICA NATURA BENELU
    AFRIKAWEG 14
    HULST
    3187-A1176
    TRANSACTIEDATUM* 03-07-2007
    You may lose some real values like u201C3187u201D before the u201C-u201D.
    Example 8
    Description:
    Find BP account number in 9 digits with a prior u201CPu201D or u201C0u201D in the first position of free text description
    Regular expression:
    (?<=^(P|0))\d
    Text:
    0000006681 FORTIS ASR BETALINGSCENTRUM BV
    Matches:
    1
    Tips:
    1.     Use positive look behind assertion (?<=PRIOR_KEYWORD) to express the prior keyword.
    2.     u201C^u201D stands for that match starts from the beginning of the text. If the text includes the record identification, you may include it also in the look behind assertion. For example,
    :86:0000006681 FORTIS ASR BETALINGSCENTRUM BV
    The regular expression becomes
    (?<=:86:(P|0))\d
    Example 9
    Description:
    Following example 8, to find the possible BP name after BP account number, which is composed of letter, dot or space.
    Regular expression:
    (?<=^(P|0)\d)[a-zA-Z. ]*
    Text:
    0000006681 FORTIS ASR BETALINGSCENTRUM BV
    Matches:
    1
    Tips:
    1.     In this case, put BP account number regular expression into the look behind assertion.
    Example 10
    Description:
    Find the possible document identifications in a sub-record of :86: record. Sub-record is like u201C?00u201D, u201C?10u201D etc.  A possible document identification sub-record is made up of the following parts:
    u2022     keyword u201CREu201D, u201CRGu201D, u201CRu201D, u201CINVu201D, u201CNRu201D, u201CNOu201D, u201CRECHNu201D or u201CRECHNUNGu201D, and
    u2022     an optional group made up of following:
         a separator of either a dot, hyphen or slash, and
         an optional space, and
         an optional string starting with keyword u201CNRu201D or u201CNOu201D followed by a separator of either a dot, hyphen or slash, and
         an optional space
    u2022     and finally document identification in digits
    Regular expression:
    (?<=\?\d(RE|RG|R|INV|NR|NO|RECHN|RECHNUNG)((\.|-|/)\s?((NR|NO)(\.|-|/))?\s?)?)\d+
    Kind Regards
    -Yatsea

  • How can I print File Format definitions?

    We have multiple text and spreadsheet input files we use to load data to our DW.  Is there a way I can print the format definitions for the the text and spreadsheet files?
    I've used the Auto documentation feature for work flows and data flows, but don't see an option for the print the File Formats (very well could be user error!).
    Thanks for any insight...
    Dan

    You can view the file format in the Auto Documentation page but don't see a button to print it out.  Is this what you are looking for? ...
    May print the web page in browser  

  • Format Definition

    Hello Experts,
    I dont know about Format Definition Add-on that what is the exactly use of this.
    why use this add-on  And what is the functionality ?
    Thanks & Regards
    M.S.Niranjan

    Hi Manvendra,
    Once you have bank statement processing installed you can import bank statements. If the format that your bank is using is not included in the standard SAP offerings you can use the FD add-on to create your own plug-ins.
    At this time FD is only to design bank statement formats.
    Please see the available documentation in the [DRC|https://service.sap.com/smb/sbo/documentation].
    All the best,
    Kerstin

  • JSP - duplicate definition of method

    Hello all Java Gurus: I am kind of new to java, and am having issue with an application. When I compile an application, I get an error "duplicate definition of method" in few of the jsp pages. This is because the include pages are getting duplicated.
    Any way to get around it?
    Thanks for your time

    If you declare the methods static, then you don't need to instantiate a class to call the method.
    But I wouldn't worry. Instantiating classes is cheap, though Database connections would be expensive. They should be served from a JNDI datasource.
    That I instantiate the class once, and the object is available across multiple jsp pages.....You could always define the bean as application scoped attribute, available to all resources.
    It depends - what do the methods do? Are they completely independant of the object? Then make them static.
    If not, then you need to instantiate it, and keep in mind what the scope of the variable needs to be for threading purposes.
    Cheers,
    evnafets

  • How to copy FDM setting (import format, dimension mapping, control table)

    Dear All,
    How to copy FDM setting (import format, dimension mapping, control table) from application to another application.
    I found that only dimension mapping can be imported. Is there any way to copy FDM application quickly?
    Thanks your help

    If you get a chance try the following script, it's so simple and easy to extract all the map data to XML and will help in to import back through Import script.
    Sub MapExtractor()
    'UpStream WebLink Custom Script:
    'Created By:      SatyaK
    'Date Created:      12/08/09
    'Purpose: This Script will produce a Account Map File for
    '                         the current location.
    'Execute the export
    strFilePath = API.IntBlockMgr.InterfaceMgr.fExportMapToXML("File Path", PPOVPeriod)
    End Sub
    -------------

  • Maintain Format for Mapping

    Hi CRM Gurus,
    Can anybody tell the transaction code for Maintain format for Mapping in ELM I am working on CRM2007
    Thanks in Advance
    Chandra

    Hi Chandra,
    IN case of SAP CRM 2007, the transaction for Mapping format is 'BSP_CRMD_MKTLIST_map' but it doesnot work on GUI anymore. ATleast in my case i was not able to save the Mapping format on GUI.
    On UI you can successfully create the Mapping Format with Marketing Professional Role. This Mapping Format wil exists in MARKETING TAB.
    Hope this helps in getting the successful configuration.
    VS

  • Standardise definition & selection method for ALL third party plugin presets!!!

    Over at LogicProHelp there is a very useful topic relating to Logic presets - in which many users have spent time saving individual third party plugin settings as LOGIC presets... which is enormously helpful when selecting instruments etc because they can be selected using a keystroke etc and found within the Logic Library browser window - which is of course searchable!
    These presets have then been uploaded to the forum for others to download.
    http://www.logicprohelp.com/viewtopic.php?p=367267#367267
    I posted on the topic recently and thought it worth mentioning over here on the Apple forum.
    Here's what I said - does anyone agree/disagree? Is this something that Apple should work on? For me it's a no brainer but I'd like to know what others think....
    "MO 3rd party instruments that rely on mouse-clicks or anything more than one button press to change a preset are incredibly badly designed. It's massively frustrating and impedes creative flow to have to use a mouse, or press several keyboard buttons just to move from one sound to another. Native Instruments interfaces are amongst the worst offenders - you even have to MANUALLY specify what presets you want to use with specific MIDI Program Change messages - because the latter are the only way I know of using anything other than the NI interface to change sounds in their plugins.
    The Logic Channel Strip settings saved along with 3rd party Plugin settings saved as Logic Presets have proved a recent revelation for me.
    Now I can change instrument presets using a keystroke, a midi message, almost anything I want.
    And then there's the Logic Library browser - now that so many sounds are saved as Logic Presets, the Logic browser window has become really powerful - being able to search my entire library for "bass" or a particular instrument name - REGARDLESS of which third party plugin is required to play the sound - IT JUST LOADS AND PLAYS!
    Maybe I'm in the minority but I think of a sound I want first, NOT which instrument I should load and then browse through - the latter is kind of backwards for me.
    I really think that we users should pressure Apple and plugin developers to provide Logic (and indeed other DAWs) presets with ALL of their products because the amount of effort on their part is minimal compared with countless end-users doing this task manually over and over. The current situation is ridiculous.
    DAWs are incredibly powerful these days but the lack of a plugin preset/sound library definition standard is quite crippling to work flow.
    I mean if there were a STANDARD LIBRARY DEFINITION such as with Native Instrument libraries or Apple loops where sounds are defined universally and supplied as such in a common preset it would revolutionise sound discovery/selection within DAWs.
    Kind of like a document management system that applies to ALL plugins, by ALL developers and the installer for a plugin would then add all its presets to the management system/common library"

    Sid Merrett wrote:
    Can you give me an example of a plugin that doesn't work with the Logic save preset function?
    Sure, I could give you lists of plugins for each of those particular scenarios I addressed.
    In that specific case, for one example, Spectrasonics instruments for a few years did not support the hosts' save/recall settings function (at least in Logic), and when contacting them and asking why Stylus RMX could not recall settings saved via Logic's preset system I was given the explanation that it wasn't supported for technical reasons.Basically, it only save/recalled a small handful of settings, the rest were lost, meaning it was impossible for quite some time to use the Logic's save/load settings feature to save user presets, you had to use the plugin's own internal save features. (Yes, the instrument's state was saved in the song, but *wasn't* able to be saved via the preset handling, for technical reasons).
    A year or so later, and later Logic versions, they finally got round to making it work as the varioous parts of the host and instruments were upgraded to handle larger data requirements. Spectrasonics instruments are examples of instruments with very specific, custom browser features, many of which you lose if you save data using Logic's functionality - not to mention the effort of saving, naming and organising 8000+ patches per instrument. Plus you have many levels of data - you often load a loop into a part, and a part into a group of parts, and they are different types of data. The hosts save/load feature only saves the state of the plugin - it can't be used to load Loop 14 into part 2, for example. It's the whole plugin, or nothing. More workarounds in terms of how you organise your loading/saving of different types of data.
    There are other instruments too, and ones I've beta tested where I've got into the technical details and had to have the preset format changed or simplified because hosts had difficulties storing the data correctly. It's quite a complex thing, in the main, and different instruments implentation of preset handling mean that the whole thing is full of workarounds, compromises, or plain failure to use the feature completely.
    Other instruments, such as Minimonsta, lose functionality when saving via the host - for example, you only get the meta patches and patch morphing functions when saving via the plugin's own file format, and that stuff doesn't happen when saving via the host.
    I could go on and on about this - every develop has different requirements and they mostly all either do it very basically and rely on the host, or bypass the hosts save/load functionality and implement their own which they can be in control of and that will work across hosts and across platforms. For instance, there is little point having a beautifully organised Oddity library if all those sounds are now unavailable to me if I choose to work in Live...
    That's why the whole preset thing is a complicated mess and isn't liable to be sorted soon.
    There is a developer over on the PC trying to make a system to unify this stuff between plugins - it's PC only right now, and I forget the details this second, but it's acknowledgement that people recognise this whole thing is a mess and looking at ways to improve the situation.
    Sid Merrett wrote:
    I hadn't spotted that - thanks. You can't use the Logic Library window to search for Plugin Settings, only Channel Strip Settings.
    You *can* use it to search for plugin presets, but only within the context of a single plugin. Ie, if I select the ES2, I can see, and search, the ES2 plugin settings. But often I want "a bass sound", I don't necessarily know that I was an "ES2 bass sound", or a "Minimonsta bass sound" or whatever.
    The point being, I just want a sound that will work, and I don't know where it will come from. Forcing me to choose and instrument first can be counter productive. How many times have you needed a sound, and you go "Ok, there might be something in pluginX that'll work?" - you load up pluginX, flip through the sounds, don't find anything useful, then go "Ok, let's try pluginY", no... pluginZ etc etc
    I miss Soundiver in many ways. *Ideally*, I'd like one central method of storing my presets which will work cross-plugin, cross-host, cross-format and cross-platform that is a standard that all developers and hosts support, and that offers the main core features that developers need, from simple, single patches with names, up to full meta data, cataloging, organising, author and notes tagging and so on. You can still give the users a choice to use the individual plugin and individual plugin's gui for patch selection, but you can get far more standardised if you want, with the advantages that gives - and you don't have to export patches into the system, as it's developer supported, all presets for your instruments would be instantly available in the library, just as they are in the instrument directly.
    But it's difficult to get developers to agree on much, these days - the most likely thing to happen is someone somewhere creates a cross-platform standard for this that gains momentum and that developers and hosts want, or *need* to support.

  • Payment Wizard Results.rpt within EFM Format Definition add-on

    Does anyone know if there is a way of getting to the 'payment wizard results' crystal report that is imported into the 'Bank Payment file format'?
    I would like to do the following:
    1. Update the information with results from one of my payment wizard runs.
    2. Add more fields to map to a target node i.e 'Block' field from the BP addresses or a UDF
    thank you
    Nicola

    This may be a bit late, but if you right click on the report name in the EFM format explorer section, you can choose Save As...

  • How set the format of map scale(e.g. 1/2000) in the JTextField?

    Hi, folks. My company buy a third party component, it contains a scale editor which is subclass of JTextField. However, I don't why this map scale editor allows people to entry number , ,alpha and space in it(it means every letter shown on the keyboard can be typed in the scale editor). My just want to know to how to set the certain format to let people to only type in the following format: 1/200000.
    By the way, because it is part of the third party component, so all I can do is get the instance of the JTextField from the component and set the format to it.
    Thanks in advance.

    Hi, folks. My company buy a third party component, it contains a scale editor which is subclass of JTextField. However, I don't why this map scale editor allows people to entry number , ,alpha and space in it(it means every letter shown on the keyboard can be typed in the scale editor). My just want to know to how to set the certain format to let people to only type in the following format: 1/200000.
    By the way, because it is part of the third party component, so all I can do is get the instance of the JTextField from the component and set the format to it.
    Thanks in advance.

  • Format Definition for Bank Statement Processing

    Hi All,
    I am using SAP B1 8.8 PL08
    I have bank statement in .csv format and I made .bfp file through FormatDefinition add-on.
    Now I am doing Bank Statement Processing but when I am importing from bank statement showing error "Operation failed due to file Mismatch". Can anyone help me out in .bfp definition. How to create it.
    Regards,
    Sachin

    Hi Gordon,
    I have my bank statement in .csv format, I opened it checked columns and create accordingly in FD in .bfp file. After creation assigned in file format set in House bank setup.
    Then Banking->Bank Statements and External Reconciliations->Bank Statement Processing->
    import text(Tab delimited) file in Bank Statement summary.
    Actually it is processing but at the end of it showing operation failed error, I checked all settings as well.
    Guide me if I am wrong somewhere.
    Regards,
    Sachin

  • Problem using byte indexed pixel format in setPixels method of PixelWriter

    I try to construct a byte array and set it to a WritableImage using PixelWriter's setPixels method.
    If I use an RGB pixel format, it works. If I use a byte-indexed pixel format, I get an NPE.
    The stride etc should be fine if I'm not mistaken.
    java.lang.NullPointerException
         at com.sun.javafx.image.impl.BaseByteToByteConverter.<init>(BaseByteToByteConverter.java:45)
         at com.sun.javafx.image.impl.General$ByteToByteGeneralConverter.<init>(General.java:69)
         at com.sun.javafx.image.impl.General.create(General.java:44)
         at com.sun.javafx.image.PixelUtils.getB2BConverter(PixelUtils.java:223)
         at com.sun.prism.Image$ByteAccess.setPixels(Image.java:770)
         at com.sun.prism.Image.setPixels(Image.java:606)
         at javafx.scene.image.WritableImage$2.setPixels(WritableImage.java:199)
    Short, self-contained example here:
    import java.nio.ByteBuffer;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.PixelFormat;
    import javafx.scene.image.WritableImage;
    import javafx.scene.layout.BorderPane;
    import javafx.stage.Stage;
    public class IndexedColorTestApp extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) {
            BorderPane borderPane = new BorderPane();
            Scene scene = new Scene(borderPane, 600, 1100);
            primaryStage.setScene(scene);
            ImageView imageView = new ImageView();
            borderPane.setCenter(imageView);
            primaryStage.show();
            int imageWidth = 200;
            int imageHeight = 200;
            WritableImage writableImage = new WritableImage(imageWidth, imageHeight);
            // this works
            byte[] rgbBytePixels = new byte[imageWidth * imageHeight * 3];
            PixelFormat<ByteBuffer> byteRgbFormat = PixelFormat.getByteRgbInstance();
            writableImage.getPixelWriter().setPixels(0, 0, imageWidth, imageHeight,
                                                     byteRgbFormat, rgbBytePixels, 0, imageWidth * 3);
            imageView.setImage(writableImage);
            // this throws an NPE in setPixels()
            byte[] indexedBytePixels = new byte[imageWidth * imageHeight];
            int[] colorPalette = new int[256];
            PixelFormat<ByteBuffer> byteIndexedFormat = PixelFormat.createByteIndexedInstance(colorPalette);
            writableImage.getPixelWriter().setPixels(0, 0, imageWidth, imageHeight,
                                                     byteIndexedFormat, indexedBytePixels, 0, imageWidth);
            imageView.setImage(writableImage);
    }If there's no solution, maybe someone knows a workaround? We chose to use indexed format because of data size / performance reasons.
    Edited by: Andipa on 01.03.2013 10:52

    You have found a platform bug, file it against the Runtime project at => http://javafx-jira.kenai.com with your sample code and a link back to this forum question.
    Byte indexed pixel formats seem like a feature which was never completely (or perhaps even hardly at all) implemented to me.
    The PixelFormat type your failed case is using is (PixelFormat.Type.BYTE_INDEXED):
    PixelFormat<ByteBuffer> byteIndexedFormat = PixelFormat.createByteIndexedInstance(colorPalette);
    System.out.println(byteIndexedFormat.getType());These are the valid PixelFormat types =>
    http://docs.oracle.com/javafx/2/api/javafx/scene/image/PixelFormat.Type.html
    BYTE_BGRA
    The pixels are stored in adjacent bytes with the non-premultiplied components stored in order of increasing index: blue, green, red, alpha.
    BYTE_BGRA_PRE
    The pixels are stored in adjacent bytes with the premultiplied components stored in order of increasing index: blue, green, red, alpha.
    BYTE_INDEXED
    The pixel colors are referenced by byte indices stored in the pixel array, with the byte interpreted as an unsigned index into a list of colors provided by the PixelFormat object.
    BYTE_RGB
    The opaque pixels are stored in adjacent bytes with the color components stored in order of increasing index: red, green, blue.
    INT_ARGB
    The pixels are stored in 32-bit integers with the non-premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue.
    INT_ARGB_PRE
    The pixels are stored in 32-bit integers with the premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue.As the native pixel format for a WritableImage is not the same as the pixel format you are using, the JavaFX platform needs to do a conversion by reading the pixels in one format and writing them in another format. To do this it must be able to determine a PixelGetter for your PixelFormat (the PixelGetter is an internal thing, not public API).
    And here is the source the determines the PixelGetter for a given PixelFormat type:
    http://hg.openjdk.java.net/openjfx/8/master/rt/file/06afa65a1aa3/javafx-ui-common/src/com/sun/javafx/image/PixelUtils.java
    119     public static <T extends Buffer> PixelGetter<T> getGetter(PixelFormat<T> pf) {
    120         switch (pf.getType()) {
    121             case BYTE_BGRA:
    122                 return (PixelGetter<T>) ByteBgra.getter;
    123             case BYTE_BGRA_PRE:
    124                 return (PixelGetter<T>) ByteBgraPre.getter;
    125             case INT_ARGB:
    126                 return (PixelGetter<T>) IntArgb.getter;
    127             case INT_ARGB_PRE:
    128                 return (PixelGetter<T>) IntArgbPre.getter;
    129             case BYTE_RGB:
    130                 return (PixelGetter<T>) ByteRgb.getter;
    131         }
    132         return null;
    133     }As you can see, the BYTE_INDEXED format is not handled and null is returned instead . . . this is the source of your NullPointerException.

  • Scripting Functoid for Date Formatting in Maps Biztalk 2010

    In the Source Schema I have the Date in xs: date Time Datatype in the Destination Schema I have date in String datatype. When I map directly I get the output as "2013-10-21T00:00:00". But I want it "2013-10-21" in output.
    I tried using the scripting but nothing worked like,
    public String ConvertEndDate(string param1)
    return DateTime.Parse(param1).ToString("yyyy-MM-dd");
    public string convertHireDate(string Date1)
    return DateTime.ParseExact(Date1, "YYYY-MM-DDThh:mm:ss", null).ToString("yyyy-MM-dd");
    Can anybody help me to deal with this. Thanks in advance.

    Thanks AshwinPrabhu.But I have the Source Schema date in "2013-10-21T00:00:00" format in Destination I need as "2013-10-21".
    I did the reverse like
    public static string convertHireDate(string sdatetime)
    return System.DateTime.ParseExact(sdatetime, "yyyy-MM-ddTHH:mm:ssZ", null).ToString("yyyy-MM-dd");
    But getting Error like,
    Exception type: XTransformationFailureException
    Source: Microsoft.XLANGs.Engine
    Target Site: Void ApplyStreamingTransform(System.Type, Microsoft.XLANGs.RuntimeTypes.TransformMetaData, System.Object[], System.IO.Stream[], Boolean)
    The following is a stack trace that identifies the location where the exception occured
    Additional error information:
            Function 'userCSharp:convertHireDate()' has failed.
    Exception type: XPathException
    Source: System.Xml
    Target Site: System.Object Evaluate(System.Xml.XPath.XPathNodeIterator)
    The following is a stack trace that identifies the location where the exception occured
    Exception type: FormatException
    Source: mscorlib
    Target Site: System.DateTime ParseExact(System.String, System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles)
    The following is a stack trace that identifies the location where the exception occured
       at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
       at Microsoft.Xslt.CompiledScripts.CSharp.ScriptClass_2.convertHireDate(String sdatetime)

  • EFM Format Definition ADD on

    Hi all
    I am try to use Bank Statement processing by using EFM Add on, but i am struck on point one.
    In house of bank setup assign  import name is done then in file format setup--> Right click --> Assign format project ,In this which format is need to assign.
    Also find the screen shot.
    Please help me .
    Regards,
    Shekhar

    Hi Shekhar,
    Could you advise your SAP Business One version? With releases before 8.82, you'll need an additional add-on BTHF.
    This "Assign" action doesn't convert your bank statements; it's just a preparatory step.
    Please check
    1. http://help.sap.com/saphelp_sbo900/helpdata/en/3a/8588888fda4243bb0308651153f62b/frameset.htm
    2. Its related topics.
    Regards

  • Number to exponential format in mapping

    Hi Experts,
    I want to convert number to exponential format. (Example number 254 to 2.5400000000E+01), is this possible using FormatNumber function??? if not can you anyone provide me UDF for this.

    Yes. You can use number format function.
    http://wiki.sdn.sap.com/wiki/display/XI/StandardFunctionsinPI7.0
    http://wiki.sdn.sap.com/wiki/display/HOME/MessageMappingFormat+Number
    http://download.oracle.com/javase/1.3/docs/api/java/text/DecimalFormat.html
    Refer this if you want to acheive this using udf-
    http://www.exampledepot.com/egs/java.text/FormatNumExp.html

Maybe you are looking for

  • Using Photoshop on Windows 8.1 and on Mac

    I currently have a Photoshop CC license that I use on Windows 8.1 I plan to buy a MacBook pro. Can I use same license on Mac and still occasionaly use it on my Windows machine?

  • Apps no longer show in iTunes 12

    When I'm in iTunes 12 and click on apps they no longer show up. Where did they go? They show on the iPhones pages 1,2, and 3 but not in the sidebar.

  • Problem in Product Update

    Hi All, I am facing a problem in product updation.I am using maintain FM to update Product in sap crm 2007. after that I am using COM_PRODUCT_SAVE_API.This API takes a lot of time to update only one set type .When I debug this API ,there is a badi FM

  • Tech preview 7 on amd64

    hi, i'm able to run tech preview 3 of java system web server 7 fine under 32 bit ubuntu 6.06. however when trying to run it on 64 bit ubuntu 6.06, i get the following when trying to start the initial instance: 27/Dec/2006:01:23:29  info CORE1116: Sun

  • Mail rejects my password

    Upgraded to Lion fairly smoothly. All seems to be OK (hate the monochrome finder icons..another stupid change like removing the blue progress bar with SL) Main problem is mail rejects my password on my imac but it works fine on iphone and ipad... blo