‎2007 Mar 09 6:10 PM
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
‎2007 Mar 09 6:13 PM
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
‎2007 Mar 09 6:13 PM
Hi,
use fm
CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT
aRs
‎2007 Mar 09 6:13 PM
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
‎2007 Mar 09 6:13 PM
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.
‎2007 Mar 09 6:14 PM
‎2007 Mar 09 6:15 PM
Hi,
Please check this FM.
CONVERSION_EXIT_MATN1_OUTPUT
CONVERSION_EXIT_MATN1_INPUT
Regards,
Ferry Lianto