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

Character to Integer Conversion

Former Member
0 Likes
824

hi all,

can anyone please tell me that how to convert Charecter to Integer? i have a value in

itab-kunnr = '0000023004'. i have to remove 0 in left side and need value only '23004'.

KUNNR is a Charecter.

regards saurabh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
798

Hello,

Use the below statement.

shift <your varaiable> left deleting leading '0'.

Hope this helps.

Thanks,

Jayant

6 REPLIES 6
Read only

Former Member
0 Likes
799

Hello,

Use the below statement.

shift <your varaiable> left deleting leading '0'.

Hope this helps.

Thanks,

Jayant

Read only

Former Member
0 Likes
798

Hello,

You can use conversion exits

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

EXPORTING

input = itab-kunnr

IMPORTING

output = itab-kunnr .

Read only

GauthamV
Active Contributor
0 Likes
798

hi,

use Condense statement.

press F1 on condense to know more.

or you can use this function module.

CONVERSION_EXIT_ALPHA_OUTPUT.

Read only

Former Member
0 Likes
798

use FM

CONVERSION_EXIT_ALPHA_OUTPUT

Read only

Former Member
0 Likes
798

Hi Buddy,

shift it_details1-hunit left DELETING LEADING '0'.

or use pack stmt

Thanks & Regards,

Krishna

Read only

Former Member
0 Likes
798

hi

you can use MOVE, write or just assign it to the

required variables.

just have a look at the documentation for the MOVE

hope this helps

regards

Aakash Banga