Hi All,
I am implenting a method ( instance ) , where in i am passing the data from one internal table while calling this method.
Inside method i have to do some COLLECT funactionality, then later i have to delte the dynamic table entries based on some could field condition.
But getting the error "The row type of the table must be identifiable statically in "... WHERE " ,
some part of code below written in BW.
DATA: zz_coc type REF TO ZCL_xyz.
IF ZZ_COC IS NOT BOUND.
CREATE OBJECT ZZ_COC.
ENDIF.
TRY.
CALL METHOD
ZZ_COC->ZXT_IF_02_TRANSFORMATION_START_ROUTINE
EXPORTING
IO_P_R_REQUEST = P_R_REQUEST
* IV_REQUEST =
* IV_DATAPACKID =
CHANGING
* CT_MONITOR =
CT_SOURCE_PACKAGE = SOURCE_PACKAGE.
CATCH cx_root.
RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
ENDTRY.
......................................................
in class ZZ_xyz..
MethodZXT_IF_02_TRANSFORMATION_START_ROUTINE
used the class cl_abap_tabledescr
to crate and assign table
CREATE DATA lr_source_package TYPE HANDLE lo_ref_tabletype.
ASSIGN lr_source_package->* TO <lt_source_package>.
and did the collection fucntion
LOOP AT ct_source_package ASSIGNING <lv_source_fields>.
COLLECT <lv_source_fields> into <lt_source_package>.
ENDLOOP.
ct_source_package[] = <lt_source_package>[].
later i have to delete the data where field/coulumn vtype NE 10.
delete ct_source_package where ctype NE 10.
but getting the above error " The row type of the table must be identifiable statically in "... WHERE"
please suggest how to handle the issue, by getting the structure dynamically to refer and perform the conditional deletion or any other functionality which used the table structure field.
Note: the importable table strucure is dynamic so using the dynamic table.