Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Package check does not recognize TABLES references

Former Member
0 Likes
572

Hi all,

I just figured out, that the package check does not recognize use access to database table via TABLES statement.

* Program ZTEST_PACKAGE_CHECK lies in package Z_GENERAL. The database
* table Z_SPECIALIZED lies in package Z_SPECIALIZED. Package Z_SPECIALIZED
* contains the package interface Z_PI_SPECIALIZED. Package Z_GENERAL has use
* access to package interface Z_PI_SPECIALIZED with severity ERROR.
ZTEST_PACKAGE_CHECK.

TABLES: Z_SPECIALIZED.         " from package Z_SPECIALIZED
DATA:   GV_XFLAG type ZXFLAG.  " from package Z_SPECIALIZED

The package check will only recognize this dependency when the table is used in code. The definition of this table is not discovered by the check.

Does anybody know, why the package check behaves in that way? For me it looks like an error in standard, because such dependencies may lead into errors during import.

Kind regards

Rudi

BTW: When the program is forced to perform CL_ABAP_COMPILER=>GET_TYPE_REFS in debugger, then the check also cosiders the type behind the TABLES statement.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
526

Hello,

see OSS note 1146244 (No package check for TABLES statement).

Regards,

Stefan

Hi all,

I just figured out, that the package check does not recognize use access to database table via TABLES statement.

* Program ZTEST_PACKAGE_CHECK lies in package Z_GENERAL. The database
* table Z_SPECIALIZED lies in package Z_SPECIALIZED. Package Z_SPECIALIZED
* contains the package interface Z_PI_SPECIALIZED. Package Z_GENERAL has use
* access to package interface Z_PI_SPECIALIZED with severity ERROR.
ZTEST_PACKAGE_CHECK.

TABLES: Z_SPECIALIZED.         " from package Z_SPECIALIZED
DATA:   GV_XFLAG type ZXFLAG.  " from package Z_SPECIALIZED

The package check will only recognize this dependency when the table is used in code. The definition of this table is not discovered by the check.

Does anybody know, why the package check behaves in that way? For me it looks like an error in standard, because such dependencies may lead into errors during import.

Kind regards

Rudi

BTW: When the program is forced to perform CL_ABAP_COMPILER=>GET_TYPE_REFS in debugger, then the check also cosiders the type behind the TABLES statement.

1 REPLY 1
Read only

Former Member
0 Likes
527

Hello,

see OSS note 1146244 (No package check for TABLES statement).

Regards,

Stefan