How to know the number of digits in one variable?

I have
lv_varibale(16) TYPE C.
Some times lv_variable is filled with 15 digits and some times it is with 14 digits .
How can I know in my program  how many digits that variable contains .I mean is there key word/syntax I need to use OR I have to go for function module (if so which one and how to pass variables in that) ?
You help will be appreciated .Thanks in advance.

Hai Sam Kumar
Use 'strlen' Function for getting the String Length
Example
<b>Data : lv_varibale(16) TYPE C.
Data : v_length type i.
lv_varibale = 'Sreenivasulu'.
v_length = strlen( lv_varibale ).
write:/ v_length.</b>
Regards
Sreeni
Message was edited by: Sreenivasulu Ponnadi

Similar Messages

  • [ASK] How to know the number of usage of each Atomic Service ??

    I correct my question:
    *How to know the number of usage of each Atomic Service by the Domain & Enterprise Services?*
    I want to see the number of usage of each atomic service(AS) by other services (DS & ES)
    ex:
    es_A  ----->  ds_B   (1x)    ----->    as_B    (2x) --> so as_B is accessed by es_A twice (2x)
    es_A  ----->  ds_C   (2x)    ----->    as_C    (2x) --> so as_C is accessed by es_A 4times (4x)
    es_A  ----->  ds_B   (2x)    ----->    as_D    (3x) --> so as_D is accessed by es_A 6times (6x)
    es_B  ----->  ds_B   (1x)   ----->    as_E    (1x) --> so as_E is accessed by es_B once (1x)
    es_B  ----->  ds_C   (3x)    ----->    as_F    (2x) --> so as_F is accessed by es_B 6times (6x)
    es_B  ----->  ds_B   (4x)    ----->    as_G    (1x) --> so as_G is accessed by es_B 4times (4x)
    etc..
    Is there any tool in OSB, WLS, BPEL Console or Java Developer to support it?
    Thank you...

    user13294928 wrote:
    Ganesh wrote:
    Their are two ways to do this
    1. In the sbconsole, when you click on the proxy or any resource name, you will see information about number of references and referenced by as two parameters. Click on the number you will drill down into exact schemas, business service, split joins, etc it refers and who all refers this resource.--> Where can I see the information?
    2. In the OEPE, eclipse you can see the same in the "Reference" view of the OSB perspective.--> I'm using Java Developer right now, does it work?Thank you1. You can see the reference in: sbconsole -> Resource View -> Click on Proxy or any resource name -> it will show Ref: <n> some number and -> Click on the number. Do you see this?
    2. JDeveloper should also have a resource view, but have not tried it though

  • How we know the Number of users logged into stratus?

    Hai,
    How can we  know the number of users logged into stratus? If we knows only,in our project we can check the users are valid/authenticated.can we check that?
    Advanced Thanx

    Stratus is adobe service which provides you with p2p id or say all your
    application's users a p2p id. Adobe doesn't have any admin section where you
    can manage/see all connected p2p users in your application.
    This you have to implement at your end in your application code i.e.
    authentication,validation and user counter.
    Thanks,
    Vivek.

  • How to know the number of children at the first visit of a view ?

    Hello,
    I'd like to make a modification to the JSF lifecycle so that when a view is first visited, it is possible to know the number of children before the RenderResponse phase.
    It seems that, following the RI source code, the dispatch method of the ExternalContext is called.
    This method calls itself the RequestDispatcher of the javax.servlet package.
    How can I do that ?
    Thanks in advance.
    bgOnline

    I've been here all the time, ever since I got my G4 and could finally OS X (started with 10.1.5). Don't know how ya coulda missed me.... I'm usually in the Using the OS Forum and the Finder forum, with occasionaly excursions in the Spotlight forum.
    BTW, so this isn't completely off topic, after getting frustrated by the file count and Finder displaying correct sizes I experimented with a couple of Applescripts but then found a wonderful little Contextual Menu item, CalculateSize:
    http://www.pixture.com/software/macosx.php
    It tells you not only the number of files and sub-folders in a given folder, it also tells you the number of invisibles of each and the total size of the items, and it calculates sizes ever so much faster than the Finder does.
    Francine
    Francine
    Schwieder

  • How to know the number of times end users search on iStore

    How can we know the number of times end users search on iStore

    I am not sure how can you do that with Oracle but I am doing that with Google Analytics (Site Search Settings).
    Thanks
    Shazi
    Edited by: 903823 on Nov 30, 2012 7:59 AM
    Edited by: 903823 on Nov 30, 2012 7:59 AM

  • How to know the number of the week in iCal ?

    Hi !
    I'm very enjoying iCal. But, there is something very important for me that I can't find in iCal !
    I need to know the number of the week (in Month, Week or Day views).
    Is that a way to easily see it ?
    Regards,
    ant
    iMac G5   Mac OS X (10.4.2)  

    there's no option for a week view in iCal, but John Maisey wrote this applescript.
    paste it in the Script Editor (Applications --> AppleScript --> Script Editor) and run it once...
    if your weekview starts on an other day change this line:
    set daysText to "MonTueWedThuFriSatSun"
    to (example)
    set daysText to "SunMonTueWedThuFriSat"
    --Copy below this line into Script Editor and click run --
    --Annual Week numbers
    --John Maisey
    --4/2/5
    set numberOfWeeks to 1000 -- change as needed
    set daysText to "MonTueWedThuFriSatSun"
    set aDate to (current date)
    set day of aDate to 1
    set month of aDate to January
    set aDay to weekday of aDate
    set weekNo to 1
    --Day of week as num. starting with 0
    set aDayText to (characters 1 thru 3 of (aDay as text)) as text
    set dayOff to ((offset of aDayText in daysText) - 1) / 3 as integer
    if dayOff is less than 5 then
    set StartDate to aDate - dayOff * days
    else
    set StartDate to aDate + (7 - dayOff) * days
    end if
    tell application "iCal"
    set newCal to make new calendar at end of calendars with properties {title:"Week No."}
    set myCal to (count of every calendar)
    end tell
    repeat with myCount from 1 to numberOfWeeks
    if (month of StartDate is December) and (day of StartDate is greater than 28) then set weekNo to 1
    if (month of StartDate is January) and (day of StartDate is less than 5) then set weekNo to 1
    set weekText to "Week No. " & weekNo
    tell application "iCal"
    tell calendar myCal
    make new event at end of events with properties {start date:StartDate, allday event:true, summary:weekText}
    end tell
    end tell
    set weekNo to weekNo + 1
    set StartDate to StartDate + 7 * days
    end repeat
    --

  • How to know the number of rows in a cursor?

    Hi all,
    How can i know how many rows a cursor has ?
    Glen

    dbms_sql... you can use when you want to know how many lines of code the cursor has.
    If you want to know how many rows it will fetch, you have to fetch all rows - the number of rows actually fetched are assigned to the variable <cursor_name>%ROWCOUNT.
    When you don´t want to fetch all rows, all you can do is count(*)...
    Regards,
    Gerd

  • How to know the number of the document copy being printed?

    Hi all,
    Another question: If one is printing, for instance, two copies of the same document, is it possible to change the text of a field or floating field from one copy to another? For instance, in copy 1, the field would say "client" and the second copy "enterprise".
    Thank you

    I've been here all the time, ever since I got my G4 and could finally OS X (started with 10.1.5). Don't know how ya coulda missed me.... I'm usually in the Using the OS Forum and the Finder forum, with occasionaly excursions in the Spotlight forum.
    BTW, so this isn't completely off topic, after getting frustrated by the file count and Finder displaying correct sizes I experimented with a couple of Applescripts but then found a wonderful little Contextual Menu item, CalculateSize:
    http://www.pixture.com/software/macosx.php
    It tells you not only the number of files and sub-folders in a given folder, it also tells you the number of invisibles of each and the total size of the items, and it calculates sizes ever so much faster than the Finder does.
    Francine
    Francine
    Schwieder

  • How to know the number of rows of a ResultSet

    Hello.
    I'm trying to detect the number of rows of a query result before making all the results.next().
    Until know, my way was:
    ResultSet results = sql.executeQuery();
    while( results.next() )
    int i = 0;
    ... do stuff ...
    i++;
    out.println("The number of rows is: " + i);
    But I would like to know the value of 'i' just after 'executeQuery'.
    Does anybody have any experienc?
    Regards.

    How about like this???
    >
    ResultSet results = sql.executeQuery();results.last();
    i = results.getRow();
    results.first();
    while( results.next() )
    int i = 0;
    ... do stuff ...
    i++;
    out.println("The number of rows is: " + i);
    But I would like to know the value of 'i' just after
    'executeQuery'.
    Does anybody have any experienc?
    Regards.

  • How to know the number of Active users logged in to a Essbase  Application?

    Hi,
    Is there way to capture/log the number of active users who have logged into a particular Essbase application at a given time.
    In Essbase or in Shared services?
    I know we can see the EAS-Edit Sessions shows the actively logged-in users, then we can sort on the application/database & manually count the number.
    Is there a way to capture it in a log at a given time on a regular basis. Any MAXL or Shared services feature?
    Appreciate your thoughts.
    Thanks,
    Ethan.

    You could use maxl .
    display user all;
    there will be a column called "logged in" which will display true/false for the users
    but that will just show if they are logged into the server and not the application
    You can also use use display session
    display session all;
    or
    display session on application sample;
    which should show what you are after.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How do know the number of records ina cube for particular restriction

    Hello all,
    When you do right click on cube and display data then you have option to choose the fields. Lets say I restrict show me all the records for fiscal year "2006" then wgere can I see actually how many records there are of 2006.
    Thanks

    Hi Raj,
    By using LISTCUBE you can put a check mark for Output Number of Hits:
    If you do not select all fields in the field selection for output and have activated the database aggregation, several records may be collected together into a single record. If you select the option 'No. of Hitsoutput', an additional key figure is generated in the output table that specifies how many records the current record is made up of, that is, how many database records have been made into the output record.
    You can also use this option to determine how many records there are in a particular selection condition in the InfoCube. Specify a selection condition, but do not select any characteristics or key figures. In the return list, you only get the column return with the number of hits and the number of entries that are relevant for this selection condition.
    Hope this helps...

  • How to know the number of pages

    Hi,
    when I want to print a file, what is the fastest way to know how many pages I'm about to print ? 'preview' is one way, but isn't there a faster way to see in the printer window how many pages there are, and eventually also to select only a few of them ?
    Greetings, Dag

    Pages doesn't have what you want, though Apple has a suggestion for those who want line numbering:
    http://support.apple.com/kb/HT2878
    I recommend you use another app like OpenOffice if that is essential.

  • How to check the number of digits entered into a itab-field.

    Howdy,
    I've got a program where i retrieve some data from the database and then I need to check if field BKPF-XBLNR has exactly 15 digits in it.
    I've got no idea on how I would do this...
    Can anyone help?
    Thanking you kindly!

    XBLNR is a character field.  If you want to make sure all 15 positions have a digit and not some other character then use:
    IF BKPF-XBLNR CO '0123456789'.
    * OKAY, all 15 positions have digits
    ELSE.
    * NOT OKAY, at least one of the 15 is not a digit
    ENDIF.
    If you do not care what the characters are, then Rich has given you the solution but be aware that you could have embedded blanks, for example:
    'ABCDEF    GHIJK'
    is length 15.
    Message was edited by: Charles Folwell

  • ATG ID Generator, how to restrict the number of digits

    Hi,
    I have a requirement to generate IDs those has 6 digits. None of the ids should contain more than or less than 6 digits. How can I limit this using ATG id generator?
    If I give my seed as 100001, then will it start generating numbers greater than this value? Is there any OOTB method to give a maximum value? Or should I need to override the postGenerateLongId() to give a max check?
    Please advice.
    Thanks,
    R

    Hi Rajeev,
    This is not recommended. ATG GSARepositories do not work tend to work with a limited id space; nor do they help to generate ids within such a limited space. GSARepositories tend to "waste" ids. Basically, they do not support a realistic limit on the id space.
    You may want to consider making a new property to represent this limited id value for presumably a 3rd party system with stricter limits on ids. And allow the GSA items to have their own separate id generated by the IdGenerator (configured normally).
    If you were to attempt to generate 6-digit ids using the IdGenerator, you would obviously have to tweak the seed value and will want to shrink the batch size, potentially all the way down to 1 (which would force it to go to the database for every single id -- a potential performance issue). This is to keep ATG code from skipping ids and using up your id space too quickly. ATG would also use up the ids in any transient items that are discarded without being persisted, so there's no guarantee of consecutive ids for the persisted items. But if you can get all this work sufficiently and aren't creating too many items, you might be able to get it to work. There's no way to set an upper limit on an IdGenerator, but that's not pertinent. If you ever reached the upper limit, this whole scheme will breakdown regardless of what you do. That's why I strongly discourage you from doing this; especially for the actual repository id.
    Your best best may be to write custom code to do this using a property separate from the repository id, and then you can ensure all your criteria are met.
    Thanks.
    Nick Glover
    Oracle Support for ATG Products

  • How to count the number of digits before decimal value

    Hi I've a decimal value like this
    123,456.700000000000
    I need output as 6 (because I've 6 digits before decimal)

    Try
    Declare @d decimal(30,9)=123456.700000000000
    SELECT FLOOR(@d)
    SELECT len(FLOOR(@d))
    Thanks
    Manish
    Please click Mark as Answer if my post solved your problem and click
    Vote as Helpful if this post was useful.

Maybe you are looking for

  • Warranty void stick

    Hi, I just purchased my creative zen touch a matter of hours ago. it has finished its first charge and i have gotten a few songs uploaded. However, i recently discovered that the warranty void sticker on the bottom of the device is now half covering

  • File open on more than one computer at a time

    I maintain a network of four Macs (Cube, G4 Tower, Mini, and G5 Tower) all running OS 10.4.11. Recently two people working on the network discovered that they both had a certain file open at the same time. In order to determine the extent of the prob

  • Financial accounting substitution

    Dear all: I have a requirement to replace assignment field / item text for all items in the FI document from the item line 1, which like: Before Save: Item 1 Assignment = "11" Item 2 Assignment = "22" Item 3 Assignment = "33" After Save: Item 1 Assig

  • IPhone 5 battery

    After upgrading my iPhone 5 to iOS 6.1 my battery has been draining very quick. The only thing that helps is to remove my Gmail exchange account shut my phone off then re-add it. But then it happens again. Does anyone else have this problem or know w

  • Pop up in standard screen

    Hi, I have a requirement which is as follows- User will create Order wherein he will give the Sales area customer details. Once he enters plant and hits enter, a popup should appear which will contain the appropriate storage location for that plant (