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

ABAP PROBLEM!!!

Former Member
0 Likes
662

I have a field for material and its displaying '000000000012344'

how can i concider only the last digits contaning numbers other that '0'

in this case it is 12344 but it could be 10000012344 too. so i cannot concider the last few digits.

Can some one please help???

Regards,

VJ

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
604

Hi VJ,

Use <b>PACK V_MATNR.</b>

data:

v_matnr type mara-matnr value '00000000123456'.

start-of-selection.

write:/ v_matnr.

pack v_matnr to v_matnr.

condense v_matnr.

write:/ v_matnr.

Thanks,

Vinay

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
604

Hi,

use fm

CONVERSION_EXIT_ALPHA_INPUT

CONVERSION_EXIT_ALPHA_OUTPUT

aRs

Read only

Former Member
0 Likes
605

Hi VJ,

Use <b>PACK V_MATNR.</b>

data:

v_matnr type mara-matnr value '00000000123456'.

start-of-selection.

write:/ v_matnr.

pack v_matnr to v_matnr.

condense v_matnr.

write:/ v_matnr.

Thanks,

Vinay

Read only

amit_khare
Active Contributor
0 Likes
604

You can use this FM -

'CONVERSION_EXIT_ALPHA_OUTPUT'

Als, if you are displaying data in ALV then just give lzero = 'X' in fieldcatalog.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
604

CONVERSION_EXIT_MATN1_OUTPUT

is the FM

Read only

Former Member
0 Likes
604

Hi,

Please check this FM.

CONVERSION_EXIT_MATN1_OUTPUT

CONVERSION_EXIT_MATN1_INPUT

Regards,

Ferry Lianto