what does this error means?
A new value is to be assigned to the field "INFTY_TAB[]", although this field
is
entirely or partly protected against changes.
The following are protected from change:
- Character literals or numerical literals.
- CONSTANTS.
- Parameters of the category IMPORTING REFERENCE in functions and
methods.
- untyped field symbols, that have not been assigned a field using
ASSIGN.
- TABLES parameters, if the actual parameter is protected against
changes.
- USING reference parameters and CHANGING parameters in FORMs,
if the actual parameter is protected against changes.
- Access using field symbols if the field assigned using ASSIGN is
partly or completely protected (for example key components of internal
table of the type SORTED or HASHED TABLE).
- Access using field symbols if the field assigned using ASSIGN contains
components of a secondary key that is currently in use in a
higher-level LOOP statement.
- Access using references if the field bound to the reference is
(partly) protected against changes.
- Write access from outside to READ-ONLY attributes.
- Content of a shared objects area instance accessed using a shared lock
(ATTACH_FOR_READ.
- Rows or fields of a table that are currently being serialized by a
Simple Transformation.
where the code is:
"definition
METHODS read_infotype IMPORTING pi_pernr TYPE pernr-pernr pi_infotype TYPE char4
EXPORTING pe_infotype_tab TYPE STANDARD TABLE.
METHOD read_infotype.
"DATA: I_infotype_tab TYPE Any Table.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = pi_pernr
infty = pi_infotype
begda = pn-begda
endda = pn-endda
TABLES
infty_tab = pe_infotype_tab[].
ENDMETHOD. "read_infotype
the function calling:
or_smartform->read_infotype( EXPORTING pi_pernr = pernr-pernr pi_infotype = c_infotype_0001 IMPORTING pe_infotype_tab = i_p0001 ).