Skip to Content

​System-wide de-activation of certain SLIN / Syntax-Check warnings?

When I'm doing development for S/4HANA I sometimes get the Syntax-Check-warning / SLIN-Error about "the database feature "TABLE_LEN_MAX1" is used here (read the long text)".

I get that it's about this: HANA tables can have a lot of columns, while old databases might have restrictions (like only 255 columns are ok, or something).

So it's ok to have this warning/error active by default.

However, I have this specific situation:

I'm doing S/4HANA-Development; this code will only ever run on S/4HANA; S/4HANA only runs an HANA

-> so there is no danger that it will ever run on another DB.

--> That is why I would like to have this check turned off completely in my development System.

(And: I do NOT want to write ##DB_FEATURE_MODE[TABLE_LEN_MAX1]. on every line of code, to avoid the warning!)

How do I do that?

Thanks

Joachim

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Apr 15, 2017 at 10:56 AM

    As far as I know, you cannot switch off syntax check warnings and this is one of those that we raise with good reason. You have to use the pragma to show that you recognize that you are using platform dependent features. In your case your'e sure that you never will port to another platform. Fine, document it with a pragma.

    Remember the sh..storm we had because of CDS views with parameters that were available on some platforms only in the beginning. There we had such warnings too and that was good, because people ignoring the warning couldn't blame SAP if they wrote code that could not be ported to any platform.

    PS: Also see the last note under https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenddic_database_tables_techstruc.htm

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 15, 2017 at 10:34 AM
    -1

    Hello Joachim,

    Good to know that you have created one incident for it. Is this syntax check warning message related to CDS view? If so, can you please paste an example of your CDS view's source code, so that we can reproduce it in our system to have a look?

    Best regards,

    Jerry

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2017 at 09:47 AM

    Hi Joachim,

    I don't think there is a standard option for something like this. :(

    The only option I can think of, is to make a copy of standard check class CL_CI_TEST_EXTENDED_CHECK to Z-version and remove this error from the result in the RUN() method. Of course deactivate standard and activate Z in transaction SCI.

    Best regards,

    Peter

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Peter,

      thanks for your feedback. Do I get it right that your suggestion would only eliminate the message from Code Inspector (SCI), but not from the "regular" syntax-check (ctrl+F7 in SE80 / ctrg+F2 in Eclipse).

      An besides being possible or not, do you agree it is a valid whish in my situation?

      best

      Joachim

  • Jan 18, 2017 at 08:22 AM

    Hi Joachim,

    If you replace the code inspector standard class for extended check, it will be called only in the code inspector and ADT framework, not in other cases (syntax check, SLIN).

    As far as I understand you get this warning because you access TABLE_MAX_LEN in CL_ABAP_DBFEATURE. My question is why do you have to access it, when you are sure that you always run your code on HANA, where the length is always ok? Or did I misunderstand it?

    Best regards

    Peter

    Add comment
    10|10000 characters needed characters exceeded