How to convert display format to internal format?

Question:
Dear all
I use READ LINE to read in data from a screen. I found that the data for a date has the format like 30.05.2004 and for a quantity has the format like 2,000. How can I convert these data to the table internal format i.e. 20040530 and 2000 so that I can read and update table using these data.
Thanks
Elaine
Answer:
This task is handled by Conversion Exits
.
_________________
Regards
R
Abap KC

SFMDR

Answer:
Dear R
I search the data type DATS and found its domain is DATUM. Then I display the domain DATUM and found that conversion routine is blank.
I search the data type QUAN and found its domain is MENG13. Then I display the domain MENG13 and found that conversion routine is also blank.
Am I going to the wrong direction? Please advise.
Thanks
Elaine
Answer:
No, you're not going in the wrong direction!
For dates, have a search using SE37 using CONVERT*INTERNAL* and CONVERT*EXTERNAL for your dates, although to convert the internal date to an external form using the write statement will work.
For quants, translate using ', ' and then condense the string no gaps.
_________________
Regards
R
Abap KC

SFMDR

More Articles:

If statement using 'IN'.?
no_merging option in ALV Grid?
Refresh statement?
Direct input program RMDATIND Question?
error message in start-of-selection?
OPEN DATASET?