Remove 0's right of number

hi all,
can u plx to suggest me one function to remove the rights 0's after comma?
I do it with offset, but I need a function:
here my code:
obs: I'm doing it to study...
DATA: num(50) VALUE '1101010.100110000000000000',
      num2(50),
      cont(2).
cont = strlen( num ).
WHILE num+cont(1) = 0.
  cont = cont - 1.
ENDWHILE.
cont = cont + 1.
num2 = num(cont).
WRITE: num, / num2.
I try with write to using no-zero but it's remove left zeros...
Thx all
Regards
Allan Cristian

This might help you...Feel free to do any need modifications -:)
  DATA: long TYPE i,
        char TYPE c,
        zero TYPE c,
        counter TYPE i,
        new_text(18) TYPE c,
        flag TYPE c.
  zero = '0'.
  long = STRLEN( t_codigo ).
  DO long TIMES.
    counter = counter + 1.
    IF counter EQ long.
      EXIT.
    ENDIF.
    char = t_codigo+counter(1).
    IF char NE zero.
      CONCATENATE new_text t_codigo+counter(1)
      INTO new_text.
      flag = 'X'.
    ELSE.
      IF flag EQ space.
        CONTINUE.
      ELSE.
        CONCATENATE new_text t_codigo+counter(1)
        INTO new_text.
      ENDIF.
    ENDIF.
  ENDDO.
  t_codigo = new_text.
Greetings,
Blag.

