2007 Sep 04 8:15 AM
2007 Sep 04 8:17 AM
hi
i want to remove leading zero from matrial no
thanks.
2007 Sep 04 8:16 AM
2007 Sep 04 8:17 AM
Hi,
use the FM "CONVERSION_EXIT_MATN1_OUTPUT" for Material and removing the leading zero's.
for adding the leading zero's you cn use "CONVERSION_EXIT_MATN1_INPUT" FM.
Or you can use
Shift <your variable of field> left deleting leading '0'
rewards if useful,
regards,
nazeer
2007 Sep 04 8:17 AM
2021 Sep 12 8:29 AM
Dear sir/madam,
Thank you for your help, i have been trying to create and use FM like Conversion exit alpha output.
here is an example code for your solution, i wrote this to the catalog part of my alv.
LOOP AT gt_sat INTO wa_sat.
SHIFT wa_sat-matnr LEFT DELETING LEADING '0'.
MODIFY gt_sat FROM wa_sat.
ENDLOOP.
2021 Sep 12 8:21 PM
zynp
You have chosen the wrong solution. It does not work in all cases. Try the one from nazeer shaik, which will allow you go in both directions.
2007 Sep 04 8:17 AM
2007 Sep 04 8:19 AM
Hi Laxman,
Use FM <b>CONVERSION_EXIT_MATN1_OUTPUT</b>
Reward points if helpful.
Regards,
Hemant
2007 Sep 04 8:22 AM
u can also move material number to a type c variable and den use dis statement..
data zmatnr(15) type c.
move wa-matnr to zmatnr.
shift zmatnr left deleting leading '0'.
2007 Sep 04 8:23 AM
hi
use the conv routine CONVERSION_EXIT_MATN1_OUTPUT
CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'
EXPORTING
input = matnr
IMPORTING
OUTPUT = matnr
.
Regards
Ravish Garg
Reward if useful
2007 Sep 04 8:30 AM
Hi Laxman,
MATNR field has conversion routines, which it contain two F.M one is INPUT and other is OUTPUT. you can check it by yourself, go to field any table select the domain for matnr field and double click on it, it opens the data element screen in that double click on domain name then it opens the domain screen in that you can find the conversion routine under 'output characteristics' column, doble click on it then it dispalys corresponding F.Ms.
'INPUT' F.M used to convert the data into sap format and
'OUTPUT' F.M used to convert the sap into narmal data.
for ur scenario u can use the 'output' F.M which is below one
Use FM : <b> CONVERSION_EXIT_MATN1_OUTPUT</b>
<b>Reward points if helpful.</b>
Regards,
Vijay