Do you have any question about this error?
Message type: E = Error
Message class: MC - Aggregate: views, matchcodes, lock objects
Message number: 752
Message text: Field &-&: Do not specify integer constants in quotation marks
You defined a constant for an integer field in apostrophes.
You are no longer allowed to define integer constants in apostrophes.
During activation, the error is tolerated, but can cause errors in some
database systems when the view is created.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
MC752
- Field &-&: Do not specify integer constants in quotation marks ?The SAP error message MC752 ("Field &-&: Do not specify integer constants in quotation marks") typically occurs in the context of ABAP programming or when working with certain configuration settings in SAP. This error indicates that an integer constant has been incorrectly specified as a string by enclosing it in quotation marks.
Cause:
The error arises when you attempt to use an integer value in a context where it is expected to be a numeric type, but you have enclosed it in quotation marks, making it a string. For example, if you have a condition or a calculation that expects an integer, but you provide it as '123' (with quotes), SAP will throw this error.
Solution:
To resolve this error, you need to ensure that any integer constants are not enclosed in quotation marks. Here are the steps to fix the issue:
Identify the Code or Configuration: Locate the specific line of code or configuration where the error is occurring. This could be in an ABAP program, a custom report, or a configuration setting.
Remove Quotation Marks: If you find any integer constants that are enclosed in quotation marks, remove the quotes. For example, change:
IF variable = '123'.
to:
IF variable = 123.
Check Data Types: Ensure that the variable you are comparing against is of the correct data type (integer or numeric) and that you are not inadvertently treating it as a string.
Test the Changes: After making the necessary changes, test the program or configuration to ensure that the error is resolved and that the functionality works as expected.
Related Information:
By following these steps, you should be able to resolve the MC752 error and ensure that your SAP application runs smoothly.
Get instant SAP help. Start your 7-day free trial now.
MC751
Field &-& (selection condition for type & not allowed)
What causes this issue? A selection condition was defined for a field although the field type does not permit a selection condition.System Response ...
MC750
Field &-& (type conflict in selection condition)
What causes this issue? In a selection condition, a constant whose type does not agree with the type of the field was defined.System Response The sy...
MC753
Field &-&: Selection condition on field is not allowed
What causes this issue? A field of system table SY or SYST was defined instead of a constant in the selection conditions of a view. This is not permi...
MC754
Selection condition &-&: Apostrophes are added
What causes this issue? Text constants in the selection conditions must be enclosed in apostrophes.System Response The system issues an error messag...
Click on this link to search all SAP messages.