01-07-2015 9:02 AM
Hi Experts,
Iam working on Upgrade from 4.6C to ECC 6.0.
There are some Z-programs which are using the Function Module "REUSE_ALV_GRID_DISPLAY".
Iam facing issue with Leading zeros.
I have debugged the program in both the versions,
Data in the Internal Table which we are passing to the
function module REUSE_ALV_GRID_DISPLAY is same in both the versions.
But I dont know why it is displaying differently in the 2 versions.
Leading Zeros are Prefixed if the data type is Char in ECC.
Example:
For MATNR - Data type is CHAR and Length is 18.
So the output of the ALV is showing as "000000000000000012" in ECC 6.0. But in 4.6c it si showing as "12".
Simillary for LIFNR field also we are facing this issue.
Till now we identified two fileds.
So my requirement is leading zeros should not appear in ECC 6.0 for Z-programs.
EX: MATNR should be ‘12’ instead of "000000000000000012".
I too have a option of using the conversion exits, but it is not easy to use this conversion exit logic in all the Z programs(say there are 100 programs).
Is there any SNOTE for the same to implement.
Please help.
Thanks in Advance.
01-07-2015 10:20 AM
Don't call some hard-coded conversion-exit in your z-report, but improve quality of field catalog, seems the field catalog does not contain enough information for ECC to identify domain and so conversion-exit, becae less tolerant than old versions...)
Hint : try The Consistency Check to indentify missing informations, also read The Field Catalog, Generating the Field Catalog
Regards,
Raymond
01-07-2015 11:18 AM
I have tried by passing reference field name to filed catalog but it is not working. Can you please provide more clarity on your solution
01-07-2015 12:35 PM
Did you check actual values in the field catalog thru consistency check, look for ref ddic fields and domain value ?
01-07-2015 11:14 AM
Hello Sreenivas,
I Suppose you should try setting LZERO Field of the Field Catlog ,
It suppresses the Leading Zeros.
Hope this helps,
Anup D.
01-07-2015 11:28 AM
LZERO is relevant only for NUMC data type but here MATNR is of type character. so not working this solution
01-07-2015 11:44 AM
Hi
You should post the definition of your internal table printed by REUSE_ALV_GRID_DISPLAY and how the catalog is filled
Max
01-09-2015 5:45 AM
01-09-2015 6:11 AM
Hi Sreenivas,
You can use this function module to avoid leading zeros.
CONVERSION_EXIT_MATN1_OUTPUT
With Regards
Arun VS
01-09-2015 7:00 AM
Hi.
sreenivas reddy wrote:
So my requirement is leading zeros should not appear in ECC 6.0 for Z-programs.
EX: MATNR should be ‘12’ instead of "000000000000000012".
I too have a option of using the conversion exits, but it is not easy to use this conversion exit logic in all the Z programs(say there are 100 programs).
Is there any SNOTE for the same to implement.
Add the records into Z-table as per the structure.
Modify the Final internal table inside BADI/Implicit Enhancement using FM CONVERSTION_EXIT_MATN1_OUTPUT based on Z-table program name and field name.