How to covert exponent figure in char to numerical value

Hi all,
I am getting value 3.0000000000000000E+01 in one of char field in the output of my report , But I want it to be display as '30' . Please help , and tell how to convert the value
Thanks and regards,
V.Kumar

Hello,
- You will find below the code that will answer to your question :
REPORT ztest.
DATA : wv_count TYPE sy-dbcnt.
DATA : wv_fltp  TYPE imrg-readg.
DATA : wv_char  TYPE char22 VALUE '3.000000000000E+01'.
MOVE   wv_char  TO wv_fltp.
WRITE  wv_fltp  TO wv_char EXPONENT 0 DECIMALS 0.
WRITE / wv_char.
Cordialement,
Chaouki.

Similar Messages

  • How to restrict the user to enter only numeric values in a input field

    How to restrict the user to enter only numeric values in a input field.
    For example,
    i have an input field in that i would like to enter
    only numeric values. no special characters,alphabets .
    reply ASAP

    Hi Venuthurupalli,
    As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
    On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
    The attribute which you are binding to value property ;make its type as simple type which you made
    Hope this helps you
    Regards
    Rohit

  • How to pass variable in the place of numeric value?

    Hi,
    my requirement is i want to validate the selection screen block width.
    I have created tabbed selection screen.
    i need in which variable tab lengh values will be stored
    ex:-
    selection-screen: begin of tabbed block MYTAB for 10 lines,
                      TAB (20) button1 USER-COMMAND push1,
                      TAB (20) button2 USER-COMMAND push2,
    end of block MYTAB.
    here in the above code i want to pass variable instead of directly numeric value as 10.
    because based on some conditions i want to change the number of lines.
    how to do this...plz urgent, i will give all the points to anybody who given good answer.
    Thanks in Advance,
    venkat n

    Hi!
    And that's why God created macros.
    DEFINE seltab.
    selection-screen: begin of tabbed block MYTAB for &1 lines,
    TAB (20) button1 USER-COMMAND push1,
    TAB (20) button2 USER-COMMAND push2,
    end of block MYTAB.
    END-OF-DEFINITION.
    DATA: lv_lines TYPE i VALUE 10.
    seltab lv_lines.
    Regards
    Tamá

  • Converting char to numeric value

    I have table with social security no. but application does not
    have any validation for data so i get all different kinds of
    data like...
    123-24-0988
    123458900
    n/a
    N
    f234-90-8877
    12 345 6789
    Now i want to remove all '-' and alpha char from value and just
    want to remain only nuemric characters so i can use it as where
    parameter.
    Is their any function that i can use for this or any other logic
    that i can use for this?
    Thanks

    As demonstrated in a previous discussion regarding checking for
    numeric values, translate does not produce the proper results
    when you translate it to a null value. However, you can achieve
    the desired results, by translating to spaces, then replacing
    the spaces:
    UPDATE table_name
    SET ssn = REPLACE (TRANSLATE (LOWER
    (ssn), 'abcdefghijklmnopqrstuvwxyz- ', ' '), ' ', '');

  • How can I get HyperTrend to display the numeric value output of a CHOOSE statement?

    I have non-linear values I need to display on a HyperTrend graph.  I'm currently converting the input raw signal to a Units (Engineering) value and then looking up the actual value (from a calibration chart) using a CHOOSE statement in order to display the actual value on a panel, but I need to display the values output by the CHOOSE statement on a HyperTrend graph, along with other similar values.
    How can I do this?

    I have non-linear values I need to display on a HyperTrend graph.  I'm currently converting the input raw signal to a Units (Engineering) value and then looking up the actual value (from a calibration chart) using a CHOOSE statement in order to display the actual value on a panel, but I need to display the values output by the CHOOSE statement on a HyperTrend graph, along with other similar values.
    How can I do this?

  • How do I keep fields hidden until a numeric value is entered including 0

    I have a field that keeps other fields hidden until a numeric value is entered into it...
    My current script is:
    var showHide = event.target.value > 0
    ? display.visible : display.hidden;
    this.getField("Increase DecreaseRow1").display = showHide;
    this.getField("Amended BudgetRow1").display = showHide;
    And it works except when a "0" amount is entered, the fields remain hidden. I need to allow the "0" amount to unhide the fields so, I've tried changing it to:
    var showHide = event.target.ValueAsString != ""
    ? display.visible : display.hidden;
    this.getField("Increase DecreaseRow1").display = showHide;
    this.getField("Amended BudgetRow1").display = showHide;
    but that makes the fields I want hidden visible, even without an entry.
    Any ideas?
    I'm using Adobe Acrobat XI Pro.
    Thanks in advance for any help!

    I use the custom JavaScript validation of:
    if(event.value == 0) event.value = "";
    for the field with the calculation. If one uses a currency symbol or the percentage format then additional coding is needed to set the format to a number without the currency symbol for zero values and the desired format for the currency or percentage.

  • How to put 'NA' in text filed with numeric value

    Dear fellows,
    I need to do one think in my forms, and that is I want to put value 'NA' instead of null values in numeric field in my forms, when no number is inserted than NA will be written there.
    Could it is possible or not, if so kindly help me in this regard I will be thankful.

    Dear Gerd Volberg
    Thanks dear for your reply, one think more, if I need to do like this that in one form data is entered and on second form I just need to display the numeric value but when a null value occur just NA is shown. Could it possible.
    If so please help me.

  • 'How to Do Doc' on Virtual Char & KF

    Can any one please send me How to do document on Virtual Char & KF
    Thanks

    Hi,
    Virtual key figures: Will not be stored in the cube. Will be computed at run time when he query is executed. The are virtual in nature and not physical. When you view the cube's contents in listcube, you will not see it there. This is not the same as calc key figures. example: to store sales in your cube and this has o be allocated to all the group companies with a business logic, in this scenario you can code the logic in an exit and derive these virtual key figures. Another example is, when you report on no of days outstanding of your debtors. This will vary depending on when you the run the report. So, a exit can be coded to compute this run time. This is classical example of virtual key figure.
    Virtual characteristics: Same as above. Here you will derive the characteristics while report is run.
    Depending on the requirements, you must decide when to code for a virtual kf or cha and when to store them in the cube physically.
    Virtual characteristics and Key figures are useful if you want to dynamically pouplate data from the fact table to the field.
    Virtual key figures are key figures within an InfoProvider that are not filled with data. Instead the key figure value is determined at runtime of the query using custom ABAP coding
    Check "how to" doc for virtual characteristic/key figure details.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20use%20variable%20time%20references%20in%20currency%20conversion
    Virtual key figures and charecteristcs are populated at query execution time.
    These virtual objects should be included in the modelling level itself,so that it can be used in the query while using exit in that.
    check this step by step doc:
    https://websmp106.sap-ag.de/~sapdownload/011000358700009299362001E/HOWTOIDENTIFYCOMPRESULTS.DOC
    Regards
    Karthik

  • How do u convert a numeric value to char

    hi,
    how do u convert a numeric value NUMBER(22) to a character value.... like a to_char() function?
    i've tried the CAST function it won't work.

    Hi,
    Use of CAST function will convert NUMBER to CHAR but it takes a lot of time if there are large number of recrods.
    Syntax:
    CAST(col_name AS char)
    I have tried this, it worked fine for less records.
    Are you getting any error while using cast function or while querying..
    As far as I know it won't give error in these cases (if correct syntax used) but it will take very much time (depending on the number of records) while querying.
    -Vency

  • How can I move out the char Θ

    hello.
    How can I move out the char Θ (unicode U+0398) оn Jspx-page used af:outputlabel.
    When I write <af:outputLabel value="27. char(Θ)" />, application auto replace on char "?".
    thx, Dema.

    Hello
    Probably an encoding problem.
    try changing your charset into your JSP:
    ex: <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    I tried it and it works for me
    Jack

  • How to get the first 4 chars form a var ?

    Hi guys,
    How to get the first 4 chars form a var ?
    i.e  temp type num20 value '00000000000012345678'.
    how to move the first 4 chars to another var?
    thx in advance.

    hi
    use OFFESTS..
    example:
    var1 = '12345678'.
    var2 = var1+0(4).
    now var2 conatins '1234'.
    thx
    pavan

  • How to filter Key Figures - not using the GUIDs

    An example How to filter Key Figures may look like this:
    http://XXX.com:8000/sap/bw/BEx?sap-language=DE&bsplanguage=DE&CMD=LDOC&TEMPLATE_ID=XXX&FILTER_IOBJNM=41F68RV4ZB5VYSARODYU70CAQ&FILTER_VALUE=41F68SAI18DB01DO023IR49QA
    The GUIDs consume the space in the URl. Is there a way to work with an alias.
    To use the technical name of a Key Figure defined in the Query does not work.

    Hi Cherie,
    This is exactly the type of problem that I'm currently trying to figure out. I'm trying to following your solution but I'm not clear on how you actually achieved this in you last note. I want to dynamically select actuals/budget column fields based on what period I enter. I thought about creating 12 separate RKF fields for actuals and 12 separate RKF fields for the budget reforecast and outputting these all and then doing some VBA to hide the fields not required based on which period was selected... how is your variable ZFYAPER7 defined and calculated?
    Cheers

  • How to find key figures not created in a Structure.

    After using Where Used on a selection variable Z_FISCPER3_M_SV a list of Key Figures appear. I wish to amended these Key Figures as the selection variable used is incorrect. However, I cannot find these Key Figures in the Structure?  Does anyone know how to find Key Figures not created in a Structure.

    Thanks for such a quick response.
    I am assuming the following about the table :
    -     Column u201CCALDAYu201D contains a date value for each day the Index is active.
    -     Column u201CBIA_USEDu201D contains a value that is iterated for the given day each time the Index is used.
    -     Column u201CBIA_NOTPOSSIBLEu201D contains a value representing how many times a query could not access this Index.
    -     Column u201CNO_BIAu201D tells if a BWA Index exists at all on any of my BWA Blades
    -     Column u201CBIA_TECHINAu201D ????????
    -     Column u201CBIA_INAu201D ???????
    -     Column u201CDB_FALLBACKu201D ???????
    I am not sure if my understanding of the column is correct.  Can you tell me they are?  The columns with u201C???????u201D mean I have no solid understanding of how to use these columns at all.
    Thanks

  • How to convert exponent to number format

    Hi,
    how to convert exponent to number format.My column is in number and the data is in exponent format .for example  data is 2.44705130197009E18 .when i do field name haveing this data like
    select * from table name where filed name =2.44705130197009E18 ,field name  is of number (20) data type .but i am not getting any data fectched .
    your advice is at most appriciated .
    Regards,
    Suja

    Example of what I was saying...
    SQL> create table myexp (name number);
    Table created.
    SQL> insert into myexp values (2447051301970090001);
    1 row created.
    SQL> select name from myexp;
          NAME
    2.4471E+18
    SQL> col name format 9999999999999999999999999999999999999
    SQL> select name from myexp;
                                      NAME
                       2447051301970090001
    SQL>
    The number you are seeing as an exponent is not just the number that is stored with lots of 0's on it, there's other information you are missing, so you need to change your format to see the true value.

  • How to convert DATE variable to CHAR variable

    dear all,
    How to convert DATE variable to CHAR variable
    thanq

    Depending on your final goal here are 2 options.
    DATA: datein        TYPE d.
    DATA: dateout(10)   TYPE c.
    DATA: dateout2(8)   TYPE c.
    datein = sy-datum.
    WRITE datein TO dateout MM/DD/YYYY.
    dateout2 = datein.
    WRITE:/ datein, dateout, dateout2.
    and the output
    05022008 05/02/2008 20080502    

