Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in data conversion

Former Member
0 Likes
380

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 ?

2 REPLIES 2
Read only

Former Member
0 Likes
345

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

Read only

0 Likes
345

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."