SAP Knowledge Base Article - Public

2827690 - String Comparison CO doesn't work

Symptom

 String Comparison CO doesn't work

Environment

SAP S/4HANA Cloud

Reproducing the Issue

In the business logic, while using the keyword "CO" to compare two fields, it always returns sy-subrc ne 0

Cause

The filed you are using is not a string

Resolution

Please convert it to string type first then compare the two fields.

Keywords

Custom Business Logic, CO , KBA , BC-SRV-APS-EXT-BL , Custom Business Logic , Problem

Product

SAP S/4HANA Cloud 1905