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: 

Need to convert Character to INT

Former Member
0 Kudos
329

I have 2 variables

var_1 type CHAR 100

var_2 type INT4 length 4

I have value '1234' in var_1. Now i want this to move to var_r.

I used MOVE statement, = , UNPACK but it works when itry from r/3 but this piesce of code is present in the RFC and is executed from portal. I am having problem for this conversion when i execute from portal.

Before raising i searched in foroum but not able to get the solutiobn

could someone help me on this?

Thanks,

Prashanth J R

1 ACCEPTED SOLUTION

former_member555112
Active Contributor
0 Kudos
250

Hi,

Make use of FM CHAR_NUMC_CONVERSION.

Regards,

Ankur Parab

7 REPLIES 7

former_member555112
Active Contributor
0 Kudos
251

Hi,

Make use of FM CHAR_NUMC_CONVERSION.

Regards,

Ankur Parab

0 Kudos
250

that is not working

Former Member
0 Kudos
250

Hi prashanth,

ucan use this to convert char into any data type.

CONVERT_FROM_CHAR_SORT_RFW.

CWM/CONVERT_CHAR_TO_PACK

Hope it will solve your problem,

Thank you,

Pavan.

0 Kudos
250

working...

Thanks,

Prashanth J R

Edited by: Prashanth J R on Aug 5, 2009 12:48 PM

0 Kudos
250

ok prashanth close the query if your requirement is met.

Have a great day ahead.

Regards,

Pavan.

0 Kudos
250

Hi all,

I would like to use the FM cited above (CONVERT_FROM_CHAR_SORT_RFW CWM/CONVERT_CHAR_TO_PACK).

How is it used ?

I tried this :

CALL FUNCTION u2019CONVERT_FROM_CHAR_SORT_RFWTu2019

EXPORTING

INPUT = lv_char1

IMPORTING

OUTPUT = lv_number

Not working

Thank's for help.

Youssef.

0 Kudos
250

The best way is to read the function module documentation.....

Regards

Abhii