How to delete decimal point and adding leading zeros....

Hi,
I have one requirement in the report   i.e.
        <b>Present Value    :</b>  44567.98
        <b>Expected Value  :</b> 0000004456798
In the present Value how will I remove that decimal point and how to add those six ing zeros. I tried with CONVERSION_EXIT....but it is not giving. Help me...
Thanks in advance.
Regards,
Kumar.

Hi,
Use SPLIT and COMCATENATE fnctions.
Eg:  split l_v at '.' into l_v1 l_v2
        concatenate l_v1 l_v2 into l_v.
For adding leading zeros
Use FM CONVERSION_EXIT_ALPHA_INPUT.
Eg:
data: tknum type vttk-tknum value '99156'.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
     exporting
          input  = tknum
     importing
          output = tknum.
Sri
Message was edited by:
        Sri Tayi

Similar Messages

  • How to remove pound symbol # and preserve leading zeros in BEx Query

    Hi,
    I have two questions regarding the display in BEx Query.
    1. How can I remove the pound symbol # for blanks in BEx Query?
    2. How can I preserve leading zeros? At the moment, value "001" will be displayed as "1". But I need the leading zeros.
    Thanks.
    Joon

    Hi ,
    You can apply these settings in Bex query designer.
    If you need to remove pound symbol jsut make a new formula and use NODIM function you will find this function under data functions.
    So NODIM(Your price keyfigure) this will remove the Pound symbol.
    For # just find out against which  characterstic you are getting # then go to default values panel there you will find all your characterstic which you are using in report---Rt click -Restrict-single valuesdirect input-#-Move to selection(That forward arrow)--select that # and choose exclude from selection (That red square icon).
    And yes for leading zeros check out this thread
    Leading zeros not displaying
    Hope it helps you.
    Regards,
    AL
    Edited by: AL1112 on Jun 9, 2011 1:43 PM
    Edited by: AL1112 on Jun 9, 2011 1:47 PM

  • EBAN-PREIS field removes the decimal point and add the zeros to the value

    Hello,
    Could you please let me know if you have seen a behavior like this where a currency field has issues with the decimals when the currency is JPY or VND. In my case the field EBAN-PREIS saves the data incorrectly. For example the correct value is 1000 and when you checked EBAN it changes to 100,000.
    Let me know your thoughts about why this could be happening.
    Thanks!
    Roy

    Please check if there is any routine or user exit which is converting as per business requirement.
    Because even i too had faced the same problem when updating the Excise details. but later on found out that some one has written exit for calculating on the basis of units conversion.
    Regards,
    Chandrasekhar Bade

  • Convert hex to Decimal and keep leading zeros..

    Hi,
    I hope you can help?
    How to convert hex to Decimal and keep leading zeros
    I read 002C, hex, and I want to convert it to 0044 decimal.
    sscanf (MyNum, "%4x", &DecNum); will only give me 44.
    It have been working up till I started to get leading zeros.
    We will always have a 4 digit hex input in a range
    We must have the leading 00 in this case.
    How is this best done?
    Thanks for the help
    Simon
    Solved!
    Go to Solution.

    Hi,
    I don't really understand your problem. Is this stuff what you need ?
    int main (int argc, char *argv[])
    const char MyNum[] = "002C";
    int DecNum;
    sscanf (MyNum, "%4x", &DecNum);
    printf ("%04d", DecNum);
    getchar ();
    return 0;
    "0044" appears on standard output when printf function executes...

  • My quantity is showing with a decimal point and two spaces

    When people are entering a quantity of 1 it is showing as 1.00.  It is confusing my users because they think this is a price.  How can I get rid of the decimal point and two spaces? 

    Hi,
    I am not able to reproduce this problem with a number field.  Are you using this field as a payment-quantity field?.  If so, please check that the Quantity in your payment setting is linked the the right field.
    We can do a quick test: create a new form from scratch, add one textfield, then on the field property panel select Type=number.
    Select Test tab and click on the Test Web Form button
    Enter a number and commit --> check if you get the decimal point and the spaces.
    If you still have problem with this, let me know
    Thanks,
    Lucia

  • I can not delete my history and adding new bookmarks. Upgrading to later Firefox versions and/or re-installing didn't help. The address bar still shows the web addresses of old and whenever I make new bookmarks, it's always gone as if it was never made.

    I can not delete my history and adding new bookmarks.
    Upgrading to later Firefox versions and/or re-installing didn't rectify it either.
    The address bar still shows the web addresses of old and whenever I make new bookmarks, it's always gone as if it was never made.
    Also, I have noticed that every once in awhile you can not close tabs you've opened, either by pushing on the X button and/or clicking on the mouse to close it. Although closing the window and opening it again (without closing the Firefox application) seemed to rectify the problem in the short term, it's becoming quite annoying.
    == This happened ==
    Every time Firefox opened
    == the Firefox is being used

    I think I have a solution.
    First, download the add-on SQManager. This should be included with FireFox, it is really good.
    Look for the file '''moz_hosts''' in the folder '''places.sqlite'''.
    Don't delete the file, just delete the information in the file. My file has over 3600 websites, which go back years!! I did not know they were there, but I was frustrated about not being able to get rid of them. They popped up every time I used the address bar. Clearing my history would not get rid of them.
    This is where they are stored!! I found that by deleting the pesky web site from '''moz_hosts''', it does not appear in my address bar anymore!!!
    I think that if I just delete all the websites in moz_hosts....
    Wa-la...History Gone!!!
    As long as you don't delete the file, just empty it, FireFox won't know the difference. It will just keep adding websites to it until you empty it again.
    Why running "clear recent history" doesn't do this, I don't know. You are doing manually what "clear recent history" is not doing.
    Please tell me if you see any flaw in this.
    ''I think it's the solution we've all been looking for!''

  • Since upgrading to Mavericks, my Canon MP980 printer no longer works. I've tried deleting the printer and adding it again. the process ends with my mac saying the software is not currently available from the software update server.

    Since upgrading to Mavericks, my Canon MP980 printer no longer works. I've tried deleting the printer and adding it again. I've downloaded the driver software from Canon. My Mac dropbox tells me "the selected printer software is available from Apple", but when I click to download it, the process ends with my mac saying the software is not currently available from the software update server.

    Open Finder and click on Go > Go to Folder. Then type
    /Library/Printers/Canon
    and press Enter. This will show the BJPrinter and iJScanner folders. You could try moving or trashing this folder and then installing the driver that you downloaded from Canon again.

  • How to obtain JNIEnv pointer and jobject reference in arbitrary contexts?

    Hi,
    I need your hand. How to obtain JNIEnv pointer and jobject reference in arbitrary contexts? (See below source codes for details)
    I made some tries according to JNI spec, but still failed to get it work. Could you please provide your solutions? Better show me some source codes.
    Thank you very much !!!
    #include <jni.h>
    #include "MessageThread.h"
    #include "MyServer.h"
    // this is callback function called by the native C++ library
    void processEvent(int progress)
       in this function, i want to get "env", "obj" ( HOW? ),
       then i can do below to invoke Java function "updateUI":
       cls = env->GetObjectClass(obj);
       mid = env->GetMethodID(cls, "updateUI", "(I)V");
       env->CallVoidMethod(obj, mid, progress); 
    JNIEXPORT void JNICALL
    Java_MessageThread_handleMessageQ(JNIEnv *env, jobject obj)
      MyServer* server = MTMServer::Instance();
      if (server != NULL)
        // must register a callback function before "QueryProgress"
        server->RegisterCallback(processEvent);
        // query message within a loop, and callback "processEvent" frequently
        server->QueryProgress();
      return; 
    }

    jschell, thanks for your suggestions.
    And caching the second is definitely wrong. Arguments are passed as local references. The reference lifetime is only guaranteed for the lifetime of the method call.In my case, it just works, because my "callback" is only called before the "handleMessageQ" returns, which means it's within the lifetime of "jobject", etc.
    Use GetEnv to get the environment.Could you please provide some sample codes?
    Create a static java method which returns the object reference. In your callback call that method to get the reference that you want to work with. I didn't really understand. Could you please show me some sample codes?
    Thanks a lot!

  • How to delete called history and deactivate accoun...

    hi Expert,
    i would like to ask,how to delete called history and deactivate account?

    I have the same problem on my iPad 2.  Does anyone know a solution to this please?

  • I have two yahoo mail accounts. I went to bed and both were accessible on my iphone. I woke up and one was not able to receive any mail. I have deleted the account and added it back and changed the password. Still does not work. Any help?

    I have two yahoo mail accounts. I went to bed and both were accessible on my iphone. I woke up and one was not able to receive any mail. I have deleted the account and added it back and changed the password. Still does not work. Any help?

    Download the yahoo email app, if you already deleted and reinstalled the email account and still have issue.
    This is a known issue with Yahoo email account.

  • HT4305 HOw to delete my diagmostic and usage data on my ipad

    HOw to delete my diagmostic and usage data on my ipad
    <Re-Titled by Host>

    my wife's name and password in the gmail page, how do we delete it

  • Adding Leading Zero's to a variable

    Hi friends ,
                <b>1.</b> I want to add leading zero's to a field .
    Wxample - LIFNR , if its value in a variable is 16987 then i want to convert it to standard format (0000016987).
    <b>2.</b> I want to convert date format to system's format. In Dev server and quality server it is in different format and i'm facing problem while uploading data using BDC.Also how i'll identify that in which format it is in production.
    How to get it

    Hi,
    <u>Use these function Modules for ur problems..</u>
    (1)For adding leading zeroes or in sap format internal..
    CONVERSION_EXIT_XXXXX_INPUT
    (2)For changing date into systems internal format..
    CONVERSION_EXIT_XXXXX_INPUT.
    u can find out conversion routines for each corresponding domain of that field in given below procedure.
    Domain->Defintion->Output Characteristics-> Conversion routine.
    Double click on that, it will show corresponding conversion routines.
    Please add ur rewards.
    With regards,
    Rajesh

  • Add and remove leading zeroes

    Hi all,
           Iam having a requirement where in a enduser enters the vendor number and after pressing enter key it should display the vendor num along with vendor name concatenated in the same field. But the end user is provided the facility that he may not enter the exact vendor number ( I mean if vendor number is for example 0000055,  the enduser may enter simply 55). The system should convert it with leading zeroes internally. And in display it should display removing leading zeroes.
    like     input:  55              output : 55 Vendor_Name
    my approach
    iam using conversion_exit_alpha_input    for adding leading zeroes       before select query ( to fetch the vendor name for vendor number the user supplies)
    before displaying the output after concatenation,
    iam using  conversion_exit_alpha_output.
    after execution,
    it is asking the exact vendor number .  But in the output, it is giving the vendor number along with vendor name by removing leading zeroes ( as expected).
    how to make the system accept the number without leading zeroes. please suggest me.
    tthanking you in advance
    regards
    Bikash

    Hi Bikash,
    Since you have to display the Vendor number concatenated along with the Vendor Name, why do you need to use the Alpha Exit Function Module. As you have the Vendor number without the zeros in the input field, you can store it in a temporary variable and then once the Vendor name is available you can concatenate it along with the number in the same field.
    If you need a code snippet, you can provide the Technical details of the fields of input. We can use the implicit ABAP    type casting feature to get the Vendor Number without any leading zeros.
    Hope this helps.
    Thanks,
    Samantak.

  • @ adding leading zeros to a number

    Hi,
    How do I go abt adding leading zeros to a 8- digit number?
    eg DATA: number(8) Type N.
        number = 16.
    How do i go about converting this to '00000016'.
    Note that the value in variable number would be read frm a file (Inbound prog).

    Hi,
      Use the function.
    data: tknum type vttk-tknum value '99156'.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
         exporting
              input  = tknum
         importing
              output = tknum
    Regards

  • Adding leading zeros in a field mapping

    Hi,
    I am getting account as a 5 char field in the input file. I need to map this to a 10 char field in XI and add leading zeros in case the value is all numeric. Is there any standard data type/ mapping that can achieve this or I need to write a UDF.
    Thanks,

    formatNum field will cause an exception if your input isnt all numeric...
    I'd go for UDF id your input isnt always numeric.
    Regards,
    Henrique.

