cancel
Showing results for 
Search instead for 
Did you mean: 

Code Inspector exception NO_ELEMENTARY_TYPE in CL_CI_VARIANT_CONFIGURATION

Sandra_Rossi
Active Contributor
0 Kudos
86

I have this exception when running a custom program with code as described in Print details of an ATC/code inspector check varia... - SAP Community, when it executes the public method VARIANT_TO_XML of CL_CI_VARIANT_CONFIGURATION. NO_ELEMENTARY_TYPE is a local exception class inheriting from CX_NO_CHECK.

By debug, the root cause seems to be in the method IF_CI_TEST~QUERY_ATTRIBUTES of the class CL_CI_TEST_EMPTY_UNUSED_PROCS, the parameter TEST_KEY is a ranges table but is defined with KIND = ' ' which indicates an elementary data type. It should be defined with KIND = 'S' which indicates a ranges table.

The issue happens with at least ABAP 7.56 and 7.58.

There's no fix in SAP notes.

I'd like to find a way to export a code inspector variant as XML by standard means, to reproduce that "bug" and make it fixed by SAP.

Do you know one standard way which calls the public method VARIANT_TO_XML of CL_CI_VARIANT_CONFIGURATION?

Or should I fix the KIND value by myself, or do you advise doing the export by full custom code, or contact SAP support anyway?

Thanks.

Sandra

Accepted Solutions (0)

Answers (0)