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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.