Split A Number

I have a date field which comes as "20070315" in the xml file.
While inserting to database i need to split it into 2007-03-15 format and then insert.
Can anyone suggest me , how to split this type of pattern.
thanks
Amarshi

So what have you tried so far? And where are you stuck?
db

Similar Messages

  • Is it possible to split a number off family plan and start separate account?

    is it possible to split a number off family plan and start separate account?

    I was just coming to check how to do this.
    I added my mom and step dad to my account now want them off. I pay the majority of the bill and it's getting expensive. Just found out my mom get's a big discount through her work. 26% of bill, $50 dollars off of Smartphones, plus her company will reimburse her $65 a month towards her bill. Can't believe I've been paying all this time.

  • Queue SYSFAIL after message split "Whole number overflow on addition"

    Hi,
    I'm using a message mapping in PI 7.1 to split a message in several messages for each line of an invoice. It's a mapping 1 to 0..n. Everything went well since I had maximum 100 invoice lines to split (then 100 messages at the output of the mapping).
    But since I have now messages with 200 invoice lines, everytime the queue is stopped in SYSFAIL status with a message "Whole number overflow on addition". But all messages are processed even if the queue is stopped.
    ST22 gives me a COMPUTE_INT_PLUS_OVERFLOW in the method determin_message_size. It seams that PI doen't support a large message at output of a mapping. How can I split the message into multple messages at the outplut of a message mapping ?
    Does anyone have a solution ?

    Hi,
    I guess you can use the Message Packing feature.
    See below the links to help you:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/46/7ef9124f176be3e10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nwpi711/helpdata/en/46/7a6e3469454b2be10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nwpi711/helpdata/en/46/79e8e13872275ae10000000a11466f/frameset.htm
    Regards,
    Caio Cagnani

  • Invoice split by number of delivery line items

    Hi,
    Can anyone assist in providing me with a solution to the problem of splitting invoices based on the number of delivery line items. I know there is an SAP restricting of 999 lines when posting to SAP.
    Example:
    If my delivery has 20 line items is there a way to split the invoice into two separate documents of 10 lines each?
    Thanks
    Anirudh

    Hi,
    Instead of splitting the Invoice on the basis of delivery line items, you can fix the maximum of lines allowed in the Invoice. So this will help you having multiple invoices from a delivery.
    I don't know if this suits you.
    There is routine number 6 which acomplishes this (Single Invoice Limited), where coding has been done on the basis of config. (Sales Org:Limit number of billing items TVKO-MAXBI).
    This can be assigned at the item level (Copy control - Delivery to Billing, VTFL)
    Instead you can create a seperate routine which initially checks the number number of line items in the reference delivery document and then creates an invoice with specific lines.
    Hope this helps.
    Regards,
    Vivek

  • Splitting a Number String without using split()

    What is the better way of converting a number string where the numbers are seperated by a white space into an array without using the split() method or tocharArray e.g numberString = "12 13 14" numberArray[0] = 12, numberArray[1] = 13, etc

    If you know the number of elements in the string, you can create a predefined fixed array. You can also search for empty spaces.
    String text = "12 13 14";
    int COUNT = 3;
    public void doit() {
      int[] arr = new int[COUNT];
      int sub1 = 0;
      int sub2 = 0;
      for(int i=0; i<COUNT - 1; i++) {
        sub2 = text.indexOf(" ", sub2 + 1);
        arr[i] = Integer.parseInt(text.substring(sub1, sub2));
        sub1 = sub2 + 1;
      arr[COUNT - 1] = text.substring(sub1, text.length());

  • Split on Number

    Hi,
    Could anyone explain how to split a string at the first
    number it comes to. The two halves can then be passed to a list or
    an array.
    I've got several variables such as "Mar16", "June13" etc
    (dates) and I need to split it into "Mar" and "16" etc so I can
    increment the date by one ie Mar16 to Mar17.
    TIA,
    Simon

    There are many ways to do this sort of thing. Below is one
    example using various CF string functions.
    <cfset vDate = "Mar16">
    <cfset vNumPos = ReFind("[0-9]", vDate)>
    <cfset vMonth = Left(vDate, vNumPos-1)>
    <cfset vDay = Mid(vDate, vNumPos, Len(vDate))>
    <cfoutput>#vMonth#</cfoutput>
    <cfoutput>#vDay#</cfoutput>
    Phil

  • Convert and split Hexa number into ASCII

    Hai
          How to convert Hexa number to equivalent ASCII number
     i attached my VI
    thanks
    sk
    I am using LabVIEW 7.1
    Attachments:
    HEX2ASCII.vi ‏31 KB

    It really depends on what you want. For example you want to "split the hexa number 1A into 1 and A". Should the output be a string or another U8 number?
    Attached are a few possibilities.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HEX2ASCIImod.vi ‏51 KB

  • Splitting the number (urgent)

    Hi
    i have a urgent requirement i have a  series of handling unit no's 
    ex: 17000000000044 in my list and i want to display it as 1/ 7/ 0044, can anyone help me
    thanks.

    Hi,
      If the first two characters should be split and the remaining should go after the /
      then try this..
      DATA: V_CHAR(20) VALUE '17000000000044'.
      DATA: V_OUTPUT(20).
       CONATENATE V_CHAR(1) '/' V_CHAR1(1) '/' V_CHAR2(20) '/'
              INTO V_OUTPUT.
        WRITE: / V_OUTPUT.
    Thanks
    Naren

  • Formula to split a number

    Hi,
    I have a value in the field e.g. XXXYYYYZZZ coming from the R3.  I just want to populate YYYY in the BW.  What could be the right formula for this.
    Note: XXXYYYYZZZ is a number.  So, when I tried substring then a string value ABCD is populated in BW.
    Kindly help.  Thanks,

    you can use the std formula LEFT  (Length, String ). which would bring the first 4 chars of the string.

  • Pages (iWork 06) won't split cells into columns past a certain number...

    I'm trying to split a number of cells into columns (only one column of cells selected at a time). It worked fine with 5 out of the 15 columns that I have, but now when I highlight a column's worth of cells and right click "split into columns" is grayed out. Why?
    I changed the page size and made it huge in case that was limiting the overall table dimensions or anything like that, but it's still not working. Thanks!

    Does the ext directory have the php_oci8.dll? In the original steps the PHP dir is renamed. In the given php.in the extension_dir looks like it has been updated correctly. Since PHP distributes php_oci8.dll by default I reckon there would be a very good chance that the problem was somewhere else. Since this is an old thread I don't think we'll get much value from speculation.
    -- cj

  • Multi Mapping : How to get Message count after splitting

    Hi all,
    I am following below blog.
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    Can any body please tell me how to get the count of messages generated after splitting in the message mapping.. I have created the message data type but not aware what is needed to be done.
    Thanks and best regards,
    Kulwant Singh

    Multi mappings r done in order to split the messages to the number of messages required by the user. So for 1:N mapping, the details about "N" is based on ur requirement. So its not like - when u split, any number of message could get created. The count would be dependent on u.
    Regards,
    Prateek

  • Record splitting using XSLT mapping

    Hi,
    In my scenario i need to split n number of records into groups of 5.I learnt that this can be done through XSLT mapping also.So can  anyone please help me in getting this through XSLT.
    thanks in advance,
    Vikram

    Hi,
    You can simply use udf's for this.
    I have done such scenario.If you can give a brief overview of your input structure then i will be able to help.
    Regards
    Arpil

  • Problem with a number

    I have built a spreadsheet in AppleWorks and in one column /cel when I put in a long number, ( it's an account number 31003913249809 ), the cel will not accept it as such. It changes some of the numbers to letters and / or other numbers, and drops some numbers. If I shorten the number to one that's 10 units long, there's no problem. Likewise the cel will accept the number if I put a dash in there somewhere. So, is there a maximum number length/size that the cels in AppleWorks will accept, or what else could be going on here? That cel's pref's are set to General in the number pref's. Thanks, Peter

    Peter wrote:
    "I have built a spreadsheet in AppleWorks and in one column /cel when I put in a long number, ( it's an account number 31003913249809 ), the cel will not accept it as such. It changes some of the numbers to letters and / or other numbers, and drops some numbers."
    Adding to what Peggy said:
    AppleWorks (and the Mac's) numerical precision limit is 11 places, so when you entered the 14 digit account 'number', it would be displayed either as 31003913250000 (in standard form, rounded to the 11th place) or as 3.100391325e13 (the same 'number' in scientific notation).
    I've placed single quotes around the word 'number', because for mathematical purposes an account number, like a UPC or an ISBN, is really a label, not a number. It's not used for any calculations beyond the comparisons used in sorting. As a label, it should be entered as text (in the various ways suggested by Peggy).
    One additional method is to split the 'number' into two sections, each of them shorter than the 11 digit limit, then use a formula to rejoin the two as a single string of characters.
    Example:
    In cell A1: 31003913
    In cell B1: 249809
    In cell C1: =A1&B1
    Regards,
    Barry

  • Problem with a number of applications hanging up

    Hi,
    I am running a Dual G4 1Ghz mac under OS X v10.2.8
    Certain applications have now started crashing including iDVD, System Preferences, Print Center. The crash occurs when I attempt to do anything with the menu bar on the the top of the application's window. If I go to save a file under FILE save I immediately get a spinning beach ball. The only option left is to force quit the application.
    Other applications like Photoshop, InDesign and Iphoto do not display this error.
    Any ideas as to what can cause this?
    Thank you in advance
    Michael Dunphy
    Dual processor G4 1Ghz   Mac OS X (10.2.x)  

    Peter wrote:
    "I have built a spreadsheet in AppleWorks and in one column /cel when I put in a long number, ( it's an account number 31003913249809 ), the cel will not accept it as such. It changes some of the numbers to letters and / or other numbers, and drops some numbers."
    Adding to what Peggy said:
    AppleWorks (and the Mac's) numerical precision limit is 11 places, so when you entered the 14 digit account 'number', it would be displayed either as 31003913250000 (in standard form, rounded to the 11th place) or as 3.100391325e13 (the same 'number' in scientific notation).
    I've placed single quotes around the word 'number', because for mathematical purposes an account number, like a UPC or an ISBN, is really a label, not a number. It's not used for any calculations beyond the comparisons used in sorting. As a label, it should be entered as text (in the various ways suggested by Peggy).
    One additional method is to split the 'number' into two sections, each of them shorter than the 11 digit limit, then use a formula to rejoin the two as a single string of characters.
    Example:
    In cell A1: 31003913
    In cell B1: 249809
    In cell C1: =A1&B1
    Regards,
    Barry

  • Re : Restrict the number items in Billing

    hI
             How to restrict the number items in Billing ? For Example No. of item in billing is maximum 5. Suppose our delivery document contains 7 items then I need first 5 in one invoice and remaining in another invoice. How to do this?.
    Thanks
    mani

    Hi,
    Go to SPRO>>>IMG>>>Sales & Distribution>>>Billing>>>Billing Documents>>>Country-specific features>>>Maintain Maximum No. Of Billing Items.
    This is where you can define a maximum number of items allowed for all billing documents within a given sales organization.
    However, maintaining data here is not enough alone to bring about a billing split by number of billing items.
    You must also go to copying control for order/delivery to billing document at item level under "Data VBRK/VBRP" and maintain routine 006 "individual invoice limited" or a similar routine that accesses the data maintained here.
    Thanks

Maybe you are looking for