12-04-2017 4:15 PM
Hi, folks.
I want to write a custom check in SCI for DDIC objects (data elements). All examples and tutorials are for developing ABAP code checks but not DDIC objects.
Can someone help me to do this?
Thanks, Ralf
01-04-2018 10:22 AM
Hi Ralf,
Maybe it helps if you look into class CL_CI_TEST_DDIC_TABLES which is a check for DDIC objects, namely database tables and views. It is quite similar to code checks with the difference, that data preparation (in this case: reading meta data of DDIC tables) is done in the check class itself. To optimize check performance, all objects that shall be checked are collected in the RUN method and the true check is performed in the RUN_END method, reading all the necessary meta data in chunks. But this optimization is not a must (and even could be harmful in the case of checking data elements, since this could be some 100.000 leading to memory problems).
Best Regards, Randolf
12-05-2017 9:26 PM
This blog explains how to create a custom check and it seems that we just create a "new category" and then we can run that new category check with any object. So I'm guessing in general it's the same process for all the object. The code inside the check method would depend on what exactly you want to check for, I guess.
I haven't tried this myself but I see that randolf.eilenberger is still answering questions in the SCI wiki, so maybe he has something to share further on this.
01-04-2018 10:22 AM
Hi Ralf,
Maybe it helps if you look into class CL_CI_TEST_DDIC_TABLES which is a check for DDIC objects, namely database tables and views. It is quite similar to code checks with the difference, that data preparation (in this case: reading meta data of DDIC tables) is done in the check class itself. To optimize check performance, all objects that shall be checked are collected in the RUN method and the true check is performed in the RUN_END method, reading all the necessary meta data in chunks. But this optimization is not a must (and even could be harmful in the case of checking data elements, since this could be some 100.000 leading to memory problems).
Best Regards, Randolf