How to split currency into two parts at dot

Hi,
I am working in ECC6.0.
how can I split a currency field into two parts split at dot ( . )
I cannot use SPLIT AT  for currency field. All FMs I found does not works for currency.
Reagrds,
Divya

DId u check G_DECIMAL_PLACES_GET ?
You can use this FM to find the decimal places in the currency .

Similar Messages

  • Split float into two parts

    I have the following code to split a float number into 2 parts (as integer):
         float f = 1.2345f;
    String s = String.valueOf(f);
         int indexOfPoint = s.indexOf(46);
         String si = s.substring(0, indexOfPoint);
         String sf = s.substring(indexOfPoint+1,s.length());
         int intPart = Integer.valueOf(si).intValue();
         int fracPart = Integer.valueOf(sf).intValue();
    But this won't do if the float is in scientific notation, the last last line will return a java.lang.NumberFormatException. Can anyone help me? Thank you very much.

    I'd advise doing the split between fractions and integers mathematically, rather than through string manipulation.
    OTOH if the split is purely for display purposes, perhaps using java.text.DecimalFormat would help.

  • Container hirearchy for splitting screen into two parts.

    I have the following requirement.
    I need a screen split in two parts. The left part will always contain a tree menu (JTree) and the right part will be loaded according to the node selected in the left part of the screen (i.e. JTree). I understand that I have to use JSplitPane for dividing the screen and the top level container should be JFrame. But I am not sure of the container hirearchy for both the JTree and the right part of the screen.
    regards,
    nirvan

    Based on that very limited description I would guess -
    -- in the left part, a JScrollPane containing a JTree
    -- in the right part, a JPanel with CardLayout, containing other JPanels with appropriate layouts and content. Or if the content is larger than the screen space available, you mat need to enclose the CardLayout panel in a JScrollPane too.
    db

  • Tabular report, how to split row into two lines per record

    Hi, I have a tabular report based on a collection. The collection has 15 fields and appears horizontally across the screen. I would like to have a break after the 5th column so that each row is on two lines instead of one. Is this possible...any information would be helpful.
    a shortened query is: and I would like the break to be between c028 and c029.
    thanks
    Karen
    Select apex_item.select_list_from_lov_xl
    (28,
    c028,
    'GEARS',
    'style="width:200px;background-color:#FBEC5D; "'
    || 'onchange="f_set_casc_gear(this,f29_'
    || LPAD (seq_id, 4, '0')
    || ')"',
    'YES',
    '0',
    '- Select Gear -',
    'f28_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO'
    ) gear_code,
    apex_item.select_list_from_query(29,
    c029,
    'select lma_desc e, lma_code r
    from lobster_mgmt_area
    where 1 in (select 1 from gears where gear_code = '
    ||nvl(c028,0)
    ||' AND (type_code in (''005'') and category_code in (''160'')) OR ('
    ||nvl(c028,0)
    ||' in (''130'')) ) order by lma_code ',
    'style="width:75px"',
    'YES',
    '0',
    '- Select -',
    'f29_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO') lma_code,
    apex_item.text
    (30,
    c030,
    6,
    NULL,
    'style="width:50px;background-color:#FBEC5D;"'
    ) gear_quantity
    from collections where collection_name = 'EFFORT_C'

    Hello Karen,
    >> and each field needs to be updateble ( concatenating two fields does not allow for that).
    Did you notice the ‘<br />’ component, as part of the columns concatenations?
    The following example is using the same principle – every two updatable column, from the employees table, are sharing the same tabular form row - http://htmldb.oracle.com/pls/otn/f?p=22710:420 . The report query is:
    select apex_item.text(10,first_name)||'<br />'||apex_item.text(11,last_name) col01,
    apex_item.text(12,phone_number)||'<br />'||apex_item.text(13,email) col02,
    apex_item.text(14,salary)||'<br />'||apex_item.text(15,commission) col03
    from employeesThe same principle is being used to define custom headings.
    Hope this time it will be more clear.
    Regards,
    Arie.

  • How to split  the records into two parts

    Hi experts,
    I have a field with 75 char length, this field have records also, Now i want to split the field into two differnt fields. That means upto first 40 char goes to one field, from 41st char to 70 char goes to another field, for that how to split record into two parts.
    Plz advice this,
    Mohana

    Hi,
    Do the following:
    f1 = fsource(40).
    f2 = fsource+40(30).
    where fsource is the 70 character original string and target strings are f1 (length 40) and f2 (length 30).
    Cheers,
    Aditya
    Edited by: Aditya Laud on Feb 22, 2008 2:10 AM

  • Split String into two

    HI,
    How to Split String into two parts at delimiter

    HI,
    REPORT ZSTRING.
    DATA: LENGTH TYPE I,    
          REMAINING_LENGTH TYPE I ,   
          NEXT_POINTER TYPE I    ,   
          FIRST_HALF(20)  TYPE C ,    
          SECOND_HALF(20) TYPE C ,    
          TEMP TYPE I .
    PARAMETER: WORD(35) TYPE C . "INPUT WORD
    START-OF-SELECTION.
    LENGTH = STRLEN( WORD ).      "Length of the input String
    SEARCH WORD FOR '/'.
        IF SY-SUBRC = 0 .  
          IF SY-FDPOS > 0.   
          MOVE WORD+0(SY-FDPOS) TO FIRST_HALF.  
          ENDIF.  
       TEMP = SY-FDPOS + 1. 
       IF TEMP <> LENGTH.    
       NEXT_POINTER = SY-FDPOS + 1.    
       REMAINING_LENGTH = ( LENGTH - SY-FDPOS ) - 1.    
       MOVE WORD+NEXT_POINTER(REMAINING_LENGTH) TO SECOND_HALF.  
       ENDIF.
    ENDIF.
    WRITE:/'Input String:', WORD .
    WRITE:/'First  Half:', FIRST_HALF.
    WRITE:/'Second Half:', SECOND_HALF.
    *-- End of Program
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • How do I save a long video clip which I've split into two parts; save it as two seperate clips?

    I've split a video about 25 minutes into two parts; now how do I save the parts separately (as two different clips)?

    smwproductions
    What version of Premiere Elements and on what computer operating system is it running?
    Do you want to export these two clips from the same Timeline? If so, you can selectively export them.
    Two critical details for this...
    a. Set the gray tabs of the Work Area Bar to span just the segment that you want to export
    and
    b. Have a check mark next to the option Share Work Area Bar Only in the export settings. Not all export
    choices have this option. But, it is a must have for this select exporting.
    You can set the gray tabs of the Work Area Bar with keyboard shortcuts...
    Move the Timeline Indicator to the beginning of the segment to be exported. Then as you hold down the
    Alt key of the computer keyboard, hit the left bracket key [
    Move the Timeline Indicator to the end of the segment to be exported. Then as you hold down the
    Alt key of the computer keyboard, hit the right bracket key ]
    The following is a quick look at the gray tabs and the Work Area Bar to which I am referring.
    This screenshot is from a Premiere Elements version earlier than 11, but it conveys the concept of gray tabs and
    Work Area Bar in the Edit area as well as the option Share Work Area Bar Only in the export settings.
    Please le me know if you have any questions or need clarification on any of the above.
    Thank you.
    ATR
    Add On...I am strictly an Elements Windows user. The same principles should hold for Premiere Elements Mac.
    Not sure how the Alt will translate for match in this keyboard shortcut - Option or something else?

  • Please help, I am trying to split a HD mp4 video into two parts using Quicktime 10.2

    Please help, I am trying to split a HD mp4 video into two parts using Quicktime 10.2, running Mountain Lion. I use trim then export but it doesn't give the movie option as a format. What would you suggest i do?

    I'm not sure why you're using a FAT32 drive, but using ExFAT instead of FAT32 would be a better overall choice as it doesn't have the 4 Gig limit.
    http://www.tech-recipes.com/rx/2801/exfat_versus_fat32_versus_ntfs/

  • I would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??, i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??

    i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??, i would like to ask about imovie. my project cannot output and how can i divide my project in imovie into two part??

    Go to the Project Library View and select your project.
    Then FILE/DUPLICATE PROJECT and give the duplicate a name like "your name - part 1".
    Then duplicate it again and give the duplicate a name like "your name - part 2"
    Now you can open "part 1" as a project and delete everything that is in part 2.
    Open "part 2" as a project and delete everything that is in part 1.

  • Ksh. Integer value splitted into two parts

    Hi ,
    I have code like below in my Ksh script, and getting the sample_id value as '2003 15588' instead of '200315588'
    I'm using this sample_id to run an oracle report. Any help on why the value is getting splitted into two parts like 2003 15588.
    if (( CHECKS == 0 )) || (( CHECKS == 1 ))
    then
    V_SAMPLE_ID=$( $ORACLE_HOME/bin/sqlplus -S / <<EOF
    whenever sqlerror exit 1 rollback;
    whenever oserror exit 1 rollback;
    --Set up pagesize parameters.
    set newpage 0;
    set space 0;
    set echo off;
    set pagesize 0;
    set heading off;
    set verify off;
    set feedback off;
    set trimspool off;
    set termout on;
    set colsep "";
    set linesize 5;
    select substr(SAMPLE_ID,1,15) from sample_m
    where NAME=$MFGLBL and TVALUE=$C_SAMPLE;
    exit;
    EOF
    v_count=$?
    print "V_SAMPLE_ID: $V_SAMPLE_ID" >> $LOG_FILE
    fi
    Pls help . thanks.

    Here the actual outputs,
    from SqlPlus,
    SQL> select substr(SAMPLE_ID,1,15) from nais_sample_attributes where NAME='MFG LABEL NUMBER' and te
    xt_value ='9300141751';
    SUBSTR(SAMPLE_I
    200315588
    used the same query in the script , only difference is name and text_value are
    passing as variables.
    from script log file,
    /app/oracle/product/dev6i/bin/rwrun60 /app//reports/105.rep /@DB18 BATCH=YES DESTYPE=PRINTER DESNAME=nullprinter DESFORMAT=PDF P_SAMPLE_ID=20031 5588
    in the script , when i tried ,
    substr(SAMPLE_ID,1,5 ) it returns 20031 and
    substr(SAMPLE_ID,1,6) it returns 20031 5.

  • Split records into two files based on lookup table

    Hi,
    I'm new to ODI and want to know on how I could split records into two files based on a value in one of the columns in the table.
    Example:
    Table:
    my columns are
    account name country
    100 USA
    200 USA
    300 UK
    200 AUS
    So from the 4 records I maintain list of countries in a lookup file and split the records into 2 different files based on values in the file...
    Say I have records AUS and UK in my lookup file...
    So my ODI routine should send all records with country into file1 and rest to file2.
    So from above records
    File1:
    300 UK
    200 AUS
    File2:
    100 USA
    200 USA
    Can you help me how to achieve this?
    Thanks,
    Sam

    1. where and how do i create filter to restrict countries? In source or target? Should I include some kind of filter operator in interface.
    You need to have the Filter on the Source side so that we can filter records accordingly the capture the same in the File. To have a Filter . In the source data store click and drag the column outside the data store and you will have Cone shaped icon and now you can click and type the Filter.
    Please look into this link for ODI Documentation -http://www.oracle.com/technetwork/middleware/data-integrator/documentation/index.html
    Also look into this Getting started guide - http://download.oracle.com/docs/cd/E15985_01/doc.10136/getstart/GSETL.pdf . You can find information as how to create Filter in this guide.
    2. If I have include multipe countries like (USA,CANADA,UK) to go to one file and rest to another file; Can I use some kind of lookup file...? Instead of modifying filter inside interface...Can i Update entries in the file?
    there are two ways of handling your situation.
    Solution 1.
    1. Create Variable Country_Variable
    2. Create a Filter in the Source datastore in the First Interface ( SOURCE.COLUMN = #Country_Variable)
    3. Create a new Package Country File Unload
    4. Call the Variable in Country_Variable in Set Mode and provide the Country (USA )
    5. Next call the First Interface
    6. Next call the Second Interface where the Filter condition will be ( SOURCE.COLUMN ! = #Country_Variable )
    7. Now run the package .
    Solution 2.
    If you need a solution to handle through Filer.
    1. Use this Method (http://odiexperts.com/how-to-refresh-odi-variables-from-file-%E2%80%93-part-1-%E2%80%93-just-one-value ) to call the File where you wish to create store the country name into the variable Country_Variable
    2. Pretty much the same Create a Filter in the Source datastore in the First Interface ( SOURCE.COLUMN = #Country_Variable)
    3.Create a new Package Country File Unload
    4.Next call the Second Interface where the Filter condition will be ( SOURCE.COLUMN ! = #Country_Variable )
    5. Now run the package .
    Now through this way using File you can control the File.
    Please try and let us know , if you need any other help.

  • Dividing Genrated PDF no  of  pages into two parts

    Dear Friends,
    I have requirement in which i need to divide total number output pdf pages into two parts.
    E.g. If there are 10 pages Then   10 / 2 = 5
    Before generation of pdf file from smartform it automatically divide by 2 and then show these files.
    How to do this?
    Thanks & Regards,
    Ravi Grover

    Hi Rob,
    when you call the function module of the smartform you have the output parameter:
    DOCUMENT_OUTPUT_INFO-TDFPAGES
    It is the number of pages of the smartform.
    Then... you can call the funtion module of smartform two times  :
    1rst with the input field OUTPUT_OPTIONS-TDPAGESLCT from 1 to number of pages / 2
    2nd  with the input field OUTPUT_OPTIONS-TDPAGESLCT from  number of pages / 2 to number of pages
    And generate both pdf.
    Bye!

  • Split string into two based on end of word and max length

    I have the following procedure, which is passed a comma separated string as it input, and it has to split it into two, and the split has to occur at the end of a word, and the first split part can't be more than 15 in length.
    Is there an more efficient way of achieving this? I have a loop in my main code that calls this procedure and in effect a nested loop has been created here.
    e.g. Hello, everyone, welcome, to, split, string' would be split into 'Hello' and 'everyone, welcome, to, split, string'
    create or replace procedure split_str
                   (pi_str  in  varchar2,
                    po_str1 out nocopy varchar2,
                    po_str2 out nocopy varchar2) is
      i number;
    begin
      if (len(pi_str) <= 15) then
        po_str1 := pi_str;
        po_str2 := NULL;
      else
        i := 1;
        loop
          exit when len(SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1)) > 15;
          po_str1 := SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1);
          po_str2 := SUBSTR(pi_str, INSTR(pi_str, ',', 1, i)+2);
          i := i+1;
        end loop;
      end if;
    end split_str; 

    You want to find the last space character before the 15th character.
    x := INSTR ( SUBSTR ( pi_str, 1, 15) , ' ' , -1)Then the first string is SUBSTR(pi_str,1,x) and the second string is SUBSTR(pi_str,x+1)

  • Album download relabels itself and splits itself into two separate album folders

    I have purchased and downloaded an album from a reputable and legal independent website that I have successfully used in the past, but the album folder seems to have a glitch.
    When I download the album it labels itself "Standard" instead of by the name of the album title, like it usually does.  Then when I add it to my iTunes library, it relabels itself to the album name and subsequently splits itself into two separate album folders.  9 random tracks located in one folder, 13 in the other.  The only difference between the labels of the two album folders is that one has an underscore at the end of it.  I have exhausted all my trouble shooting tricks like ensuring all the common metadata is the same (artist, album, sorting, grouping, genre, playlist etc) and deleting and re-downloading, and subsequently copying and pasting files into the correct place but the same thing keeps happening. 
    I have downloaded all the latest software updates on my iMac 10.10.1 and use OS X Yosemite.  I have tried clearing my cache, cookies and webpage history and then downloading again using a completely different browser without success.  I've even tried dragging and dropping files from one folder into the other, again without success.  I would be grateful for any expert advice.

    It's a bug that has been there for years.
    There are workarounds, but you have to do them every time an album gets split. And that will happen every time you change an artist name or an album name (whether it's to change it to proper capitalization, or other reasons). There is no permanent solution.
    Workaround #1:
    1. Select all the tracks from the album
    2. Right click and select "Get Info"
    3. Change the album name by deleting, let's say, the last letter and press "OK"
    4. Change the album name back.
    Workaround #2:
    1. Select all the tracks from the album
    2. Right click and select "Get Info"
    3. Change the artist name by deleting, let's say, the last letter and press "OK"
    4. Change the artist name back.
    Workaround #3:
    1. Select all the tracks from the album
    2. Right click and select "Get Info"
    3. Go to "Options"
    4. Check (or uncheck, if it's already check) the "Part of a compilation" box and press "OK"
    P.S. Some smart person moved this thread from the "iTunes U" forum to the "iTunes for Mac" forum. But the OP clearly said he runs iTunes on Windows.

  • How to split words in two arrays depending of the first letter.

    Yes, how to split words in two arrays depending of the first letter.
    I have a string array with some words, and I need to separe this array into two differents string arrays depending of the first letter:
    if the word starts in A to M the word goes to array Words_AM;
    if the word starts in N to Z the word goes to array Words_NZ;
    Now I'm doing the next:
    if ((ArrayWord.charAt(0))<='a') && (ArrayWord.charAt(0)>='m'))                                        {                                                                                          
    Words_AM]=ArrayWord;
    else
    Words_NZ[i]]=ArrayWord;
    But doesn't work.
    Any solution?
    Best wishes.

    Yes , that's true. But also I have to change the <='a' to <'a', because of with first option didn't selecting the a letter.
    But with z letter, doing the same before, doens't run.
    if ((ArrayWord.charAt(0))<'a') || (ArrayWord.charAt(0)>='m'))
       Words_NZ]=ArrayWord;
    else
    if ((ArrayWord.charAt(0))<='n') || (ArrayWord.charAt(0)>'z')) Words_AM[i]]=ArrayWord;
    Regards ;)

Maybe you are looking for

  • Can't get iPod to sync with iTunes

    I managed to back-up all my music from my ipod onto my harddrive and upload it into iTunes. Now I have the problem of syncing iTunes with my iPod! I have Windows 8 a 5th Gen Nano that is at least 4 years old. I can plug my ipod into the computer and

  • Mouse pointer won't click but stills moves

    Help how do fix this please help this happen on my other macbook too running the same os moutain lion please help

  • Is it possible to sort dimension values in order different from alphabetic?

    Is it possible to sort dimension values in order different from alphabetic. То use this sorting in BI Beans. In 10g r2 with awm 10.2.0.2. I try to add attribute like it was show in this forum, but nothing changes.

  • Java certification question

    I have learning material for two modules: (a) Sun Java 2 Developer SCJD CX-310-252A/CX-310-027, and (b) Java 2 5.0 Programmer Certification 310-055. I know that these kind of exams were organized by the Sun Microsystems, Inc., which was bought by Ora

  • How to stop RMAN backup scroll on the screen

    Hello Folks, I have written the following script #!/bin/ksh rman target=sys/blue1pill@ODPTDB << EOF set echo off run { allocate channel ch00 type disk; backup full format '/oracle/dump/ODPTDB/rmanbackup/dbbkup_u%u_s%s_p%p_t%t.bak' database; backup fo