09-14-2010 10:46 AM
Dear all,
in alv output, the material no and material group is not showing properly..
for e.g. matnr = 004125 & matkl = 076
it is showing only 4125 & 76
I hv check the data types and all.. but could not find the problem..
can u pls help me to solve it.
Thanks,
Dinesh
09-14-2010 10:50 AM
Hi
Use conversion exit for the material number CONVERSION_EXIT_MATN1_INPUT & for Matkl you can use CONVERSION_EXIT_ALPHA_INPUT .
Regards
Abhii
Edited by: Abhii on Sep 14, 2010 11:54 AM
09-14-2010 11:22 AM
09-14-2010 11:25 AM
Hi,
Check your fieldcatelog you must have supressed the leading zeros then.
Regards,
Prashant
09-14-2010 11:31 AM
hi ,
check for field property in fieldcat for that column
ls_fieldcat-no_zero = p_nozero .
you might have passed 'X' to ls_fieldcat-no_zero
in alv grid display fieldcat
Regards
Deepak.
09-14-2010 11:29 AM
the leading zeros are deleted by default.
in the fieldcatalog for both matnr and matkl mark LZERO = 'X'.
09-14-2010 11:33 AM
Hi,
What fields have you given as reference fields in the fieldcatalog?
Refer to MARA-MATNR and MARA-MATKL as the reference field and reference table.
Regards,
Ankur Parab
09-14-2010 11:39 AM
Hi friend,
I think problem is when you set ref_fieldname and ref_tabname in fieldcat. Try remove them.
"remove
* ls_fieldcat-ref_tabname = 'MATNR'.
* ls_fieldcat-ref_fieldname = 'MARA'.
Please check,
Regards,
09-14-2010 11:53 AM
Respected All,
Problem solved..
actually i was writing
fld_catalog-no_zero = 'X'.
but after becoming comment this line.. report is showing proper values.
Thank u all.
09-14-2010 11:52 AM
How are these two field declared in your internal table ?
Also try setting the output length in the field catalouge to 18 for matnr and 09 for MATKL
09-14-2010 11:54 AM