2008 Jul 31 11:45 AM
hi all
i'm working on ALV report, i'm displying many fields
in that i'm displying material number i;e MATNR-0000001245.
i want to remove the leading zero's from matnr in all the rows,
how to do it.
Regards
Suprith
2008 Jul 31 11:46 AM
Use -
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = material
IMPORTING
output = material.
Regards,
Aparna Gaikwad
hi all
i'm working on ALV report, i'm displying many fields
in that i'm displying material number i;e MATNR-0000001245.
i want to remove the leading zero's from matnr in all the rows,
how to do it.
Regards
Suprith
2008 Jul 31 11:46 AM
Use -
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = material
IMPORTING
output = material.
Regards,
Aparna Gaikwad
2008 Jul 31 11:47 AM
Hi,
While Defining Field Catalog for a Perticular Field select no_zero = 'X'.
Eg:
wa_fcat-tabname = 'IT_MARA'.
wa_fcat-fieldname = 'MATNR'.
Wa_fcat-no_zero = 'X'.
Append wa_fcat to it_fcat.
2008 Jul 31 11:48 AM
Use Condense Statement as below
Condense i_tab-matnr.
Thanks
Sudharshan
2008 Jul 31 11:49 AM
Hi,
In the fieldcatalog for that MATNR field fieldcat-no_zero = 'X'. This will solve your problem.
Regards,
Ramesh
2008 Jul 31 11:53 AM
Hi,
I hope the below code will help you.
wa_fieldcat-tabname = 'I_OUTPUT'. " Material number
wa_fieldcat-fieldname = 'MATNR'.
wa_fieldcat-seltext_l = text-001.
wa_fieldcat-hotspot = 'X'.
wa_fieldcat-no_zero = 'X'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Thanks,
Khushbu.
Edited by: khushboo Brahmbhatt on Jul 31, 2008 12:53 PM
2008 Jul 31 11:53 AM
hi
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = material
IMPORTING
output = material.
this is the best i hope..
2008 Jul 31 11:54 AM
Hi!
If you are using global data type lvc_t_fcat for fieldcatalog internal table.
This data type has one field 'LZERO'
Use this
fs_fieldcat-lzero = ' '.
Regards
Abhijeet
2008 Jul 31 11:59 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |