CONVERSION EXIT to remove thousand separator from quantity field

HI
NEED HELP
do u know any  FM or CONVERSION EXIT which remove thousand separator from quantity field.
Eg. 1,234,567.11 SHOULD be displayed as 1234567.11

Hi Chetanpatil.
Try this:
If your quantity has thousand separator as comma:
translate lv_quantity using ', '.
condense lv_quantity.
If your quantity has thousand separation as dot:
translate lv_quantity using '. '.
translate lv_quantity using ',.'.
condense lv_quantity.
You'll need to check for the user thousand separator configuration in table USR01 field DCPFM or by calling BAPI_USER_GET_DETAIL and act accordingly.
Regards,
Andres.

Similar Messages

  • Remove thousands separator from chart (x, y axis)

    Dear all,
    my first application is almost completed, but some finishings are still missing.
    E.g. the display of the year in the chart contains thousands separator. How they can be removed or avoided? Any idea?
    Thank you so much!
    Mehtap

    Hi Tammy,
    thanks. But this does not seem to work for Calendar Year.

  • How can we remove the following zeros from quantity field ?

    Hi All.
    how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
    eg:getting output zqty = 2.000
    but i need           zqty = 2.
    help me to reslove this issue.
    Regards.
    jay

    Hi,
      While populating the field catlog do the following thing to   avoid zeros.
      wa_fieldcat-tabname = 'I_OUTPUT'.    " Curr
      wa_fieldcat-fieldname = 'FWAER'.
      wa_fieldcat-seltext_l = text-023.
      wa_fieldcat-no_zero = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR  wa_fieldcat.
    Thanks,
    Khushbu.

  • How  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL)

    Hi Experts,
    Can you please tell me to how  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL) when saving of the shipment document.

    shipment cost calculation only on the Leg level and not on header level. Currently a lot of confusion happened after creating the shipment cost document and found that the status is u201CBu201D.
    now we intend to define detailed specifications to how to create this new user exit to update the shipment cost relevancy at shipment header.
    The main functionality of the user exit  to be created is to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL).can u pls tell how to do this.

  • How can I remove ASCII text from a field when I use it in a query

    How can I remove ASCII text from a field when I use it in a query?
    I am running a select statement on a table that appears to have ASCII text in some of the fields. If I use these fields in the where statement like the code below nothing returns:
    SELECT FIELD1 FROM TABLE1 WHERE FIELD1 IS NULL
    But the field looks empty if I do a straight select without the where clause. Additionally, one of the fields has text but appears to be padded out with ASCII text, which I need to strip out before I can use this field in a where or join statement. I have tried using a trim, ltrim, rtrim, to_char, nvl, decode and nothing works. When I use excel to run the same query it looks as if these ASCII fields are boxes.
    I have asked our DBA team to see what they can do to prevent these from going into the table, but in the mean time I still need to run this report.
    Do you have any suggestions?

    Can you provide an example? I've been trying (for
    example) "select translate(' test one', ascii(' '),
    'X') from dual" with no luck.
    Thank you.To replace space, you should query like this:
    select translate(' test one', chr(32), 'X') from dual instead of select translate(' test one', ascii(' '), 'X') from dual Thanks,
    Dharmesh Patel

  • How can I remove thousand separators from nos. that are converted to text?

    Its all in the title.
    I have a string formula to concatenate various string fields together which works fine, however I come a little unstuck when adding a number to the end of the string that is 1000 or greater.
    I dont wish to see the comma (thousand separator).
    I use the Totext formula to convert the number to text
    eg Totext (,0) where might be a Year 2008
    This would appear as 2,008
    I also have audit numbers that could go into the millions and have 2 commas.
    Is there an easy way to remove them, or should I build up a string character by character using a loop formula?
    I am using CR 11.
    Thanks

    Hi Richard,
    Try this :
    Totext(,"####")
    Thanks,
    Sastry

  • Conversion routine to remove leading zeros from nonnumeric values.

    Hi,
    Can anybody tell me any conversion routine while can remove leading zeros from a character value.
    Eg : 
    input : asdfe
            output : 0000asdfe and vice versa
    I tried with Alpha conversion routine but that is useful only with numeric values.
    Please help.
    Regards,
    Deepti Jain.

    Hi,
    See the following program, and the same logic you can apply in Transfer Rules/Transformations. Take ABAPer help.
    REPORT  ZALPHA_INPUT.
    DATA: ZI(18) TYPE C,
          ZO(12) TYPE C.
    DATA: ZS(12) TYPE C,
          ZR(18) TYPE C.
          ZI = '000000099999889925'.
          ZS = '099999889925'.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT         = ZI
       IMPORTING
         OUTPUT        = ZO.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          INPUT         = ZS
       IMPORTING
         OUTPUT        =  ZR  .
    Write:/   ZI.
    Write:/   ZO.
    Write:/   ZS.
    Write:/   ZR.
    Thanks
    Reddy

  • How can I cunningly remove thousand separators from nos. converted to text?

    Its all in the title.
    I have a string formula to concatenate various string fields together which works fine, however I come a little unstuck when adding a number to the end of the string that is 1000 or greater.
    I dont wish to see the comma (thousand separator).
    I use the Totext formula to convert the number to text
    eg Totext (,0) where might be a Year 2008
    This would appear as 2,008
    I also have audit numbers that could go into the millions and have 2 commas.
    Is there an easy way to remove them, or should I build up a string character by character using a loop formula?
    Thanks

    Hi,
    1)Whatt version of Crystal reports are you using?
    2) Do you see this issue in the CR designer? If so, please post to the Report Design forum:
    [SAP Crystal Reports;
    Note that if the issue exists in the CR designer, the issue will exist at runtime also and needs to be resolved in the designer 1st.
    3) If this is only happening in a runtime application, specify the CR SDK used and the development language used as well as version of the development language.
    Amit

  • Remove carriage returns from a field in an oracle table

    I have a field that is defined as a LONG in my oracle table; the data contained in this field has carriage returns/line feeds (it's free form text); as i'm selecting data from this field, i need the carriage returns removed so that the data from this field all appears on one line.
    I tried using the TRANSLATE function to convert the carriage returns to something else, but that doesn't work.
    Example:
    Select comment from Notes:
    COMMENT
    the applicant called for an appointment;
    an exam was scheduled for 4/1/05 at 9am;
    called applicant to confirm app
    this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled for 4/1/05 at 9am; called applicant to confirm app"
    How can i do this? Can the decode function be used to remove the carriage returns in this field?

    when i used translate its giving correctly,
    SQL> ed
    Wrote file afiedt.buf
    1 select translate('the applicant called for an appointment;
    2 an exam was scheduled for 4/1/05 at 9am;
    3 called applicant to confirm app
    4 this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled
    5 How can i do this? Can the decode function be used to remove the carriage returns in this field
    6* ',' ') from dual
    SQL> /
    TRANSLATE('THEAPPLICANTCALLEDFORANAPPOINTMENT;ANEXAMWASSCHEDULEDFOR4/1/05AT9AM;CALLEDAPPLICANTTOCONF
    the applicant called for an appointment; an exam was scheduled for 4/1/05 at 9am; called applicant t
    SQL> ed
    Wrote file afiedt.buf
    1 select 'the applicant called for an appointment;
    2 an exam was scheduled for 4/1/05 at 9am;
    3 called applicant to confirm app
    4 this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled
    5* How can i do this? Can the decode function be used to remove the carriage returns in this field
    SQL> /
    'THEAPPLICANTCALLEDFORANAPPOINTMENT;ANEXAMWASSCHEDULEDFOR4/1/05AT9AM;CALLEDAPPLICANTTOCONFIRMAPPTHIS
    the applicant called for an appointment;
    an exam was scheduled for 4/1/05 at 9am;
    called applicant to confirm app
    this needs to be extracted as: "the applicant called for an appointment; an exam was scheduled for 4
    How can i do this? Can the decode function be used to remove the carriage returns in this field?
    SQL>

  • Remove red border from required fields

    Is there a way to remove the red border from required fields.?

    No, not the same error message that Acrobat issues. You'll have to do your own using JavaScript. The script would check each of the required fields and alert the user if anything was wrong, but you'd have to set up your own "Print" button on the form and convince your users to use it. But they can always choose not to use it and orint without going through the checking process.
    Even though there is a Document Will Print event that you can attach code to, there is no way to prevent printing in the event.

  • Remove trailing zeroes in quantity field.

    Hi all,
    I am having quantity field in ALV grid display : VBAP-KWMENG. Iam getting quantity value as 1,000.My requirement is to get quantity value as 1.(without ',' and zeroes).
    Suggest me a suitable solution.
    Thanks all.

    Other way is check for the below code ..
    DATA:
      lv_decimal TYPE f DECIMALS 3,
      lv_string  TYPE string.
    lv_decimal = '22.010'.
    WRITE lv_decimal TO lv_string.
    SHIFT lv_string RIGHT DELETING TRAILING '0'.
    * also delete trailing '.', if possible
    SHIFT lv_string RIGHT DELETING TRAILING'.'.
    CONDENSE lv_string NO-GAPS.
    * now no trailing zeros are in the decimal stored in LV_STRING

  • How to remove carraige return from the field while loading external table

    I am facing an issue of not getting rid of carraige returns present in the fileds of the source .csv file while loading the records into external table.
    I had tried using LRTRIM, but it does not help.
    The error I am getting is:
    KUP-04021: field formatting error for field POPULATION_DESCRIPTION
    KUP-04037: terminator not found
    I am pasting one record out of the .csv file which is causing this error as below:
    "Business Card Accounts
    ",123,7 BizCard - Gamers,Control,"Business Card Accounts
    ",75270,75271
    You can see the carraige return in the 1st field as well as 5th field. Filed are separated by commas & eclosed by double quotes.
    Could anybody help on this please?

    Can you copy the file to an external table only version, and then dos2unix it?
    Alternatively, you can use the ACCESS PARAMETERS area in your external table definition to set that your RECORDS DELIMITED BY carriage returns, instead of the default.
    Check out the example here http://www.psoug.org/reference/externaltab.html

  • How to remove extra zeros in quantity field.

    I am retrieving the field  which is of type QUAN(13) and decimals 3. The  values are stored as
    1,000
    20,000
    50,000
    2,340
    23.50
    Now i want to output as 1, 20, 50 , 2.34, 23.5
    I want to remove the additional zeros. Is there any FM for the same.
    satya

    hi
    Check this similar thread
    https://forums.sdn.sap.com/click.jspa?searchID=700505&messageID=401791
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Message was edited by:
            Rahul Kavuri
    Edited by: Alvaro Tejada Galindo on Dec 30, 2009 11:21 AM

  • Removing IT-resource from Decode Field in Lookup

    Hi
    I've created a Recon Lookup that fetches some AD groups for me.
    The name of the IT-resource is added automatically in the Decode field. Is there any way I can override this?
    Now it looks like this:
    Active Directory~TST_Group1
    I want it to be just:
    TST_Group1
    Any help would be appriciated. :)

    Yes, that might be a possibility. I'll let it be open for discussion a little while longer, I did hope that I was able to do this by either editing the xml for the existing Scheduled Task, or via the filter.
    Thanks for the quick reply.

  • Conversion exit for lifnr (Vendor No.)

    Hi,
         I am looking for conversion exit to convert vendor No. from xx to 00000000xx.
    Thanks for Ur time.
    Cheers,
    Sam

    Hi,
    You can use CONVERSION_EXIT_ALPHA_INPUT function module.
    CONVERSION_EXIT_ALPHA_INPUT
    Exporting.
    Filed = LIFNR
    Importing
    Field = LIFNR
    Regards
    Sudheer

Maybe you are looking for

  • Question about the personalization of BueZ PKCS#15

    hi, i use the IBM JCOP31 Card, with the Eclipse, now in the card , there is an app , named BlueZ PKCS#15, now i have transited its life cycle state to selectable , and next , i want to make it transite to personalized, but but when i send the command

  • Where can I download Adobe Acrobat X Standard for Windows?

    Where can I download Adobe Acrobat X Standard for Windows?

  • One Datasource to load Attributes and Text

    I have a single custom datasource from an external database.  The datasource has 3 fields: the key, a text description, and a Y/N flag.  My goal is to load attributes (the Y/N flag) AND text (the description) from this single datasource. Is this poss

  • Bootcamp Help: Windows Support Software takes a long time to download

    I know download time depends on the internet speed but its weird. I have a mid 2012 13" Macbook Pro and I have tried numerous amount of times to install windows 7. Last night it downloaded within a few minutes, and I have a 3mbps dial-up wifi connect

  • Macbook pro 3.1 with 64bit kernel. when??

    hi all, there's already 10.6.2. and still no chance of using it 64bit on a macbook pro 3.1 (which, by all means, is a completely decent computer that should run in 64bit like a charm). so the question is: when can we expect a firmware update to fix t