Maybe you are looking for

  • What is Verizon going to do for us?

    Obviously this phone has a lot of issues, everything from the phone not holding a connection, forced-closed apps, random lock-ups, reboots, etc. The Verizon Wireless web store seems to have a lot of these phones being sold as refurbished phones so I

  • Script for mulipage contact sheet?

    Don't know if this belongs here or in Photoshop forum since it invloves a Photoshop feature called by Bridge -- but since Bridge is where I typically use it... Currently I'm creating contact sheets from folders selected within Bridge (or thumbnails s

  • Camcorder Import Speed

    I connected my JVC DVL520U to my MBP via FireWire 800. When I import into iMovie HD, it's done in real time. Pardon if this is a silly question, but is there a way to get it to import faster than real time without sacrificing quality? MacBook Pro   M

  • Changing DPI in Drawing

    I create many things in Appleworks Drawing. However when I try to submit them to my printing company for posters or postcards, they claim they need them at 300 DPI. I believe the default setting is 72 DPI. How do I change this setting to 300 DPI? I'v

  • Trre like structure in JComboBox. (VERY VERY URGENT , PLZ. HELP)

    hi, Question is I want to get a tree like structure in my comboBox. I have built a custom component just like FileDialog. In my comboBox I have a directory showing that inturn contains directories inside. When I pop up my component my parent director