Hi Guys!
Following problem:
I want to update a csv file and write the information's in it to a database.
two cols of the DB are TYPE INT4, but the csv fields can only be TYPE c,d,n,t or STRING.
source:
MOVE emplo TO db-emplo.
MOVE value TO db-val.
but the value in db-emplo is 0! and not 645.45 !
can i cast type d or string to INT4 ?
Integer fields do not support decimals.
Do you want the INT4 fields to have a valid value when you are done?
Can you post some examples of how you want the INT4 fields to be populated, for example, if the input has the value 645.45, what do you want the INT4 to be set to?
Thanks for Help... but I find my own way...
Solution:
In CSV File the Cell had the following "style": 102.456
So I did it this way:
While sy-subrc = 0.
REPLACE '.' WITH '' INTO emplo.
REPLACE '.' WITH '' INTO value.
EndWhile.
CONDENSE emplo NO-GAPS.
CONDENSE value NO-GAPS.
MOVE emplo TO db-emplo.
MOVE value TO db-val.
Now it works...
Thanks anyway.
Add a comment