Similar Messages

  • How do I remove my friend's phone number from my Apple ID on my Macbook?

    How do I remove my friend's phone number from my Apple ID on my Macbook?

    Click "Manage Your Apple ID" on the right here:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/

  • Error Message on the printer - Remove and check right cartridge

    How to fix error message:  "remove and check right cartridge" which you have done numerous times, plus cleaned cartridge nozzle.  Also, I have turned off power to printer, but nothing changed.  Help for HP Officejet 7210 All-in-One needed.
    This question was solved.
    View Solution.

    Funny that multiple people have this problem appear just after 9/1 on multiple printers/all-in-ones. I wonder how many people have this problem and don't report it here. Mine is on a 2710a all-in-one in excellent condition except for this cartridge problem.
    My contacts are not suddenly damaged and it is a relatively new well within the expiration date genuine HP cartridge that we have had for more than a few months. It has not been out of the printer nor has the printer been moved. It sits in a clean room with very little temperature variation from 72 degrees. All printers should be so lucky.
    This is not the first time nor the first printer I've had cartridge problems with HP printers. This is my third one and I'm done with HP printers. I love all other aspects of the printer but this one is infuriating enough to sour me for good.

  • How can I remove the default right click option of the text Area control?

    How can I remove the default right click option of the text Area control?
    Is there any way to disable this control in any of the text controls available?

    The iPhone does not store email addresses for received mail. The iPhone stores all email addressees for sent mail in a list of previous recipients. The list of previous recipients is not synced with Outlook or any address book, but the list of previous recipients is included with the iPhone's backup which is updated by iTunes as the first step during the iTunes sync process. The auto-addrss feature pulls from your contacts on the iPhone and from the list of previous recipients.
    Different from the Mail.app on a Mac, there is no access to the list of previous recipients on the iPhone to remove a previous recipient from the list, or to add a previous recipient to contacts that is not already entered - not at the present time anyway.
    The only way to purge the existing list at the present time is by restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup.
    Hopefully access to the list of previous recipients will be included with the iOS 5 update.

  • How to remove leading zero from Material Number

    Hello Everyone,
    I need to figure it out how to remove leading zero from material number. Cureently extractor is sending material number as 100663. But when comes into BI i am getting as "000000000000100663" and similariy in report it is appearing as "000000000000100663". Now my client wants me to exclude preceeding zero for a material in all the reports.
    Is there any setting in query desinger to handle this issure or in the backend.
    Need your inputs.
    Thanks,
    Lasya.

    Hi
    you can use the function Module
    CONVERSION_EXIT_ALPHA_OUTPUT in the start routine
    to test this go to SE37  --- give the CONVERSION_EXIT_ALPHA_OUTPUT -
    >display -
    > F8
    in the input give 000000456
    and execute
    the out put will be 456
    for getting Zeros you can use
    CONVERSION_EXIT_ALPHA_INPUT--- to remove leading zeros
    Santosh
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:52 PM
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:54 PM

  • I have the right serial number to install arabic onto Ai, but the installer will not accept the serial number

    I have the right serial number to install arabic onto Ai, but the installer will not accept the serial number

    I'm also getting the "invalid serial number", but I'm wanting to upgrade my 5.1 to 5.1.4 to take advantage of HDV 720p/24 support. Is the 5.1.4 update even an option still? I really don't want to be forced to upgrade to FCS2 and shell out $500, just to get this one feature that was included in a patch.
    I went to the Registration page and it actually allowed me to register the serial number... (which I'm pretty sure I already had), but it still won't let me in to download any updates. Also, the email confirmation that was supposed to be sent has not arrived 20+ minutes later.
    Very strange. I called Apple support and they estimated a wait time of 15 mins... ugh.
    Anyone have other suggestions?

  • My 4215 all in one HP printer error message suddenly reads "remove and check right cartridge" .

    My all in one 4215 printer suddenly is flashing an error message in the screen saying "remove and check right cartridge"...For what I am checking it is unclear. I have removed and reinstalled the cartridge and it looks OK to me...It is not empty, and the last thing it printed was fine...Help!
    This question was solved.
    View Solution.

    I'm betting that the contacts inside the printer or on the ink cartridge are dirty. This happens over time. The document below will walk you through cleaning the contacts. Let me know what happens.
    http://goo.gl/9oXc9
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Removing User Admin Rights

    I am currently assisting in managing a domain of 3-4000 users. All of our users have administrative privileges on their machines. We are looking into several different ways of removing these administrative rights for obvious security reasons.
    I have read about privilege management software like Avecto, but it would be great if you could utilize something like Restricted Groups in Active Directory or SCCM 2012R2 to achieve this somehow.
    I read about Restricted Groups here:
    http://www.windowsecurity.com/articles-tutorials/windows_os_security/Using-Restricted-Groups.html
    I am wondering if we can achieve this by deploying these Restricted Group GPO's.  I understand that these GPO's are linked to computer accounts though, but from what I am under the impression I can restrict adding accounts to the admin group and explicitly
    allow other accounts.
    Our AD functional level is 2008R2 and 99% of our workstations are running Win7 32-bit.  Has anyone had any experience removing user administrative rights without purchasing third-party software?

    We are in the process of deploying Avecto Privilege Guard (new name is DefendPoint).
    We are doing this in conjunction with revising our GPP-Local Users & Groups settings (which we decided to use some time ago, instead of using classic Restricted Groups).
    You'll need to use some method (and GP seems to be a good one) to take control of the local Administrators group membership.
    Avecto PG can/will block all attempts to modify that group (due to its anti-tamper protections), but, presumably like us, you will need to evict unauthorised members of that group, and then protect that group from further modifications.
    We also found, that the anti-tamper protections of Avecto PG, even prevent GP from cleaning up the group members, and it was suggested to us by Avecto support, that we create Avecto PG policy which allows the LocalSystem to bypass the protection. (GP CSE's
    like this, will run in LocalSystem context)
    You don't need Avecto PG to remove admin rights, you can do it with Domain GP. But, how do you maintain that position/integrity? And, how do you then allow users to perform some tasks, tasks which require privilege but your organisation approves of those
    tasks being performed by users, but Windows doesn't allow that?
    There are many types of technical controls to implement "security" (if that is your goal), but, you will find that each and every control can be bypassed with enough time and effort. Especially if your users are the determined type of person, who
    also considers that their need to "do that thing" will make them productive/happy - they will ignore all company policies in pursuit of that productivity/happiness (or so it seems to me from my experience)
    IT Support efforts/costs will rise, not drop - we are seeing this already.
    Hatred towards IT (both systems and the people in IT) is also rising.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • TS4268 How do I remove iMessage from my phone number?

    How do I remove iMessage from my phone number?

    Settings>>>Message>> Turn iMessage OFF

  • Can not clear "Remove and check right cartridge" error

    I am trying to fix a 6110xi AIO printer that originally had the error "Remove and check cartridge". I have performed the following steps:
    1) Downloaded and attempted to install firmware update HpAiOFWUdate2_2.exe.  The software commented that the printer does not need the update and ended itself.
    2) Removed print cartridges and cleaned contacts on both the cartridges and the contacts within the printer
    3) Installed new ink cartridges.
    After installing the new cartridges, the error changed to "Remove and check right cartridge". The printer will now print a test page and print documents as well, but the error persists.  The printer will not scan anything at this time, and that is a highly desired operative function. I have also attempted to reset the printer with various power cycles and holding down the ENTER button and then pressing the MENU button, hearing the 3 fast beeps. How can I get the error to clear?

    Hi Lifechaser,
    I can certainly understand the frustration with all the steps you've done already. I just have a few more questions for you.
    Is the printer plugged to a wall outlet? (If not, unplug from the back of the printer first, before moving the power to a wall outlet)
    Are you using genuine HP ink cartridges? (If not, trying genuine HP may help resolve the issue)
    Get back to me with the results of these two questions and we will go from there!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • Remove local administrator rights from multiple machines

    Hi all,
    We have a load of Macs on active directory. Most of them have local admin rights. Is there a quick and easy way to remove local admin rights and change them to standard users. I really don't want to do them one by one?
    Please give me some good news 
    Kind Regards,
    BigJava

    Hi baltwo,
    Thanks for the suggestion but I found out how to do it with this UNIX command:
    sudo dseditgroup -o edit -n . -d username -t user admin
    and running it as the "root" user.
    Thanks

  • Remove digits from incoming DID number

    How translation rule can i use to remove 6 digits of DID number received from ITSP and pass on 4 digits to the PABX (integrated with ISDN pri ) on cisco voice gateway. 
    The incoming dial peer is voip dial peer because call is coming from ITSP using SIP.
    For eg DID number range is 0419137101 - 0419137599

    If I follow, I believe you could use something like this:
    voice translation-rule 1
      rule 1 /.+\(....\)/ /\1/
    voice translation-profile strip6
     translate called 1
    dial-peer voice 1 voip ! Inbound SIP dialpeer
      translation-profile incoming strip6

  • How to get the right Serial Number during Pick Release

    Please we need your help to get the right serial number => Auto-Allocate on YES, Pick Confirm with NO.
        A problem is occurring during the Pick Release process.  Custom code has been added to the hook INV_DETAIL_SERIAL_PUB to provide the Pick Release process with the serial number to pick for the item being pick released.  The hook works and the Pick Release process picks the correct (specified) serial number.  However, at some point later in the Pick Release process the lot number is chosen and the process seems to pick the first lot number it finds available for the item – it does not take into account the serial number provided by the hook.  This causes the Pick Release process to fail when the lot number chosen is not the lot number linked to the serial number.  Has anyone else encountered this same issue?
        An example:
    Item ABC123
    Serial SER001 – Lot LOT001
    Serial SER002 – Lot LOT002
    Serial SER003 – Lot LOT003
    Item ABC123 is being pick released.
    The customised hook provides the Pick Release process with serial SER002.
    The Pick Release process correctly uses SER002, but chooses lot LOT001.
    thanks!
    Francisco

    Hi,
    I guess you have added the code at slightly different place.
    Pick Release Process will always allocate lots based on Inventory Picking Rule (or WMS Pick Strategy if you are using WMS).
    So if you want to override that you much first delete the MTLT record (inv_trx_util_pub.delete_lot_ser_trx), then insert MTLT with your Lot number (inv_trx_util_pub.insert_lot_trx)..then insert MSNT (inv_trx_util_pub.insert_ser_trx) with your serial number.
    Ensure that transaction_temp_id on MSNT should match with SERIAL_TRANSACTION_TEMP_ID on MTLT table.
    Thanks,
    Hrishi

  • Remove delete sms reply mobile number already veri...

    I've gone aroun this way too many ways but can't get to remove the already verified mobile number when sending an SMS. I have removed my caller ID, as such, the number doesn't show up when calling, but in the SMS field, how do I get rid of my sms reply mobile number. I don't want to get SMS replies routed to my mobile.
    Can't even get to post the screenshot for exact understanding.
    EDIT : title case changed.

    Here is the transcript of a Live Chat that I had this morning:-
    [Removed for privacy]
    Initial Question/Comment: SMS
    12:19:39 System
    Thank you for contacting Skype Customer Support!
    12:19:45 System
    Threcia G. has joined this session!
    12:19:45 System
    Connected with Threcia G.
    12:19:50 Threcia G.
    Hello! I'm Threcia. 
    Welcome to Skype Live Support! What can I help you with?
    12:20:44 [Removed for privacy]
    Hello there, I have logged in to Skype, then "tools" - "IM & SMS" - "SMS Settings"
    12:21:14 [Removed for privacy]
    I am an International Traveller and have used many SIM cards in my mobile.
    12:21:53 [Removed for privacy]
    I have just verified a new number in Russia and it does NOT appear in the drop down list under "my mobile number"
    12:22:40 Threcia G.
    Do you mean to say that you were having issues in your Skype application in your mobile phone?
    12:24:00 [Removed for privacy]
    Not mobile phone - PC
    12:24:23 Threcia G.
    Okay. Are you referring to your SMS sender ID?
    12:24:24 [Removed for privacy]
    Please log into a Skype account and follow the above trail and you will see what I mean...
    12:24:29 [Removed for privacy]
    Yes
    12:24:51 [Removed for privacy]
    I require to remove the numbers +34 [removed for privacy], and +44 7535853882 from the drop down list and for my new Russian number to be available.
    12:25:15 [Removed for privacy]
    Today I sent an SMS and it contained my UK number.. I am in Russia and they cannot respond
    12:25:35 Threcia G.
    Okay. Let me check this for you.
    12:25:40 Threcia G.
    May I have your Skype Name and first name?
    12:25:53 [Removed for privacy]
    [Removed for privacy] = Skype Name
    12:25:59 [Removed for privacy]
    Clive = first name
    12:26:45 Threcia G.
    How are you today, Clive?
    12:27:17 [Removed for privacy]
    Please can we just get on with solving the problem... thanks
    12:27:55 Threcia G.
    Okay. I do apologize but due to a planned maintenance in our system, I would need to make our conversation short.
    12:28:10 Threcia G.
    I am sorry but please try to contact us again for a couple of minutes.
    12:28:20 Threcia G.
    Thank you for understanding.
    12:28:34 [Removed for privacy]
    I don't

  • Remove zeros from right side

    Hi all,
    I want to remove zeros from right side.
    like : if value is '0.055500000000E+04'.
    then the output should be '0.0555'.
    How can i get such output.
    Plz help me....

    Hi,
    the problem here is u are dealing with a datatype of format F (i.e floating point ) and the output u desire is in packed format .
    You cannot delete the zeros of such data typesas type F instead u can move them to the packed datatype and get the result.
    do one thing declare a variable of type p and move the value of type f which u have right now to the variable u have declared as type p.
    data : v_val type p decimals 4.
    v_val  =  "               <------ assign the type f to type p over here .
    hope this helps .
    regards,
    vijay.

Maybe you are looking for

  • Getting Timed out exception while calling a web service

    Hi, when i am invoking a web service(using routing), the osb proxy is getting timed out before receiving the response from routed service. Also we are not aware of how much response time the routed service will take. so apart from increasing the conn

  • HT5312 My apple account shut down how do I get it back up

    My Apple ID shut down how do u get it back up

  • Filtering results in an MDX Query

    This is the current MDX Query I have WITH MEMBER [Measures].[Prcnt] AS [Measures].[Value]/[Measures].[Fact Client Score Count] SELECT NON EMPTY { [Measures].[Value], [Measures].[Fact Client Score Count], [Measures].[Prcnt] } ON COLUMNS, NON EMPTY [Di

  • 1099 Questions

    I have the following 2 questions regarding 1099’s.  One has to do with the fact that I read somewhere that after you have added tax number information to a vendor (s), that there is a program that you need to run so that SAP will flag the appropriate

  • Skype 7.6 crashing at startup - netbook with windows xp sp3

    i had the same problem since update skype to 7.6 version. please help to fix the problem to me communicate to my family in the philippines. i used netbook with windows xp sp3 Title edited as Separate Topic