‎2010 Aug 14 6:52 AM
Hi ppl,
My requirement is ot read from a file for processing the BAPI. The bapi takes in quantity fields. I am reading the text file into a character internal table and then using split to move to the desired fields into the final data table. Here if I have to convert the character field to type P, the value is getting rounded off. Like if the value is 89.889 the conversion is leading to 90.000. It is not desired. Is there any other way to convert c to p without the rounding off so that the value says as 88.889 ater conversion ?
‎2010 Aug 16 1:07 PM
Hi,
Use The FM OIU_ME_CHAR_TO_NUMBER to convert the char value to a Packed or Float value.
Pass Itab-value to FM OIU_ME_CHAR_TO_NUMBER and Get the P acked decimal value
Hope this answer will help you.
Regads,
Kiran
Edited by: kiran kumar on Aug 16, 2010 2:14 PM
‎2010 Aug 23 8:20 PM
I just used this function today (OIU_ME_CHAR_TO_NUMBER) in much the same way. It works even though it is technically "not released."