19.3.11

SAP Note 25285 - SLIN: TABLES parameter not used for FORM/FUNCTION

Symptom:

Key word SLIN
During the enhanced program check (transaction SLIN), a warning that a TABLES parameter of a FORM or function module is not used occurs. However, the TABLES parameter is called in the central part of the program.

Cause and prerequisites

For the TABLES parameters of FORMs and function modules, 2 parameters are actually transferred; the header of the table and the table itself.
The warning then occurs if only the table or the header is called in a subroutine.
Example:
'DESCRIBE TABLE itab OCCURS N' accesses only the table.
'UPDATE DDICTAB FROM itab' accesses only the header.

Solution

Program correction.

    1. The table or header should not be transferred via the TABLES interface.
    2. If, for compatibility reasons, the Form/Function module interface cannot be changed, the table or header can be set to used via the fields instruction. Doing so will not increase the size of the program load.
Note:
Using the square brackets [] you can reference the table section with header from an internal table.
If one wants to transfer unstructured tables, you can specify this with the non-TABLES parameters using the predefined category TABLE.

No comments:

Post a Comment