Any method to find out length of a string !!

Hello friends,
              I used <i><b>describe</b></i> statement to find out the length of a string, but it actually returns the whole length of the string but not actual no. of char's in this.
any one suggest a solution for this.
Senthil

Hi Senthil
The ABAP function STRLEN returns the length of a string up to the last character that is not a space.
[COMPUTE] <n> = STRLEN( <c> ).
STRLEN processes any operand <c> as a character data type, regardless of its real type. There is no type conversion.
As with mathematical functions, the keyword COMPUTE is optional.
DATA: INT TYPE I,
WORD1(20) VALUE '12345'.
      WORD2(20).
      WORD3(20) VALUE ' 4 '.
INT = STRLEN( WORD1 ). WRITE INT.
INT = STRLEN( WORD2 ). WRITE / INT.
INT = STRLEN( WORD3 ). WRITE / INT.
The results are 5 , 0, and 4 respectively.
Regs
vijay

Similar Messages

  • Any way to find out where most of the memory is being taken up?

    I've got a G4 Tower with the latest 10.5 OS. I have an 80 GB drive, with 19 GB remaining.
    Single clicking on Mac HD, then "apple i" shows me this.
    Is there any way to find out more specifically where most of the memory is being taken up?
    Say, what folders are the biggest in size, and where they are? I'd like to delete any unwanted crap if i could...
    Thanks.

    Photecs wrote:
    I've got a G4 Tower with the latest 10.5 OS. I have an 80 GB drive, with 19 GB remaining.
    Single clicking on Mac HD, then "apple i" shows me this.
    Is there any way to find out more specifically where most of the memory is being taken up?
    It's not memory, it's disk space which is a different thing.
    you can figure out what's taking all the space using 3rd party tools like [Whatsize|http://whatsize.en.softonic.com/mac], [Omindisksweeper|http://www.omnigroup.com/applications/omnidisksweeper>, [Disk Inventory X|http://www.derlien.com> or [Grandperspective|http://sourceforge.net/projects/grandperspectiv>. there is also a terminal method described on [this page|http://homepage.mac.com/francines/articles/TigerMisc.html].
    Say, what folders are the biggest in size, and where they are? I'd like to delete any unwanted crap if i could...
    Thanks.

  • Do we have any method to list out the servers that are critical and the component/monitor causing the server to turn into critical state in SCOM 2012

    Hello Team,
    We are monitoring 1000 servers in our environment and out of 1000 servers, we have approximately 100 servers showing as critical state on the server state view.
    We can get the critical servers list from SCOM console, but we are not able to get the information about the component responsible for the server to be critical. Using Health explorer to find the root cause for 100 servers is really impossible and time consuming.
    Do we have any method to list out the servers that are critical and the component/monitor causing the server to turn into critical state?
    Advance thanks for your help.
    Regards,
    Dinesh
    Thanks &amp; Regards, Dinesh

    Hi,
    As far as I know alerts with severity as criticla may cause windows computer in a critical state, we can try below code to find all critical alerts:
    get-alert -criteria 'ResolutionState=0 AND Severity=2' | select Name,ResolutionState,TimeRaised | export-csv c:\Alerts.txt
    Criteria Syntax http://msdn.microsoft.com/en-us/library/bb437603.aspx
    Values to use.
    Resolution State 
    Severity Values for Alerts
    0       =   New
    0 = INFORMATIONAL
    255   =   Closed
    1 = WARNING
    2 = CRITICAL
    Hope this helps.
    Regards,
    Yan Li
    Regards, Yan Li

  • TS1382 I have a ipod classic 160GB and it's not showing any music anymore, but there is still 7GB of memory being used, and I don't have it back up on my itunes, since I had to put a new hard drive on my computer. Any suggestion to find out whats on that

    I have a ipod classic 160GB and it's not showing any music anymore, but there is still showing 7GB of memory being used, and I don't have it backed up on my itunes, since I had to put a new hard drive on my computer. Any suggestion to find out whats on that memory or to get it the music back, there is approximately over 1400 songs on it?

    What is the memory being used by, is it Other? If it is, that means the iPod can no longer read the music, so it has put it all in "Other".
    The usual fix for this is to allow the iPod to Sync with its iTunes Library. If that doesn't work, the next option is to Restore the iPod using the Restore command in iTunes, on the Device/Summary pane.
    Unless you are very (very) lucky, I suspect that you are going to have to Restore your iPod. Restoring will remove everything form the iPod and put back onto it only what it finds in your iTunes Library, which you say is currently empty.
    If you have to rebuild your Library after this issue, by adding all the music back again, this is going to be hard to hear, but for the future, you may want to consider always having a backup of your library. The easiset way to back the Library up is;
    if the Library is small enough, burn it to a DVD, as digital files, not a "music CD".
    If your Library is too large for a DVD, buy yourself an external hard drive and copy the Library onto the drive. Remember to update the backup every so often.

  • HT5244 Is there any way to find out after(!) running die Update, if i have been infected?

    Is there any way to find out after(!) running die Update, if i have been infected?

    Run any one of these tools: http://reviews.cnet.com/8301-13727_7-57413811-263/flashback-malware-removal-tool -roundup/
    Or you can check manually: http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/

  • Is there any way to find out where a standard text is used?

    Is there any way to find out where a standard text is used?
    We can see the text from SO10, but i want to find out where it is used.

    HI
    juct check out this thread
    How to find Standard Text
    a similar query is answered here
    hope this helps
    regards
    Aakash Banga

  • Is there any way to find out what brush is applied to a path?

    I'm trying to write a script: select some paths, run the script, then each path that has a brush applied to it is changed to use a random brush whose name is sufficiently similar to its current brush. The application is pretty obvious - draw a bunch of lines in, say, 'ragged marker 1', then give it some extra liveliness by having five or six 'ragged marker' brushes that get randomly chosen.
    The problem I'm running against is that as far as I can tell, Illustrator only lets Javascript set what brush an object is using with brush.applyTo (artItem), but I can't seem to find any way to find out what path a brush is currently using via JS.
    Am I just not looking in the right place of the Javascript reference, or is this really a thing that only has a setter, with no corresponding getter?

    Just like you said earlier
    3.  Re: Is there any way to find out what brush is applied to a path?
           imagecollection     Apr 7, 2015 6:01 PM  (in response to Silly-V)   
    The skill of scripting in Illustrator is to (due to necessity) find the most difficult way to achieve the simplest of tasks...
    so to retort I say this;
    “I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail.”
      ― Abraham Maslow, Toward a Psychology of Being

  • Is there any way to find out the serial number to an old ipod that i cannot find?

    theres a recall on the od ipod nanos the 1st generation ones and i purchased one and im not sure when and currently i am unaware of the whereabouts of the ipod. is there any way to find out the serial number without actually finding the ipod to confirm when i purchased it? thank you any help will be appreciated.

    iPod: How to find the serial number

  • Is there any way to find out what a specific line of data usage was for?

    There is a line on my bill for 97 MB of usage while I was bowling?  I was not using my phone.  How can I find out what it was doing for that specific charge?

    Just like you said earlier
    3.  Re: Is there any way to find out what brush is applied to a path?
           imagecollection     Apr 7, 2015 6:01 PM  (in response to Silly-V)   
    The skill of scripting in Illustrator is to (due to necessity) find the most difficult way to achieve the simplest of tasks...
    so to retort I say this;
    “I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail.”
      ― Abraham Maslow, Toward a Psychology of Being

  • Is there any way to find out who is accessing my find my iphone account ?

    Is there any way to find out who is accessing my find my iphone account ?

    No.  Go to id.apple.com, log in with your Apple ID & password, and immediately change your Apple ID password and security questions.
    Also, change the password to your associated emails counts as well.

  • Does anyone know if there's any way to find out what files in my Library

         Does anyone know if there's any way to find out what files in my Library I can delete? I just cleaned off my HD onto a media drive as a back up so all my movies documents and photos are gone but my Library seems to be a huge space hog eating sixty gigs of space and I do have alot of apps but they don't take up a third of that space... Any ideas how I can figure out what is wasting all this space? I had Spring Cleaning once but found it to be rather confusing as to what was essential to the OS and what not...
    Thanks,
    Matt

    Get free OmniDisk Sweeper. I can't imagine how you could have sixty GB in that folder. My entire ~Library isn't even 1GB. Are you sure you're not talking about your entire Home folder?
    Can you post a screenshot of the contents of that folder.
    Check again. Are you sure you moved all the Movies etc. out? Could have left duplicates of everything behind when you did this.
    Message was edited by: WZZZ

  • Is there any way to find out a Tcode used by user in a particular interval.

    Hi
    Is there any way to find out a Tcode used by user between 10/8/2009 to 31/8/2009, in production?
    Satish.

    Yes i have been trying SE16N only. But i am unable to pull data based on dates (Aug/8 to Aug 21)... its showing list of users who have accessed the tcodes directly for entire month....
    Se16n ->Export mode->month->08/2009
      --->     Transacction profile -->Standard
    I want to find out only users who have used a particular tcode during those dates.....in august..
    Satish

  • Any way to find out which program has created a job using 'JOB_OPEN'?

    Hi,
    I have some jobs created by some program. The job is incomplete, i.e., the programs which created the job just used 'JOB_OPEN' and it doesn't have any steps.
    Is there any way to find out which program created that incomplete job?
    Thanks in advance.
    Regards,
    Arun Mohan

    Not sure but try this FM
    BP_JOB_SELECT -Returns a table with job(s) details .
    кu03B1ятu03B9к
    Edited by: kartik tarla on Dec 30, 2008 6:50 PM

  • My iPhone 4 is chewing through power and data, is there any way to find out if an app is causing this?

    My iPhone 4 is chewing through power and data, is there any way to find out if an app is causing this?

    call them, tell them you NEED a new battery installed, and they need to tell you when they can do it.  That is their job to help you! Give pushback if necessary.

  • Is there any way to find out if my iPhone4 is factory unlocked or jailbroken....

    Is there any way to find out if my iPhone4 is factory unlocked or jailbroken....

    If they are not sure, then the answer is yes, your iPhone is jailbroken.
    What makes you question if your iPhone is jailbroken? What model
    is your iPhone (Settings=>General=>About and scroll down to Model)?
    What country did you buy your iPhone in? What wireless provider in
    what country are you using the iPhone with?

