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

Data Conversion

Former Member
0 Likes
456

Hi Gurus,

How to move C data type into NUMC data type in SAP.

I have used move command and = as well, but not able to assign C data type value into NUMC .

Please reply with Solution ASAP.

Regards,

Rahul

3 REPLIES 3
Read only

Former Member
0 Likes
433

Hi Rahul Sinha,

Use this FM: CONVERT_FROM_CHAR_SORT_RFW.

It will convert char to any data type,,,,,

Hope it is helps.

Regards,

T.Durai murugan.

Read only

bpawanchand
Active Contributor
0 Likes
433

HI

DATA :

w_c(10) TYPE c VALUE 'abcb232',

w_n(10) TYPE n .

w_n = w_c.

WRITE :

w_n.

Regards

Pavan

Read only

Former Member
0 Likes
433

Hi ,

check below code

= is working for me.

DATA:

 ch(5) TYPE c,
 nm(5) TYPE n.


ch = '10'.
nm = ch.

WRITE : ch.

Best regards,

Brijesh