SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software SAP ABAP Programming and HANA Database Tutorials
Development resources, articles, tutorials, code samples and tools and downloads for ASP.Net, SQL Server, R Script, Windows, Windows Phone, AWS, SAP HANA and ABAP, like SAP UI5, Screen Personas, etc.

Install SAP Free

ATC Error S/4HANA: Field length extensions for MATNR

On SAP S/4HANA developments, if you run ATC for static code check, you can see S/4HANA: Field length extensions errors on result list because of change in field lengths like MATNR domain is now 40 characters long. It was 18 characters long before.

S/4HANA Field length extensions ATC error for MATNR domain

Check Title S/4HANA: Field length extensions
Check Message ... <->
Priority Priority 3
DOMA MATNR, Note: 0002215424 <->
Finding can be suppressed with pseudo comment CI_FLDEXT_OK

Actually I checked the code and ABAP structures I used where MATNR domain is used as mentioned in the error message.
I see that every where I use MATNR, field length is used as 40 characters so I am sure it will not cause a problem.
So I decided to use the pseudo comment CI_FLDEXT_OK

call function 'REUSE_ALV_GRID_DISPLAY' exporting
i_callback_program = gs_variant-report
i_callback_user_command = 'FRM_ALV_CALLBACK'
i_structure_name = 'ZDISINVALV'
i_save = 'A'
is_layout = gs_layout
t_outtab = gt_alv_xxl "#EC CI_FLDEXT_OK
program_error = 1
others = 2 .

Another case that I met with the same error was as seen in following screenshot

Material Number Field length Extension - S/4HANA Field length extensions

S/4HANA Field length extensions
Generic code issue
2215424 (Note number)
Material Number Field length Extension

Following the same solution, I applied the pseudo comment CI_FLDEXT_OK as seen in below ABAP code

cl_demo_output=>display( lt_result ). "#EC CI_FLDEXT_OK

SAP Tutorials

SAP Tutorial

SAP Forums

SAP Tools

SAP Transaction Codes Table

Meetup Sunumu 1 meetup

Copyright © 2004 - 2020 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems