Hot to conver text to number....i.e char to key figure

Dear All,
we have field called 0base_location characteristic.
The data for this field is  30 WAGONS
                                       2 WAGONS  Etc...
Based on this data i need to do a calculation i.e 32 i mean total of above two
its being a characteristic, i can not do the summation.
I feel the alternative is to map a this characteristic  to a Z key figure and do some routine...my query is wil this solve the problem?
If so kindly give me the ABAP code....
please suggest other alternatives
please help me out
Regards
venu

Hello venu,
Ur problem can be solved using Virtual Char. And Virtual Key Fig.
U need 1 Virtual  Key Fig. and Chara. each.
U can move last par "WAGONS" inot cha. and numeric part to Key Fig.
After which u can sum up key part at query level.
Any futher details required let me.
Regards,
Sachinkumar.

Similar Messages

  • Number of days required in Key Figures

    how to take "number of days" from date characterisstic to  key figure for giving formula's on that?

    Hi,
    you can  define date as a Characterstic/Key Figure. It all depends on how you would like to use it in a query.
    For example: By having dates defined as Key Fig. you can restrict them and use them as variable for the other Key Fig. While defining them as characteristics you have the advantage of query analysis with respect to dates.
    Hope this helps,
    Regards
    CSM Reddy

  • Database error text: invalid number

    Hi Gurus,
    I am calling a procedure proxy from ECC and it is giving me a short dump:
    Error 339 has occurred while executing database procedure
      ""_SYS_BIC"."Krishna_Demo_Proj.Model/KC_GET_MARA"" on the
    current database connection "R/3".
    Database error text: invalid number: ''
    Triggering statement: "dsql_open_proc"
    I have created a table with only one field.
    Mapped the Data types after creating the Procedure Proxy
    Which data type I need to use? I tried with lots of combinations but, still the same error.
    Regards,
    Krishna Chauhan

    Hi Srinu,
    I have used NVARCHAR 18 and corresponding to that CHAR18 is used.
    Please see the attached screen shots.
    Regards,
    Krishna Chauhan

  • How to change Text to Number in Excel 2013

    Hi,
    I imported and parsed a large CSV file (75000 rows) with 4 columns as numbers. They arrive in Excel as text with a "." as decimal separator. In Excel options, I set the decimal separator to "." but data remains as text. I could edit and
    enter each cell to convert it as number but I have 4 x 75000 cells...
    Any idea ?
    Thanks for your help

    Hey Wlid1966,
    This simple action, I've included some links that explain you step by step:
    http://www.extendoffice.com/documents/excel/582-excel-change-text-to-number.html
    http://www.extendoffice.com/documents/excel/671-excel-change-number-to-text.html
    http://www.accountingweb.com/article/three-ways-convert-text-based-numbers-values/222008
    Please Mark This As Answer if it helps to solve the issue
    Tzuri Ben Ezra | My Certifications:
    CompTIA A+ ,Microsoft MCP, MCTS, MCSA, MCITP
    |
    FaceBook: Tzuri FaceBook | vCard:
    Tzuri vCard | 
    Microsoft ID:
    Microsoft Transcript 
     |

  • Interactive report sort text as number

    Hello,
    I was wondering if it is possible in an Apex interactive report to sort text as number?
    For example, a series of text rows:
    4
    10
    2
    would sort as:
    10
    2
    4
    if it were text. What I would like to see is:
    2
    4
    10
    How could this be done?
    Thanks.

    If your column contains numbers only, you could use TO_NUMBER (column_name) column_name to convert it to a numeric value and it will sort it properly.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Replace text with number

    Hi
    i have 2 columns from flat file
    0amount       number
    10000          
    "Intangibles"         2000
    20000              
    'sales'         4000
    my output is required like
    incase if i am getting text ( this text is not constant its coming like any thing shownw above example)  i need replace number key figure values in 0amount fileds.
    how can i reach with this in field routine
    data v_text type char
    if source_fields_0amount not equall number
    result 0 number ( kf)
    like what is code i need to use

    Hi,
    One thing's to be clarified :
    If you need sometimes number & sometimes text in a particular target field, then it has to be a char field and you cant do any mathematical operation on that later.
    --Akashdeep

  • Short text and number of outline not maintained error in BAPI_ENTRYSHEET_CREATE

    Hi Experts,
    I am using BAPI BAPI_ENTRYSHEET_CREATE' for creation of service entry sheets.
    I passed below data into the respective parameters
    Entry Header Sheet -
    SHORT_TEXT                
    THIS IS SAMPLE TEXT
    PO_NUMBER                 
    231002130
    PO_ITEM                   
    00010
    And just executed BAPI, I am able to get the ENTRYSHEET NUMBER.
    Next I tried passing below data again
    Entry Header Sheet -
    SHORT_TEXT                
    THIS IS SAMPLE TEXT
    PO_NUMBER                 
    231002130
    PO_ITEM                   
    00010
    ENTRYSHEETSERVICES:
    QUANTITY                             
    10.000
    BASE_UOM                  
    AU
    And then executed - I am getting an error saying 'Short text and number of outline not maintained'.
    My input file to  BAPI contains the structure as  PO, Item Number, Short Text for Service Entry sheet and Quantity.
    Please suggest if any ideas.
    Regards,
    Rafi

    Hi All,
    I resolved this. Please refer screen shots below for solution
    Below screen shots show about the data to be passed to BAPI_ENTRYSHEET_CREATE
    Regards,
    Rafi

  • Left justify text in number field

    Hi,
    I would be grateful if someone could tell me how to display the text (returned from a loop) in a number field
    so that it is left justified - also where would it have to be set?
    The 'justification' setting when set to 'Left' doesn't achieve this.
    Any help would be appreciated.
    Kind Regards,
    Tom

    First i dont think so in Number field u can set TEXT
    Create a field with CHAR type and u can put alpha numeric text in it
    set the justification Property of Text item to Start or Left
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • My iphone 5 will not text one number

    Have seen previous threads on this issue but none have resolved this matter for me.
    There is one number that I cannot text, the other p contact a Samsung GT-S3350(Tesco) mine is on Vodafone.  I can receive texts and calls and can call the number, but texts fail to send and are all marked as Not Delivered.
    I have turned both phones on and off, turned on/off iMessage, 3G, data roaming and have reset network settings. I have also deleted the contact from my phone and the other phone.
    My wife has an iphone 5 and doesnt have any problems texting the number.
    Can anyone help?
    Thanks!

    I did solve the problem. I assumed because the message bubble was green that my friend had another type of phone. I was completely wrong! After I just made sure iMessage was on and restarted my phone it works just fine! So I guess iMessage was the problem ☺️

  • I cannot text one number in my phone that I have in the past...

    Since last week I cannot text one number in my phone, yet if I move my SIM into another phone it sends... any ideas? have tried wiping the SIM, re-starting the phone...

    Nevermind! I found out I can get a docking station that you can hook up from there to charge it! YEAH!

  • Cannot text one number

    I can not text one number and it is driving me crazy!!  I recieved a message that says "you can only send messages to fixed dialing numbers".  I do not know what that means.  I can send texts to Verizon, and T-Mobile phones.  I can send and recieve calls from the number but I can not text.  
    This is recent that this has happened.  I was able to send and recieve texts from this one numbers, but it seems as of OCtober, I can not.  
    Is anyone else having this issue??  It is truely driving me crazy!!

    Try checking Menu / Settings / Call Settings / FDN and make sure fix dialing option isnt enabled, if this is on this can restrict in and out going items.. 
    Another thing to check with Verizon and make sure no restrictions is setup on your accounts or you can check and make sure you havent added that number to the block list on the MyVerizon area of your account.

  • Display Text as a Key Figure

    Hi peeps,
    I would like to display a text half way along my bex report
    i.e. would like to display 4 chars ,then 5 kfs then some text and then some more kfs.
    i am currently doing this using a Formula Variable to Replace a KF value with a char, and this works to an extent.
    The char value is diplayed, but the formula variable only allows me to set the output to Number so if the char contains anything other than a number it fails to display. It also contains the number formating in bex.
    any ideas.
    e.g.
    if a char contains week no, 200450, when using a formula var to display this as a KF, I get 200,450 formatting in Bex.
    If the char contains 10/20/30 I get a display error in bex as it will not alow the '/' to be displayed
    any ideas.
    alan
    alan

    You could create your query as a tabular query. To do this just click on the 'Tabular Display' Button (left beside the technical Name button. There you can arrange the columns as you like and you are not restricted to characteristics/key figures order.
    Best regards
       Dirk

  • Is it possible to Create a Long Text Field (more than 255 Char Long)?

    Is it possible to Create a Long Text Field (more than 255 Char Long) as like Description field in Service Request Object??
    Thanks!

    Hi
    User can only create custom Long text field (255 Charcter) . Currently system does not support custom note creation

  • How to influence the text display of key figures in the interarctive DP

    Hello all,
    Does anyone know if there is a possibility (BADI, etc.) to change the text display of key figures (not characteristics!) in a planning book/data view?
    I know that you can define a free text in the data view but still, this is only one fixed text and it cannot be changed.
    Reason for the request: We would like to use the same key figure (and hence, indicate 2 different texts) for two different purposes (in different selections) without having to create a new data view.
    Kind regards,
    Klemens

    if you dont want a new data view and might even go to the extent of creating a user exit for this ... here is an idea
    - just create auxillary KF ( or use spare Temp KF depending on what you want to do with the data in the view) for each of these KF with the text
    lets say you have KF1 and KF2 - create KF1A and KF2A
    Make sure KF1A = KF1 and KF2a = KF2
    Now depending on user you can display KF 1 and KF2 or KF1a and KF2a depending on the user by using macros USER() and ROW_VISIBLE(0)

  • Experience with creation of a large number of key figures

    Hi:
    I have a need to create a large number of Key Figures (at least about 50 of them) for DP use. Do you have any experience with automating this task if so, can you share your experience?  Thanks.
    Satish

    Hi,
    So far we have not come across a need to automate KF creation. And 50 KF is not a huge number, it would take may be a couple of hours to create them. Also, since it is a one time activity, developing an automation script for the same does not sound useful. You might want to consider creating them manually so that you can ensure all settings are proper.
    Hope this helps.
    Thanks & Regards
    Mani Suresh

Maybe you are looking for

  • Microsoft office is unavaliable.

    I continue to recieve this message every single time I try to open microsoft office 2013. "The connection to microsoft office Exchange is unavailable. Outlook must be online or connected to complete this action."<input id="mac_address" type="hidden"

  • Add line types  in invoice

    when i press type lov in invoice line appear item freight miscellaneous withholding i want to add another type like custom - bank charges .... and so on how can i add these types.

  • ODAC issue with EPM 11.1.2

    Hi All, I have downloaded ODAC & installed. Here the problem... oracle services are starting but when i tried to connect oracle db and its not connecting...says http:404 not found...help me on this... *before ODAC it worked fine. Thanks, Ravi

  • Clearing out unwanted updates from updater?

    I was trying to update some of the garage band tracks, the update was 1.2gigs, I decided I didn't want to load those on. Now, the updater flashes twice a day, new update, and its the garage band update. How can I clear this unwanted update?

  • Add photo to Speed Dial

    Hello, I have had my Z10 4 days and this forum has been invaluable.  I am becoming very comfortable with things.  I have have added my speed dial contacts but do not seem to be able to save the avitar.  When I go to the contacts page, click on avitar