cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi!

nice question popping up again and again:

When entering any text value on a screen (dynpro) field, it is automatically converted to ABAP internal format.

This is done according to the technical characteristics defined in the underlying domain.

If a conversion routine is specified for the domain, it will be processed. I.e. conversion exit 'ALPHA' will used the function module 'CONVERSION_EXIT_ALPHA_INPUT'.

Many (or most) domains are not connected to conversion routines. Date and numeric values are converted according to the user and/or language settings for external representation of dates and numeric values.

But: There seems to be no way to call those conversion routines from ABAP programs.

Why not?

regards,

C.

0 Likes
View Entire Topic
Former Member
0 Likes

Hi,

To convert dates or numeric values in user-specific format you can use WRITE stmt.

data: odate(10),

onum(20),

value type p decimals 2 value '123456.78'.

write sy-datum to odate.

write value to onum.

Svetlin