Maybe you are looking for

  • Voice Memo Unreliability

    The voice memo feature on my 3GS is starting to be unreliable--i.e., sometimes it records just fine and other times it is running, but not recording. I installed current software (4.3.2)  and thought that took care of the problem, but it hasn't.  Any

  • How to implement this ina partition table

    Hi Friends, I've some issue. Let me explain it - I've one table named - CREATE TABLE syst_part    tx_id   NUMBER(5),    begdate DATE  --begdate will be always system date );1) Every day i need to keep only 3 days data. So, at the start of the program

  • Acrobat Pro - advanced print settings

    Hello, my system: Adobe Acrobat Pro 10.1.7 I want to change the settings under file - print - advanced the settings under "Acrobat default" and "Custom" are not modifiable do someone know how it works? thanks K.W.

  • Preview crashed while printing PDF, now can't get rid of PDF.

    Hello, I need some help. The other day, I was making a PDF out of individual images in Preview, and while I was 'printing'/saving it as a PDF, I noticed that it was taking an abnormally long time. Preview then crashed. I tried to open the PDF, which

  • Tx2-1033ee Changing the OS, Losing the Softs?

    Hello friends. I have a tx2-1035ee preloaded with the worst OS ever, Windows Vista. My personal opinion, if you don't mind. I have noticed the driver support page on the HP website includes drivers for several other Windows based OS's. And my questio