cancel
Showing results for 
Search instead for 
Did you mean: 

convert to internal format

Clemenss
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Clemenss
Active Contributor
0 Kudos

no standard solution

Former Member
0 Kudos

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

Former Member
0 Kudos

According to other users on this forum you can call CONVERSION_EXIT_ALPHA_OUTPUT from the abap yourself with no problems.