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: 

Character to Integer Conversion

former_member1284402
Participant
0 Kudos
167

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

Former Member
0 Kudos
141

Hello,

Use the below statement.

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

Hope this helps.

Thanks,

Jayant

6 REPLIES 6

Former Member
0 Kudos
142

Hello,

Use the below statement.

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

Hope this helps.

Thanks,

Jayant

Former Member
0 Kudos
141

Hello,

You can use conversion exits

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'

EXPORTING

input = itab-kunnr

IMPORTING

output = itab-kunnr .

GauthamV
Active Contributor
0 Kudos
141

hi,

use Condense statement.

press F1 on condense to know more.

or you can use this function module.

CONVERSION_EXIT_ALPHA_OUTPUT.

Former Member
0 Kudos
141

use FM

CONVERSION_EXIT_ALPHA_OUTPUT

Former Member
0 Kudos
141

Hi Buddy,

shift it_details1-hunit left DELETING LEADING '0'.

or use pack stmt

Thanks & Regards,

Krishna

Former Member
0 Kudos
141

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