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.

TIA

Peter

Add comment
10|10000 characters needed characters exceeded

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 ). %>

    OR

    <% 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".

    brian

    Add comment
    10|10000 characters needed characters exceeded