2012 Jul 12 7:01 AM
the user is entering a 40 length material number in the selection screen and on display after fetching the data it is displaying an 18 charcter length matnr.
eg.
s_matnr = f001234567891234rtyu5678deftrgtyumewqdfte
in the output.
it displays : f001234567891234r!
any solution for this.
the user is entering a 40 length material number in the selection screen and on display after fetching the data it is displaying an 18 charcter length matnr.
eg.
s_matnr = f001234567891234rtyu5678deftrgtyumewqdfte
in the output.
it displays : f001234567891234r!
any solution for this.
2012 Jul 12 7:16 AM
Explain what you are trying to do.
MATNR is CHAR 18, It will accept only 18 characters.
Thanks,
Shambu
2012 Jul 12 7:21 AM
i hav declared the matnr datatype as 40 characters only. but then also it is showing only 18 characters in the output.
2012 Jul 12 7:18 AM
Standard report or customer one ?
Maybe conversion_exit_matn2_output ?
Regards.
2012 Jul 12 7:23 AM
2012 Jul 12 7:32 AM
Material should be declared like mara-matnr.
Use the function mentioned above just before output the material in order to get the desired result.
2012 Jul 12 7:31 AM
2012 Jul 12 7:37 AM
yeah its is an alv report.and i am taking matnr from plaf table.
2012 Jul 12 7:47 AM
If you declare correctly the material, probably it will displayed correctly since during fieldcatalog merge it will get the correct conversion routine.
2012 Jul 12 7:43 AM
HI,
If you want to display Material with 40 Char in your report then change MATNR type from MARA-MATNR to Your New defined MATNR type of 40 Char in Internal Tables where you mentioned MATNR TYPE MARA-MATNR.
Regards,
RAvi Singh
2012 Jul 12 12:51 PM
Hi
Vaisakh ,
If it is a ALV Report pls give the tablename and ref.fieldname for the field catalog
prepared.
Then it will be displayed according to the field you take it in the fieldcatalog.
Ex: While preparing the field Catalog use this code..
WA_FIELDCAT-TABNAME = <IT_TAB>
WA_FIELDCAT-FIELDNAME = <FIELDNAME>
And also Use
WA_FIELDCAT-REF_FIELDNAME = <FIELDNAME>
WA_FIELDCAT-REF_TABNAME = 'TABLE NAME>.
Regards,
Srik.