Comma problem in charcter field

hi all,
i am developing a report for that i need to show the total amount for one field.i did it. but to show the amount i used a varible of type CHAR.but i want a  comma between the digits of toatal amount.
can any one tell me how to do this without any coding i mean by using any function module or something.
points will be awarded.
thanks,
gupta

Hi,
Refer to the following code:
DATA:BEGIN OF int_final OCCURS 0,
     bukrs LIKE bseg-bukrs,
     lifnr LIKE bseg-lifnr,
     belnr LIKE bkpf-belnr,
     h_dmbtr(15),
     END OF int_final.
WRITE INT_BSEG-H_DMBTR TO INT_FINAL-H_DMBTR CURRENCY WF_WAERS.
Hope this helps.
Reward if helpful.
Regards,
Sipra

Similar Messages

  • Problem with a field set to refresh after insert at Row level

    hello all,
    i have a problem with a field (a serial) which is set by a db trigger at insertion. The field "refresh after insert" is properly set in the Entity and everything is refreshed correctly when i insert data via an adf form in a jspx but when i want to insert programmatically nothing is refreshed. I insert data this way :
    ViewObject insertVO = findViewObject("myView");
    Row newRow = insertVO.createRow();
    newRow.setAttribute("mandatoryAttribute1",value1);
    newRow.setAttribute("mandatoryAttribute2",value2);
    <more init here but not the serial since it will be set by the DB trigger>
    insertVO.insertRow(newRow);
    but when i want to get back the value with "newRow().getAttribute("TheSerial");" i always get a null back and not the value set by the db trigger.
    One way to get the serial is to commit after each insert but i don't want to commit between inserts.
    i've tried to unset the refresh after insert and override the createDef() method to setUseReturningClause(false) as it's is advised in chapter 26.5 of the ADF 4GL dev. guide but in this case i have an exception JBO-29000: JBO-26041.
    How can i get the value back properly ?
    thanks
    -regards

    The data for the newly created row doesn't get inserted into the database until the commit is executed, so the insert trigger isn't called.
    If you need to get the value without committing, then you should implement the trigger programmatically and drop the trigger from the database. The code below shows how you could do this.
    ViewObject insertVO = findViewObject("myView");
    Row newRow = insertVO.createRow();
    SequenceImpl seq = new SequenceImpl("MY_SEQ", insertVO.getDBTransaction());
    Long next = (Long)seq.getData();
    newRow.setAttribute("primaryAttribute", new Number(next));
    ...You will need to replace MY_SEQ and primaryAttribute with the correct values for your example, but this should acheive what you want.

  • Problem with currency  field in smart form

    hi
    friends ..
    i had problem with currency field in smartform iam printing 5 currecny
    fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
    each fields for ex.
    33,260.00
    120.00
    0.00
    0.00
    0.00
    i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i  get the value in char variable i get 2260.20 which i dont want .
    so pls help me how to condense or shift left and print the currency field on right place.
    regards
    answers will be rewarded points.

    hi,
    this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
    eve if not solve the problem use the TEMPLATE node..
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • Check for a Comma (,) in an address field and send tht (,) as blank space t

    Hi,
    I have requirement , where I'm supposed to check for a Comma (,) in an address field and send tht (,) as blank space to the workarea.
    Do we have any FM or any check method for this.
    Plz tell me.
    Rohini.

    Hi,
      say address fields is "v_addr"
    DATA : v_len TYPE I,
               v_cnt1 TYPE i,
               v_cnt2 TYPE I value 1.
    v_addr = 'adresss,fiedls '.
    v_len = strlen( v_addr ) .
    DO v_len TIMES.
         IF v_addr+v_cnt1(v_cnt2)  EQ ','  .
             v_addr+v_cnt1(v_cnt2) = ' '.
            v_cnt1 = v_cnt1 + 1.
         ENDIF. 
    ENDDO.

  • Strip comma from a numeric field

    Hi all,
    Will you please help me providing sql statement to strip commas from a number/numeric field in the BI repository logical column? I do not want to use cast function to convert to character because we need to keep that field as numeric.
    I could only find string expressions to remove commas. I appreciate your help.
    Thanks,

    user10974817 wrote:
    Hi all,
    Will you please help me providing sql statement to strip commas from a number/numeric field in the BI repository logical column? I do not want to use cast function to convert to character because we need to keep that field as numeric.
    I could only find string expressions to remove commas. I appreciate your help.
    Thanks,Commas in a Numeric field, I could not understand it. It must be a VARCHAR column with only Numeric data, is it?
    you can use something like
    with data(col) as
      select '10,000,000' from dual
    select replace(col, ',') rep, translate(col, '1234567890,', '1234567890') tr
      from data;Maybe, if you can post some example table and sample data, we might be able to help better.

  • Comma problem with global string variable

    Hi,
    I'm fiighting with comma problem for global string variable. I've on page string for example "7nndqrr52vzyb,0" and by dynamic column link I'm assigning this string to global variable. Then I'm trying to display value of that global variable on another page but I see only string till comma, nothings more. I'm not sure what I'm doing wrong because when I'm trying to assign that value normally by computation process as a constant value is fine and see on another page correct string. I'll be really glad for help.
    Thanks
    Cheers,
    Mariusz

    When it tries to display the string, it sees the comma and wants to believe the string is terminated. You could escape the , in the string or replace it with a different character..
    See this link: http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#BEIGDEHF
    Thank you,
    Tony Miller
    Webster, TX
    If vegetable oil is made of vegetables, what is baby oil made of?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • I have a problem in text field

    Hi All
      I have a problem in text field.
       First time  Text field is displaying correctly and looking good. When i will go to otherscreen and coming back to same screen text field is displaying as a normal text field and it is not appling and jquery mobile theme.
    Here is the code
    Please help me to solve this issue  ASAP.
    Thanks and Regards,
          Siva.
    Edited by: sivamurthy on Sep 26, 2011 2:23 PM
    Edited by: sivamurthy on Sep 26, 2011 2:43 PM

    You'll have to supply some more information for us to help you.  Among other things:
        - What version of SUP are you using?
        - What devices/emulators are you seeing this problem on?
        - Have you added any custom code?  If so, what is it?

  • Put comma in the amount field

    Hi Experts,
    I need to put the comma in the amount field.
    eg: 3000.00 as 3,000.00.
    Is there any FM which can do this conversion.
    Thanks In Advance
    Asish

    The best way is type casting.
    Ex:
    Data: amount(10) Type p decimals 2.
    Value = '3000'.
    WRITE VALUE TO amount.
    Write amount.  "3,000
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • How to remove commas from xvbap-kwmeng field

    Hi All,
    Can you guys/gals help me ??
    I am having a issue with comma in xvbap-kwmeng field, I have value 1,662.000,
    How can I get rid of comma.
    and also please be aware that, I may have 1,662,123.000 situtation as well.
    How can I remove all comma's from by xvbap-kemeng field.
    Thanks
    Anitha.

    Hi,
    Check whether TRANSLATE statement works for you
    TRANSLATE xvbap-kwmeng USING ', '.
    In single quote use comma followed by a space after that use  CONDENSE  xvbap-kwmeng NO-GAPS.
    Regards,
    Selva

  • Check..numeric and charcter fields.

    Hi,
            iam checking the conditions for numeric and character.if the output is numeric then it can shift to right justify,else if it is charcter left justify.but the following code is not checking for charcter fields.
    data:p_input type c.
      data: pout type string.
      data: htype like DD01V-DATATYPE.
      if htype = 'CHAR'.
        shift htype LEFT DELETING LEADING space.
      else.
        CALL FUNCTION 'NUMERIC_CHECK'
        EXPORTING
          STRING_IN  = P_INPUT
        IMPORTING
          STRING_OUT = POUT
          HTYPE      = HTYPE.
        SHIFT htype RIGHT DELETING TRAILING space.
      endif.
    plz help me..
    thanks

    hi,
    try sth like that:
    parameters p_input(50).
    DATA: pout TYPE string.
    DATA: htype LIKE dd01v-datatype.
    CALL FUNCTION 'NUMERIC_CHECK'
         EXPORTING
              string_in  = p_input
         IMPORTING
              string_out = pout
              htype      = htype.
    IF htype = 'CHAR'.
      SHIFT pout LEFT DELETING LEADING space.
    ELSE.
      SHIFT pout RIGHT DELETING TRAILING space.
    ENDIF.
    Andreas

  • Commas in the text field splits column in csv download file.

    Hi,
    I have developed an upload/download application in APEX 2.0. It seems to be that when the text values contain commas it divides the content to the next column when downloaded to a csv file. Is there any solution the problem? Please help!
    Mustak

    Hi Mustak,
    I think you have to enclose all your fields by " in your CSV file to avoid this.
    I f you use the standard CSV export of a report, you have a field in the report attributes, CSV section, for enclose your fields.
    If you have written your own PL/SQL procedure , so you have to adapt it.
    Mike

  • Oracle distrebuted document capture commit problem

    hi,i am working with ODDC v10.1.3.5 using (UCM 11g commit driver) and every thing is going well except one problem that is when i commit to ucm there is a field called(subject) is not commited to UCM even it is maped through the commit driver .
    at the document title field(at Commit Driver Configurations) ,i use it as a compination of multible fields (Name-Subject-Date) ,UCM can see the value of (Subject) Field at this position but at the (subject) field (on UCM) it is empty .
    i dont know what is the reason for this issue ,is it a problem whith the commit driver ?
    any help will be appreciated .
    Regards
    H.Sweiss

    Thanks Jiri,
    I have started with the mandatory metadata fields only. I have resolved the previous problem.
    It was because Client Access folder was not properly set.So the .pak files was still residing in the client access folder.
    But now all batches are present in the Batches folder and the logs says
    eg: 07/13/10 04:48:10 PM 19360358_19360532 extracted into C:\Program Files\Oracle\Document Capture\WebPages\ClientAccess\19360358_19360532.
    07/13/10 04:48:10 PM Start processing DS19360358. File Cabinet: captureDocuments; Create User: TEST; Modify User: TEST; Computer Name: MUKESHLT1\MUKESHLT1; Create Date: 7/13/2010 4:45:57 PM; Modify Date: 7/13/2010 4:48:52 PM.
    07/13/10 04:48:10 PM Client Version Number: 10.1350.26.
    07/13/10 04:48:11 PM DS00000000000023 (ID: 24) created in captureDocuments with 1 pages from DS19360358.
    07/13/10 04:48:11 PM DS00000000000023 (ID: 24) is committed, number of documents: 1, total page(s) committed 1.
    07/13/10 04:48:11 PM Post processing batch DS19360358. File Cabinet: captureDocuments; Batch ID: 24; Create User: TEST; Modify User: TEST; Computer Name: MUKESHLT1\MUKESHLT1; Create Date: 7/13/2010 4:45:57 PM; Modify Date: 7/13/2010 4:48:52 PM.
    07/13/10 04:48:11 PM 19360358_19360532 deleted.
    07/13/10 04:48:11 PM
    But it is still not sending to UCM.
    Is there any setup to commit these batches?

  • Very urgent : Problem in currency field while downloading file from excel.

    I downloaded a excel file to my ABAP program.It contains a currency field which has comma in it. When i do operations on the currency field it says unable to interpret the number.Can anybody help me on this.
    Message was edited by:
            Bharath Srinivas
    Message was edited by:
            Bharath Srinivas

    Hi,
    Try this. In ur excel right click on that column wher u have the currency, go to format cells and there uncheck the box which shows 'Show tousands (,) seperator).That shud solve the problem.
    Thanks
    Vasudha

  • Dot - Comma problem in WS_download --

    I have 3 fields in the internal table.
    I want to download all those fields in to excel sheet based on the selection screen either dot or comma. I am using ws_download. I want to display all records in left side.
    I have declared all 3 fields as characters.
    Data: a, b,c type c.
    If you select dot all the columns are displaying right side.(perfect)
    Now if I select comma all the columns are displaying in right side.
    Now I want to display all the records are right side even if its comma or dot.
    Pl send me the sample code.

    HI!
    It's not exactly an ABAP problem, but maybe an excel problem.
    In ABAP you can remove all dots from a string with the following command:
    REPLACE ALL OCCURRENCES OF '.' WITH '' IN column1.
    In excel you can declare your cells as a text, or as a number. As text it is always aligned to the cell's left side, as a number it is aligned to the right side.
    Select a few cells, then right click on them and choose cell properties.
    The algnment of the texts, you can overrule with the manual align buttons (left, right, center...)
    Regards
    Tamá

  • Problem with Hidden Fields

    I have generated an JSPX page using JHeadStart then i added a hidden field to the page and bind it to a back bean.
    i set the value of this hidden field in the page load event of the page.
    the problem is that when the page is submitted (e.g commit action) the value if the hidden field is returned to null, although the page still in the exits and i didn't navigate to another page ????

    In that case, can you please create a test case based on the HR Schema (see http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html#setuphrschemaanddata)?
    Also include a non-JHeadstart test case in which the problem does not occur, based on the same HR Schema (possibly in a different ViewController project based on the same Model project).
    Please e-mail both to idevcoe_nl "at" oracle "dot" com,
    * removing the WEB-INF/lib folder from the web root (public_html) before zipping, it makes the zip much smaller
    * renaming the .zip file to something like .zipped before attaching it to the e-mail (otherwise our mail server will not process it)
    * including detailed steps to reproduce the problem, and how to see that it works OK in the other test case.
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

Maybe you are looking for

  • Help, I can't read or write DVDs

    I bought a Mac Pro 2.66 2 weeks ago and I just tried burning a DVD. It turns out my Sony D150A can't recognize any of my (ironically) blank Sony DVD-R discs. Not only doesn't it recognize blank media, but it also doesn't recognize any DVDs burned wit

  • Internet won't connect. Works on iPhone but won't open on MacBook

    The internet won't connect, I get an exclamation point on my icon. My two iPhones connect ok but I can't get my Mac book to connect. How do I check, my diagnostics say I should call my provider but the other devices work great.

  • Buying My First Mac...Please Your Advice is Needed

    Dear Members , Im new here , i would like to ask im glad to join apple's community. Im looking to purchase my first apple computer, the plan is to purchase iMac 27" quad core i7 8gb ram Macbook pro solid state 128gb and maybe Mac mini for my home the

  • Cat 3750 Switch: Dynamic vlan assignment

    Hey guys, I am trying to configure 802.1x on the switch and authenticate users against a Radius server. My radius server is FreeRadius running on Redhat. The authentication works fine but the switch just doesn't take the VLAN assigned by the server.

  • Missing scroll bars

    From time to time the scroll bars go missing in Safari 4. To get the back I need to open a new tab. Never happened in version 3.