NUMBER SHOULD BE SEPERATED BY COMMA

HI,
I want the number to be displayed in comma
i tried with the following code, but i am getting the following error like
  1* SELECT TO_CHAR(123456123.122234,'FM999,999,999D99')  FROM DUAL
SQL> /
SELECT TO_CHAR(123456123.122234,'FM999,999,999D99')  FROM DUAL
ERROR at line 1:
ORA-01481: invalid number format modelhow to solve this..

Like this?
SELECT TO_CHAR(123456123.122234,'FM999,999,999.000009')  FROM DUAL;
123,456,123.122234

Similar Messages

  • Fields should be quoted seperated by comma while transferring to text file

    Hi Experts,
    I need to show the file contents within double quotes and seperated by comma using 'GUI_DOWNLOAD'
    For eg. The text file contents that are transferred to presentation server should look like,
    "00210000001400","21000000149","","0000149","0014","10"
    "00210006121500","21000612151","","0612151","1215","10".
    I was coded like
    **CONCATENATE c_quotes lv_matnr14 INTO lv_first.**
            **CONCATENATE lw_final-extwg+0(2) c_quotes INTO lv_last.**
            **CONDENSE lv_first NO-GAPS.**
            **CONDENSE lv_last NO-GAPS.**
            **CONCATENATE lv_first**
                        **lw_final-ean11+3(11)**
                        **lw_final-yyshortdesc**
                        **lw_final-ean11+7(8)**
                        **lw_final-ean11+9(4)**
                        **lv_last**
                   **INTO lw_ps_data**
                   **SEPARATED BY c_comma1.**
            **CONDENSE lw_ps_data NO-GAPS.**
            **APPEND lw_ps_data TO rt_ps_data.**
    Can u please suggest if there is other better way than this.....?

    try ABAP forum for a better response - ABAP Development

  • How to print space as thousand seperator and comma as decimal seperator

    Hi All,
    I have requirement where I need to print the amounts with space as thousand seperator and comma as decimal seperator.
    I have a field wrshb which is of type mhnd-wrshb. currently I am printing this. In the adobe layout I have declared this coloumn as Decimal field.
    Now in the output it is printing as comma as thousand seperator and dot as decimal seperator.
    For example ,currently the value is printing as 32,811.41
    but I want the amount as 32 811,41
    I have declared the variable as char16,  using write statement in the interface I moved the value from currency field to char field.
    Then in debugging i checked the value comes as 32,811.41 and it goes to dump with teh reason-cannot interpret as a number.
    Can anyone help me in fixing this?
    Thanks and Regards,
    Karthik Ganti.

    Hi Adam,
    As per initial requirement, I have set the format such that the amount is printing in below format as required.
    Locale---Italian.
    Space as thousand seperator and comma as decimal seperator.
    for example 1 234,45
    As some of the Currencies will not have decimals, now users would like to print amount without decimals. For example in my case amount  printing in KRW ( Korean currency ) is also similar to the above format which is wrong.
    for example Now amount is printing as 55 000,00. But actually it should be 550 000. Similarly for JPY currency also, as it doesnot haves decimals ( checked in TCURX table ).
    I have written some logic in the interface. below is the logic.
    WRITE:
        wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
    *READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
      IF sy-subrc  = 0.
      IF lwa_tcurx-currdec = '0'.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      else.
       REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
        REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
    endif.
    ENDIF.
    a. when the write statement gets executed amount will be in ,. ( 1,234.45 )format. Then my logic gets executed correctly. In this company code is CH10 ( EUR ) and KR10.
    b. But sometimes after the write statement gets executed amount will be in ., format ( 1.234.45 ). In this case my logic works, but gives the wrong value. In this case company code is VN10 ( EUR )
    In both the cases currency is EUR.
    Will the decimal format change accordingly based on the company code code currency.Can you please tell me why write statement behaved differently.
    Do I need to change any locale in the adobe form, or any other logic to be written in interface. ?  I am trying it out from long time, but not able to fix it.
    Can  you please help me how to achieve this ?
    Thanks and Regards,
    Karthik Ganti.

  • How to make Multiple parameters to sql query string seperated by ,(comma) ..

    Hi,
    I would like to konw how I can make multiple parameters to sql query string seperated by ,(comma)  ..
    For example, this parameters can be printed like 'abc,dde,ggf,eeg' ,once I use  "join(Parameters!rpCode.Value,",")" with report builder , 
    By the way, when I test this multiple parameters by Query Designer of report builder there was no problem,.(using Define query parameters, I put abc,dde,ggf,eeg)
    however, when I run this report , it won't be executing ,  with (rsErrorExecutingCommand)
    Plz, help me....

    If its sql query then it should like this
    Select t.*
    from table t
    inner join dbo.ParseValues(@Parameters,',')f
    on f.val = t.ID
    ParseValues can be found him
    http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html
    or easier way is
    Select t.*
    from table t
    where ',' + @Parameters + ',' LIKE '%,' + CAST(t.ID AS varchar(10)) + ',%'
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Substring of string seperated by commas

    Hi All,
    I am trying for a logic that i have some emp ids as a string seperated by commas and i need the substring of emp ids as below.
    Can any one help in splitting the string as below.
    public static void main(String args[]) {
             String empId = "1,2,3,4,5,6,7,8,9,10";
            int i;
               int count = 9;
               for (i = 0; i <= count; i = i + 3)
                 System.out.println("Emp IDs are : " +empId);
                  Result is:
    Emp IDs are : 1,2,3,4,5,6,7,8,9,10
    Emp IDs are : 1,2,3,4,5,6,7,8,9,10
    Emp IDs are : 1,2,3,4,5,6,7,8,9,10
    Emp IDs are : 1,2,3,4,5,6,7,8,9,10
    But i want the result like:
    Emp IDs are : 1,2,3
    Emp IDs are : 4,5,6
    Emp IDs are : 7,8,9
    Emp IDs are : 10
    thanks for your help.

    It can be helpfull to split the question into smaller pieces.
    How many id's do you have. When you have the complete String use
    //put the string in an array
    String[] stringToArray = longIdString.split(",");
    //How any id's
    int numberOfIdInArray = stringToArray.length;'
    Now you know the number of id's.
    Divide the number by 5 and you know the number of id's in one new line
    Then make 2 loops. For 5 times add the original string with a begin and endpoint in a new string.
    package test;
    public class SplitString {
      public static void main(String[] args) {
      //the initial id's
      int numberOfIds = 5000;
      final int NUMBEROFLINES = 5;
      //Make a long string
      String longIdString = "";
      StringBuilder builder = new StringBuilder();
      for(int i = 1; i <= numberOfIds; i++){
      builder.append(i + ",");
      longIdString = builder.toString();
      System.out.println("Original Array: " + longIdString);
      //put the string in an array
      String[] OriginalArray = longIdString.split(",");
      //How any id's
      int numberOfIdInOriginalArray = OriginalArray.length;
      System.out.println("Number of Id's: " +numberOfIdInOriginalArray);
      //Number of id's in one row
      int numberOfIdInOneRow = numberOfIdInOriginalArray / NUMBEROFLINES;
      System.out.println("Id's in one row: " + numberOfIdInOneRow);
      //Make 5 strings and put them in a new array
      String[] theNewStrings = new String[NUMBEROFLINES]; //Aray where you can store the new Strings
      int startpoint = 0;
      int endpoint = startpoint + (numberOfIdInOneRow);
      for(int i = 0; i < NUMBEROFLINES; i++){
      StringBuilder buildNewString = new StringBuilder();
      for (int j = startpoint; j < endpoint; j++){
      //Remember that the first value in an array is at index 0
      buildNewString.append(OriginalArray[j] + ",");
      theNewStrings[i] = buildNewString.toString();
      //Create a new start and endpoint for the next String
      startpoint = startpoint + numberOfIdInOneRow;
      endpoint = startpoint + (numberOfIdInOneRow);
      //Print the new 5 strings
      for(int i = 0; i < theNewStrings.length; i++){
      System.out.println(theNewStrings[i].toString());
    In the "real world" you have to program the rounding of the division.

  • Billing document and Excise invoice document number should be same

    Dear SD gurus
    kindly help me following client requirement
    in order to cash (domestic & Exports)
    and sto (intra and Inter plant to plant) scenarios the billing document number and excise invoices number should trigger  same number
    Example order- delivery- pgi- commercial invoice (VF01) --- billing document no.1234 here it should create automatically excise invoice no 1234
    in J1iin disply it show ref document no( billing document no: 1234.    & excise invoice no 1234

    Dear All,
    As per the standard it is not possible. But some times client says why two different numbers ranges we require same numbers ranges for both billing doc. & Excise invoice.
    Please go through the following link
    http://saptechsolutions.com/pdf/SDDocumentNumberRangeEnhancements.pdf
    Also check with the Abaper with explicit enhancement by maintaining the number range values in Custom table where we go when ever there is no option for(if client is not convincing) but which is not reccomandable but left out with no choice when client is demanding.
    Regards,
    S.Himavanth.

  • Get the column values in a single row seperated by commas

    Hi
    i have two tables project_baseline and project_resource which have the foreign key project_id from the base table project_details. Now iam trying to retrieve data from these tables using the below query :
    select distinct b.TASK_NAME,r.RESOURCE_NAME,() from project_baseline b inner join project_resource r on R.PROJECT_ID=B.PROJECT_ID group by b.TASK_NAME,r.RESOURCE_NAME
    Below is the output snippet :
    TASK_NAME RESOURCE_NAME
    TEST DESIGN PARAGI M
    TEST DESIGN RAJAN M S
    TEST EXECUTION VIBHU ARMA
    TEST EXECUTION PRATHAB GARG
    TEST EXECUTION NAGABHUSHAN G K
    TEST DATA PREPARATION RAJAN M S
    TEST DATA PREPARATION SHIVA MARAN
    TEST CASE REWORK VISWAN RAM
    TEST CASE REVIEW NAGABHUSHAN G K
    REGRESSION SANGEET
    PROJECT SUPPORT VIBHU ARMA
    PROJECT SUPPORT PRATHAB GARG
    PROJECT SUPPORT PARAGI M
    PROJECT SUPPORT NAGABHUSHAN G K
    PROJECT SUPPORT SANGEET
    PROJECT CLOSURE PRATHAB GARG
    i need to get the resource_names in a single row seperated by comma for a single task like following:
    TASK_NAME RESOURCE_NAME
    PROJECT SUPPORT VIBHU ARMA,PRATHAB GARG,PARAGI M,NAGABHUSHAN G K,SANGEET
    Could anyone please help me to get the query for the above formated output?
    Thanks in advance
    Meera
    Edited by: 928378 on May 22, 2012 5:20 AM

    Hi,
    It can be done using xmlagg function.
    For Example :
    Table Data..
    DEPTNO     ENAME
    20     WARD Tree
    23     Shank
    30     BLAKE
    10     MILLER
    30     MARTIN
    10     CLARK
    20     SCOTT
    30     TURNER
    20     ADAMS
    30     JAMES
    20     FORD
    30     BLAKE
    Query:
    SELECT deptno,
    RTRIM (XMLAGG (XMLELEMENT (e, ename || ',')).EXTRACT ('//text()'),
    ) NAME
    FROM emp
    GROUP BY deptno;
    Output :
    DEPTNO     NAME
    10     MILLER,CLARK
    20     WARD Tree,FORD,ADAMS,SCOTT
    23     Shank
    30     BLAKE,TURNER,BLAKE,JAMES,MARTIN
    Thanks,
    Shankar
    Thanks,
    Shankar.

  • I would like to move 2 users to creative cloud, but maintain all the other users (myself included) on CS5. Can I still get the reduced monthly rate? What serial number should I use?

    I would like to move 2 users to creative cloud, but maintain all the other users (myself included) on CS5. Can I still get the reduced monthly rate? What serial number should I use?

    Hi Thomasjewell,
    Yes you can avail the discounted prices even you are upgrading the product just for two users. You can use the serial number for your Creative Suite 5 product.
    You can follow the link: https://creative.adobe.com/plans in order to purchase Creative Cloud for Teams product.
    Let me know if it works or not.
    Thanks,
    Ratandeep Arora

  • PR Line Item Number should be Same for PO Line Item Numebr

    Hi Gurus,
    I have a rare Requiremenet. I will convert Only one PR to PO(So It is one to one) PR Item Number should Be Equal to PO Item Number.. can anybody suggest me is there any way to achive this.
    Explanation:
    Actually we will create third party Sale order and with A BAPI we  create PO in background.
    I will change Sales Order qty(Decrease directly or increse with schedule lines) so new PR items will be generated or Existing may be deleted. now i want my PR Item number should be equal to PO Item Number.
    In BAPI we have a provision to provide PR number still system is taking in sequential intervel of 10,20,30....
    How to overide this...
    EX:
                     PR               PO
    ItemNO      10              10
    ItemNO      30              30
    Thanks
    Pradeep

    Hi Monika,
    Thanks a lot my issue got resolved. annd i have another question regarding BAPI_PO_Change.
    Actually i am passing Price from PR to PO and i am making no_price_from_po while chenging PO and i am passing PRICE from SO to PO. Below scenario will explain My requirement.
    In third party we are creating Automatic PO from SO. we have developed one ZTrasaction for SO Approval in two stages, in second level Approval we are converting PR to PO.
    while creating we are able to pass Price value from SO to PO From Condition in the Pricing procedure.
    while changing we have 3 scenarios
    1.Changing Existing PR Item quantity
    2. Adding one more schedule line to the Existing SO so it will create one more PR Item
    3. we are adding one more Line Item in the SO in this case also one more PR Item will be generated
    we are able to convert each PR Item will be one PO line Item 
    But while changing we will have PO still we don't want to copy the Price from Previous Document.
    we have activated no_price_from_PO in the BAPI but still system is taking from previous Document.
    Pl suggest me if there anyway to over come this issue...
    Thanks
    -Pradeep

  • Material Number should be based on Material Group

    Hi Experts,
           I have a Requirement in MM01 the material number should be depends on material
    Group . The material number should generate base on material group.
    Is there Any BADI / Exit For this.
    Regards,
    Ravi.

    Hi
    In the method CHANGE_AT_SAVE
    parameter TI_RSEG_NEW uses
    <b>MRM</b> Type Group is used which consists of
    TYPES: BEGIN OF mrm_idoc_data_ers,
             s_rbkp       LIKE  rbkp,
             t_rseg_x     LIKE  rseg  OCCURS 0,
             t_ekbe1      LIKE  ekbe  OCCURS 0,
             t_ekko       LIKE  ekko  OCCURS 0,
             t_ekpo       LIKE  ekpo  OCCURS 0,
             t_bset       LIKE  bset  OCCURS 0,
             t_t001w      LIKE  t001w OCCURS 0,
             t_mara       LIKE  mara  OCCURS 0,
             t_makt       LIKE  makt  OCCURS 0,
             t_marm       LIKE  marm  OCCURS 0,
             t_eina       LIKE  eina  OCCURS 0,
             t_essr       LIKE  essr  OCCURS 0,
             s_addr1_val  LIKE  addr1_val,
             s_lfa1       LIKE  lfa1,
    it consists of    
            t_mara       LIKE  mara  OCCURS 0,
             t_makt       LIKE  makt  OCCURS 0,
    so from these tables you get MATKL (material group) use it along with GL account as the MRM  type group consists hell lot of info.
    Reward points if useful
    Regards
    Anji

  • Transaction COR2 release userexit , Batch number should be blank

    Hi,
         My requirement is , when i release process orderf rom COR2 tcode, the batch number should come us blank. I used EXIT_SAPLV01Z_002 from function module VB_NEXT_BATCH_NUMBER and made the batch number as blank. But after that exit, there's a condition in VB_NEXT_BATCH_NUMBER saying if batch number is blank then throw an error. Is there any way, i can get the batch number as blank after releasing the process order.
    Thanks,
    Vandana

    Hi Vandana,
    I don't recommed the use of a FM not release by SAP. You could have problems in future SAP versions or when you apply support packages.
    Regarding the main request: you can manage the Batch creation by Plant and Production Scheduling Profile.. So you don't need an exit for it. This is setup in CORY:
    Please try...
    Kidn Regards,
    Mariano

  • Which port number should be entered to create an icloud email account?

    Which port number should be entered to create an icloud email account?

    You do not have to use any port number. Just go to System Preferences on your Mac and click on iCloud (OS X 10.7.5 and later).

  • CST & VAT Amount should be seperated....

    Hi,
    In my report 1 column is Tax Amount.....I want that it should be seperated by CST Amount and VAT Amount...I means:---e.g.
    Doc. No..................Tax Amount................CST Amount.............VAT Amount
    1000001.....................8000.00......................8000.00.......................................
    1000002.....................5000.00......................5000.00.......................................
    1000003.....................7000.00........................................................7000.00
    1000004.....................4000.00......................4000.00.......................................
    Here i want that, from tax Amount...CST & VAT amount should be displayed seperate....
    (look at doc. no. 1000003, here from tax Amount it goes to VAT Amount)
    Please let me know what should be condition here......
    Thanks...

    Hi Prince
    In classical output you can do something like this
    WRITE : / 1 doc_num, 10 tax_amt, 20 cst, 30 vat.
    So vat values would always be displayed after a particular length
    Pushpraj

  • Sales order number should be sent as a SMS to customer automaticaly

    Hi,
         i want whenever i raise the SO that respective SO number should gone to the customer as SMS automatically.
    Please suggest how i can do this?

    Please refor below below link it will give some information.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80df3810-957d-2b10-e496-f73551c51582

  • What number should I put in "Number of Qualifying system for right to copy" in OS mountain lion up-to-date program form?

    what number should I put in "Number of Qualifying system for right to copy" in OS mountain lion up-to-date program form? I'm a newbie on mac, just bought MBA two weeks ago. I've tried software update but it is not upgraded to mountain lion. what should I do to upgrade for free?

    I'm on the page "https://uptodate.apple.com/UtdPrepareAction?program=Mountain%20Lion&locale=en_au"
    and I still have the same question as the original poster, what number should I enter into the field:
    "Number of qualifying systems".. cause "1" doesn't do it.. and the other numbers don't work... >:___:<

Maybe you are looking for