Maybe you are looking for

  • Firmware upgrade for Westell UltraLine Series3 A90-9100EM15-10 ?

    I'm wanting to check for/download install a firmware upgrade for my Westell UltraLine Series3 A90-9100EM15-10. It's currently running Software Version:     1.02.00.04 Release Date:     Aug 28 2008 I'm hoping there's an upgrade available that fixes th

  • Pavillion dv9810us DVD/CD-ROM Drive and Vista Device Manager Question..​...HELP!!!​!!

    I have a Laptop, just over a year old, runs Vista Home Premium SP2. Here is the scenario Hadn't used the DVD/CD-ROM drive for 3 or 4 weeks at which time it worked fine. Tried to use it a couple of days ago and discovered it wouldn't respond. I figure

  • Grand Total problem

    I have grand total problem. This is my pivot table. A B A/B 1 10 0,1 2 4 0,5 8 3 2,67 {color:#ff0000}11 17 _3,27_ GRAND TOTAL{color} (0,1+0,5+2,67) A - AVG type B - SUM type How to make obi calculate grand total like this: A B A/B 1 10 0,1 2 4 0,5 8

  • Help with DataTags

    Does anybody have a sample code or something that could help me to work with the ExecuteSQL DataTags because the Online Help of JDeveloper is not specific.

  • Strain Excitation setting, effect on output

    Hello all,On a PCI-6221 / SCXI-1520 / SCXI-1314 system, I am setting the excitation voltage to 1, 5, or 10V, and my unloaded reading is different with each setting, but the output change vs. pressure is proportionally the same. (i.e., applying 50 ft.