Skip to Content

Reverse WRITE TO ??

Hi, how do I convert a string input to a numeric field according to the current user settings?

E.g. '1.234,567', taking into consideration the user's settings for decimals and thousands separator.

I could not find any function to do that, although this is a basic functionality every dynpro uses.

Any hints greatly appreciated.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 14, 2003 at 12:48 PM

    Hallo Peter,

    I assume you want to do this in context of a BSP page. You can do:

    <%= me->if_bsp_page~to_string( value = sy-uzeit ). %>


    <% me->if_bsp_page~write( value = sy-uzeit ). %>

    If you want to see the source, and how we do it, look at: CL_BSP_PAGE_BASE->TO_STRING(), which is in its heart a "write to string".


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.