Application Development 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: 

FM to convert charcacter to Float

Former Member
0 Kudos

Hi,

i am moving the Character set to Packed type.

is there any function module for the same?

please send me

thanks

shiva

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi shiva,

use this FM CONVERT_FROM_CHAR_SORT_RFW to convert characvter to any data type ..

just specify the type when you call the FM ..

regards

satesh

3 REPLIES 3

Former Member
0 Kudos

Hi shiva,

use this FM CONVERT_FROM_CHAR_SORT_RFW to convert characvter to any data type ..

just specify the type when you call the FM ..

regards

satesh

Former Member
0 Kudos

Hi Shiva,

u can simply use the assignment

var_packed = var_char.

Regards,

Bikash

Former Member
0 Kudos

Hai Shivakumar

Check with the code

Data : J_VALUE TYPE STRUC_DC_ATTRIBUTE_RFW-VALUE,

J_ATTRIBUTE_ADM TYPE STRUC_DC_ATTRIBUTE_ADM_RFW,

J_ATTRIBUTE_ADM TYPE STRUC_DC_ATTRIBUTE_ADM_RFW,

j_pointer type ref to data.

FIELD-SYMBOLS <FIELD1> TYPE ANY.

CALL FUNCTION 'CONVERT_FROM_CHAR_SORT_RFW'

EXPORTING

CHARVALUE = j_value

ABAPTYPE = j_attribute_adm-abaptype

rfieldname = j_attribute_adm-ref_field

rtabname = j_attribute_adm-ref_table

IMPORTING

POINTER = j_pointer

.

assign j_pointer->* to <field1>.

Thanks & regards

Sreenivasulu P