Currency with out commas

HI,
Iam passing to table 1000.00 amount.
At table level it is taking as 1,000.00 and data type is CURR.
I need to remove "1,000.00" and save as "1000.00" at table level.

Hi,
I don't think you can do that unless you change the field type as Blag mentioned earlier.
You are right, Blag.
Regards,
Ferry Lianto
Message was edited by: Ferry Lianto
Message was edited by: Ferry Lianto

Similar Messages

  • Need to print with out comma

    Hi all,
    My table is loaded like this 123,678 .00 .I need to extract the data without comma like this 1234678.00
    can any one help me to resolve this issue?
    Thanks in advance.

    You can do this.
    data: str(15) type c value '123,678.00'.
    translate str using ', '.
    condense str no-gaps.
    ABAP related questions should be posted in the ABAP forum. 
    As I see you have done.
    need to print with out comma
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman

  • BAPI with out Commit

    Hi All
    after bapi calling we need to call commit
    my question is there any bapis with out transaction commit
    Regards
    Surendra

    Hi
    We have the sales order or purchase order with the older version so we need to commit use the bapi_transaction_commit.
    u can chk out in bapi transaction.
    Inside of the code there is commit work is not been used.
    All the LUW's will be commited in the database.

  • Writing currency with a comma

    I am trying to do a spread sheet in Euros.  My problem is in Italy they use comma instead of the decimal point in writing currency.  Example: €3.058356 is written as 3,058356 €. How can I use a comma without having the amount reading thousands?

    Decimal and thousands separators is a setting in System Preferences > International > Formats, controlled by the Region menu setting.
    The setting is global for the computer, and is picked up by Numbers during the application's launch. I'm not aware of a setting that will allow you to freely toggle between using the period/comma as the decimal separator.
    Regards,
    Barry

  • Keyfigure Properties for amount with out commas

    Hi All,
    In our Report amount is displaying as 56,3000.33
    where i need to show the user like 56300.33
    could any one please let us know how can i achive this.
    Regards
    Srini

    Hi Srinivas,
    Try it in SU01 - Key in the User id - Goto Defaults - Decimal Notation - 1 234 567,89.
    This is user specific and you may get this in the report display.
    Thanks,
    Ram.

  • In reports, i want to display currency field out put with diff currencies

    Hi all
    in reports, i want to display currency field out put with different type of currencies like 1st record in rupees 2nd record in dolors 3rd record in       
    Euros. for this i should not use any tables and any currency fields and any functional modules. pls give replay urgently.

    Hi swamy,
    so sorry, but you have to use some of the objects you do not want to:
    Currency values in ABAP are stored in currency fields (type CURR). If they are stored in structures or database, every CURR field must be connected to a CUKY field (currency key).
    Displaying data using WRITE statement four output on a list is obsolete technique, you may use the use WRITE with the option CURRENCY c to format according to currency c in table TCURX.
    SAP recommends to use ALV technique. If you use ALV to display structure data, then create a dictionary structure with currency value and currency key. The rest goes automatically.
    Believe me: It is much easier and more reliable.
    Regards,
    Clemens

  • Currency with commas

    Hi all,
    I have a problem of displaying currency fetched from KONP table with commas.
    Its not related to displaying the currency with commas.
    I want to store the fetched value of currency with commas into some variable for further processing.
    Scenario>>
    If currecny value is 1000 in KONP,then i need this value to be stored in some variable as 1,000.
    Thanks,
    Anurodh

    Hi,
    you can use the WRITE statement to get the thousand seprator..
    l_curr = '1000'.
    WRITE l_curr to l_char. " l_char will hold 1,000

  • Select with out into in plsql

    hi all
    i want to write a select statment in a procedure with out into statement ..
    is it possilbe if yes how can i do this.
    if its not possible then if we have to Return a number of rows from procedure then how can i do this..
    thanks in advance

    User1728 wrote:
    actual i want to return a datatable type data from procedureWhat does "datatable type" mean? "Datatable" is not a type in PL/SQL, so I assume that it has some meaning in your client programming language. What Oracle data type are you trying to return?
    My guess would be that you are trying to return a REF CURSOR so that you want something like
    SQL> create procedure return_rc( p_rc OUT sys_refcursor )
      2  as
      3  begin
      4    open p_rc for select * from emp;
      5  end;
      6  /
    Procedure created.
    SQL> variable rc ref cursor;
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
                        VARCHAR2 (n [CHAR|BYTE]) | NCHAR | NCHAR (n) |
                        NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
                        BINARY_FLOAT | BINARY_DOUBLE ] ]
    SQL> variable rc refcursor;
    SQL> exec return_rc( :rc );
    PL/SQL procedure successfully completed.
    SQL> print rc
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
        DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        800
            20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300
            30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500
            30
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
        DEPTNO
          7566 JONES      MANAGER         7839 02-APR-81       2975
            20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400
            30
    <<more data snipped>>Justin

  • How do i run this peice of code with out executing the PROC

    I have the following code which i want to run but not a a Pocedure.
    I know its always better to runa PROC but this is for test purpose so the only target is to run it by part or somehow but with out the need to create or execute a procedure
    CREATE PROCEDURE temp_account_salary_archive_proc
    IS
    CURSOR arcur
    IS
    SELECT sequence_num
    FROM north.account_offer
    WHERE north.datediff ('mm', hire_date, SYSDATE) > 3;
    BEGIN
    FOR arrec IN arcur
    LOOP
    INSERT INTO north.account_salary_archive
    SELECT *
    FROM north.account_salaries
    WHERE sequence_num = arrec.sequence_num;
    DELETE FROM north.account_salaries
    WHERE sequence_num = arrec.sequence_num;
    END LOOP;
    COMMIT;
    END temp_account_salary_archive_proc;
    I need to know which parts of this code is to be executed if i want to run the process with out the help of Stored Procedure
    I am on Oracle 10g
    and I am a beginer.

    781244 wrote:
    Sorry for not mentioning earlier sir. It is Oracle 10g.
    And the DATEDIFF function I am using is a user defined function which i created.Ok, i apologize ... thanks for the clarification.
    The code as you've posted is not something i'd want to run on any volume of data. It will be horribly slow (looping is the slowest method to perform a SQL operation in Oracle).
    Much faster would be to simply
    INSERT --+ APPEND
    INTO north.account_salary_archive
    SELECT *
    FROM north.account_salaries
    WHERE sequence_num in
       SELECT
          sequence_num
       FROM north.account_offer
       WHERE north.datediff ('mm', hire_date, SYSDATE) > 3
    DELETE FROM north.account_salaries
    WHERE sequence_num IN
       SELECT
          sequence_num
       FROM north.account_offer
       WHERE north.datediff ('mm', hire_date, SYSDATE) > 3
    );2 fast SQL statements (fast being a relative term, this will depend on the number of rows you need to play around with here).
    Even faster would be partition exchanges (if you have partitioning on this table).
    If you notice, i put an APPEND hint in the INSERT statement. Please read about it in the documentation and determine if you meet the restrictions to use it or not. If you do that will increase the performance of your INSERT.
    I would also try to remove the custom function you created (DateDiff) and replace that with the logic required (is the function horribly complex?). Calling functions/procedures (custom created) places a good deal of overhead on SQL operations.

  • Oracle Stored Procedure with out parameter

    Good morning,
    Is it possible to use an Oracle stored procedure with out parameters in MII ?
    If yes, what is the manipulation to see the values of parameters Out?
    Thank you

    Michael,
    This is the  MII query template  :
    DECLARE
    STRCOMPTERENDU NVARCHAR2(200);
    BEGIN
    STRCOMPTERENDU := NULL;
    XMII.SP_VALIDATEPROCESSORDERSLIST2 ( STRCOMPTERENDU => [Param.1]  );
    COMMIT;
    END;
    and the stocked procedure code
    CREATE OR REPLACE PROCEDURE XMII.SP_ValidateProcessOrdersList2(strCompteRendu OUT nVarchar2) IS
    tmpVar NUMBER;
    debugmode INT;
    strClauseSql varchar(2048);
    strListPOactif varchar(1024);
    dtmTimeStamp DATE;
       NAME:       SP_ValidateProcessOrdersList
       PURPOSE:   
       REVISIONS:
       Ver        Date        Author           Description
       1.0        18/06/2008          1. Created this procedure.
       NOTES:
       Automatically available Auto Replace Keywords:
          Object Name:     SP_ValidateProcessOrdersList
          Sysdate:         18/06/2008
          Date and Time:   18/06/2008, 18:45:32, and 18/06/2008 18:45:32
          Username:         (set in TOAD Options, Procedure Editor)
          Table Name:       (set in the "New PL/SQL Object" dialog)
    BEGIN
       tmpVar := 0;
       debugmode := 0;
       -- lecture date systeme pour time stamp
       select sysdate  into dtmTimeStamp from dual;
       if debugmode = 1 then
        DBMS_OUTPUT.put_line('SP_ValidateProcessOrdersList');
       end if;
       -- insertion du bloc dans le log
       insert into LOG_ORDER
        (DATE_ORDER,BLOCK_ORDER,ID_LOG_ORDER)
       values
       (dtmTimeStamp,'SP_ValidateProcessOrdersList',ID_LOG_ORDER.nextval);
       Commit;
        if debugmode = 1 then
        DBMS_OUTPUT.put_line('insertion LOG OK');
       end if;
    strCompteRendu := '0123456-896;0123456-897';
    commit; 
       EXCEPTION
         WHEN NO_DATA_FOUND THEN
           NULL;
         WHEN OTHERS THEN
         ROLLBACK;
         -- insertion du bloc dans le log
       insert into LOG_ORDER
        (DATE_ORDER,BLOCK_ORDER,ID_LOG_ORDER)
       values
       (dtmTimeStamp,' ',ID_LOG_ORDER.nextval);
       COMMIT;
           -- Consider logging the error and then re-raise
           RAISE;
    END SP_ValidateProcessOrdersList2;
    Thanks for your help
    Alexandre

  • Is there an easy way to convert from a String with a comma, ie. 1,000.00 to

    Is there an easy way to convert from a String with a comma, ie. 1,000.00 to a float or a double?
    thanks,
    dosteov

    Like DrClap said: DecimalFormat. However, make sure you understand the Locale things, as explained at http://java.sun.com/j2se/1.3/docs/api/java/text/DecimalFormat.html (which refers to NumberFormat as well) and use them explicitly. Like
    public class FormatTest
      public static void main(String args[])
        try
          // see NumberFormat.getInstance()
          DecimalFormat fmt = new DecimalFormat();
          Number num = fmt.parse("1,000.01");
          System.out.println(num.doubleValue());
        catch(ParseException pe)
          System.out.println(pe);
    }most likely seems OK on your system, but may print "1.0" (or even fail) on some non-English platforms!
    When performing calculations, also see http://developer.java.sun.com/developer/JDCTechTips/2001/tt0807.html
    a.

  • Group by with outer join

    Group by sum doesn't work with outer join. Can anyone please help me to get it right?
    I've posted some sample data and queries below:
    CREATE TABLE COMPLAINT
      CNO     NUMBER,
      REASON  VARCHAR2(15 BYTE),
      TOTAL   NUMBER
    Insert into COMPLAINT
       (CNO, REASON, TOTAL)
    Values
       (1, 'edge', 250);
    Insert into COMPLAINT
       (CNO, REASON, TOTAL)
    Values
       (2, 'edge', 250);
    Insert into COMPLAINT
       (CNO, REASON, TOTAL)
    Values
       (3, 'brst', 300);
    Insert into COMPLAINT
       (CNO, REASON, TOTAL)
    Values
       (4, 'crea', 400);
    COMMIT;
    CREATE TABLE SCOTT.COMPLAINTROLL
      CNO   NUMBER,
      ROLL  VARCHAR2(15 BYTE)
    SET DEFINE OFF;
    Insert into COMPLAINTROLL
       (CNO, ROLL)
    Values
       (2, 'roll22');
    Insert into COMPLAINTROLL
       (CNO, ROLL)
    Values
       (1, 'roll4');
    Insert into COMPLAINTROLL
       (CNO, ROLL)
    Values
       (1, 'roll3');
    Insert into COMPLAINTROLL
       (CNO, ROLL)
    Values
       (1, 'roll2');
    Insert into COMPLAINTROLL
       (CNO, ROLL)
    Values
       (1, 'roll1');
    COMMIT;
    select * from complaint
    CNO     REASON     TOTAL
    1     edge     250
    2     edge     250
    3     brst     300
    4     crea     400
    select * from complaintroll
    CNO     ROLL
    1     roll1
    1     roll2
    1     roll3
    1     roll4
    2     roll22
    -- total of reason code edge is 500
    select reason,sum(total)
    from complaint c
    group by reason
    REASON     SUM(TOTAL)
    brst     300
    crea     400
    edge     500
    -- total of reason code edge after outer join is 1250
    select reason,sum(total)
    from complaint c,complaintroll cr
    where c.cno=cr.cno(+)
    group by reason
    REASON     SUM(TOTAL)
    brst     300
    crea     400
    edge     1250
    {\code}
    Thanks for reading this post.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The problem that you described is simple. The outer join duplicates all the rows from the parent table (complaint). If you want to sum a column from the parent table, then this sum includes all the duplicated rows.
    There are several solutions for this problem.
    A) One had been shown already by Cenutil. Instead of doing an outer join, you can do a subquery in the select clause that delivers the additional information from the detail table.
    SQL> select reason,
       sum(total),
       sum((select count(*) from complaintroll cr where c.cno=cr.cno)) cnt_rolls
    from complaint c
    group by c.reason;
    REASON          SUM(TOTAL)  CNT_ROLLS
    crea                   400          0
    brst                   300          0
    edge                   500          5b) sum in two steps. First sum and count including the join criteria, then use this information to calculate the correct total sum.
    SQL> select reason, sum(stotal), sum(stotal/scount), sum(scount), sum(cnt_rolls)
      2  from (select reason, sum(total) stotal, count(*) scount, count(cr.cno) cnt_rolls
      3         from complaint c
      4         left join complaintroll cr on c.cno=cr.cno
      5         group by reason, c.cno
      6         )
      7   group by reason;
    REASON          SUM(STOTAL) SUM(STOTAL/SCOUNT) SUM(SCOUNT) SUM(CNT_ROLLS)
    crea                    400                400           1              0
    brst                    300                300           1              0
    edge                   1250                500           5              5
    sql> c) another option is to do the left join, but do the aggregation only one time for the parent table. Analytic functions are helpful for that. However since analytic fuinctions can't be used inside an aggregation function, we would again need an inline view.
    SQL> select reason, sum(case when rn = 1 then total end) sum_total, count(*), count(crcno)
      2  from (select row_number() over (partition by c.reason order by c.cno) rn,
      3                   c.*, cr.cno crcno
      4         from complaint c
      5         left join complaintroll cr on c.cno=cr.cno
      6         )
      7  group by reason;
    REASON           SUM_TOTAL   COUNT(*) COUNT(CRCNO)
    brst                   300          1            0
    crea                   400          1            0
    edge                   250          5            5
    SQL> Edited by: Sven W. on Feb 10, 2011 1:00 PM - formatting + column added to 2nd option

  • Time Zone Conversion with out using function and with out alter

    Hi All,
    I am able to see 1Hr difference in my date fields of SQL output because in UI (User Interface)  date field was stored in BST format but DB time zone is in GMT format so can any one help me to find a solution for 1 hr difference, here i don't have Privileges to alter DB time zone and i couldn't use function as i have so many SQL's and  can't apply that function manually. SO is there any other option to change the DB time zone with out alter it and with out using function.
    Thank you Very Much.

    Hi,
    you need to set time zone in your session, let's do an example :
    alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS';
    CREATE TABLE USERA.T
      SDATE       DATE                              DEFAULT sysdate,
      WITHOUT_TZ  TIMESTAMP(6)                      DEFAULT sysdate,
      WITH_TZ     TIMESTAMP(6) WITH TIME ZONE       DEFAULT sysdate,
      WITH_LZ     TIMESTAMP(6) WITH LOCAL TIME ZONE DEFAULT sysdate
    insert into USERA.T(sdate) values(sysdate);
      commit;
      select * from USERA.T;
    SQL> select * from system.t;
    SDATE
    WITHOUT_TZ
    WITH_TZ
    WITH_LZ
    26/09/2013 11:04:23
    2013-09-26-11.04.23.000000
    26/09/13 11:04:23,000000 +00:00
    2013-09-26-11.04.23.000000
    SQL> alter session set TIME_ZONE ='-7:0';
    Session altered.
    SQL> select * from system.t;
    SDATE
    WITHOUT_TZ
    WITH_TZ
    WITH_LZ
    26/09/2013 11:04:23
    2013-09-26-11.04.23.000000
    26/09/13 11:04:23,000000 +00:00
    2013-09-26-04.04.23.000000

  • Transaction completing with out the process

    hi all
    I have an SP which does Updation in table_1 and Table_2 Both having more than 8 columns where 4 columns are updating though this SP depends on the condition.
    My problem is i wrote this Query under transaction Block to update 4 cols of both tables..where column_4 is a Bit datatype column. The issue is apart from this column_4 all other columns are updating though this SP and transaction does Commit.
      Why it is happening? 
    I had also tried from application side and found data values are passing correctly to this Sp. also this is not happening in every cases it is happening only intermediatly . also development Server is not having such issue only production having this issue..Can
    any one help to troubleshoot? my question is With out updating column_4 how transaction does commit. in what all senarios Transaction does commit like this?

    Hi Jens...thanks for the Quick reply
    Kindly have a look on the skeleton of my SP.
    CREATE PROCEDURE Procedure_name 
     Col1 varchar(11),  
     col2 varchar(20),  
     Col3 varchar(100),  
    Col4 datetime  
    AS  
    BEGIN  
     SET NOCOUNT ON;  
    BEGIN TRY   
      BEGIN TRANSACTION BulkUpdate
    IF (LOWER(@Col2) = 'Somestring') 
      begin   
       UPDATE table_1  
       SET   
         Col1 = 1,  
         Col4 = 1,  
         Col5 = @TimeStamp,  
         Col6 = 'Somesting'  ,
         Col2 = 'Completed'
       where Col7 = @Col3  
    end
    else if (LOWER(@Col2) = 'anotherString')
    begin   
       UPDATE table_1  
       SET   
         Col1 = 2,  
         Col4 = 1,  
         Col5 = @TimeStamp,  
         Col6 = 'Somesting'  ,
         Col2 = 'Completed'
       where Col7 = @Col3  
    end
    IF (LOWER(@Col2) = 'Somestring') 
      begin   
       UPDATE table_2  
       SET   
         Col1 = 1,  
         Col4 = 1,  
         Col5 = @TimeStamp,  
         Col6 = 'Somesting'  ,
         Col2 = 'Completed'
       where Col7 = @Col3  
    end
    else if (LOWER(@Col2) = 'anotherString')
    begin   
       UPDATE table_2  
       SET   
         Col1 = 2,  
         Col4 = 1,  
         Col5 = @TimeStamp,  
         Col6 = 'Somesting'  ,
         Col2 = 'Completed'
       where Col7 = @Col3  
    end
     COMMIT  TRANSACTION BulkUpdate 
      END TRY  
     ROLLBACK  TRANSACTION BulkUpdate 
      DECLARE @ErrorMessage VARCHAR(4000);  
        DECLARE @ErrorSeverity INT;  
        DECLARE @ErrorState INT;  
        SELECT @ErrorMessage = ERROR_MESSAGE(),  
                @ErrorSeverity = ERROR_SEVERITY(),  
                  @ErrorState = ERROR_STATE();
        RAISERROR (@ErrorMessage, 
        @ErrorSeverity,
        @ErrorState 
      END CATCH  
    END  

  • Validate integer with a comma thousands seperator using struts Validator

    Using struts validator.
    have to validate the user entered value.
    The value entered should be a positive integer with a comma thousands seperator. the number need not be in thousands.
    I have as below to check for positive integer without comma seperator. but not sure how to validate if the user entered value with a comma seperator?
    i.e value like 25,349 // how to validate this?
    <field property="hrs" depends="integer,validwhen">
    <msg name="integer" key="errors.notvalid"/>
    <msg name="validwhen" key="errors.notvalid"/>
    <var>
    <var-name>test</var-name>
    <var-value>(*this* >= 0)</var-value>
    </var>
    </field>
    how to validate the user entered value with a comma seperator? Thanks.

    Found this in Struts' Building View Components section: Note: If your required form property is one of the Java object representations of primitive types (ie. java.lang.Integer), you must set the ActionServlet's convertNull init. parameter to true. Failing to do this will result in the required validation not being performed on that field because it will default to 0. This seems to be part of my problem. With it turned on, Validator picks up that the value is required. Now to figure out the issue with putting in a double value instead of an Integer.

Maybe you are looking for

  • Setup Problem - Need Help Please!!

    My problem is a low hum eminating from my speakers every time I connect my MPC2000 sampler to my audio interface. My setup consists of the MPC2000, a Dj Mixer, and my laptop which has an M-Audio interface which I use to connect the mixer & MPC. Basic

  • Change Due Date

    How can I change the Net due date? Lets say if I have net due date 11/12/2008, but I want to change this due date to 06/28/2008. How can I change it. Please help.

  • Online number...lost?

    I signed-up for a skype online number but did not immediately put money on the account. The system indicated that the online number was reserved for me for 90 days (verified when I logged out and tried to choose that number again). Anyway, less than

  • AE CC error at start up

    Every time I start AE CC I get the error: After Effects error: internal verification failure, sorry! {Unexpected FunctionBlock5 flag for FunctionBlock4}

  • Audio dies after 30 seconds

    When i put converted video files onto my iPod, i.e. season premiere of 24, the video and audio pause after exactly 30 seconds every time, then the video resumes a few seconds later, without audio. Any ideas?