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
Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow

ABAP Message Call Contains the Wrong Number of WITH Parameters


To resolve ABAP Extended Program Check (SLIN) warnings for MESSAGE call contains the wrong number of WITH parameters, SAP programmer can check the message class for the parameters that the message short text contains and then provide empty string input values for missing parameters or use the MG_MISSING pseudo comment to prevent this code line listed in ATC checks in future.

When I executed an ABAP Test Cockpit aka ATC check on one of my ABAP programs, I see following item listed in the ATC results with a priority 3
Extended Program Check (SLIN) MESSAGE call contains the wrong number of WITH parameters

ABAP Message call contains the wrong number of With parameters

I jumped into the ABAP code line by clicking on the link displayed on Object Name column and see the ABAP code which is causing this ATC check message

message i001(00) with text-011 tcode.
Code

I clicked on "i001(00)" to see the content of the message class short text.
Message text was formed of only dynamic values of "&1&2&3&4&5&6&7&8" which is accepting more parameters than I provided in my ABAP program and it returns the concatenated form of all input string values.

check ABAP message class short text for parameters

But I was providing only 2 input string values.
Although I could suppress the ATC message using MG_MISSING pseudo comment, I decided to provide missing input parameters as empty string values.

message i001(00) with text-011 tcode ##mg_missing.
Code

I should replace the message text with a better one which is accepting two input string values, but I added the missing empty string parameters and corrected the ATC check as follows.

message i001(00) with text-011 tcode '' ''.
Code


SAP HANA and ABAP

Install SAP Free
CRM Companies List
Web Based CRM Software


Copyright © 2004 - 2021 Eralper YILMAZ. All rights reserved.