I am calling a subroutine multiple times and everytine passing 2 different tables (with different structures) int he subroutine.
PERFORM fill_itabs TABLES t_adnat_bus_in
PERFORM fill_itabs TABLES t_adcust_ban_in
The following is the subroutine definition.
FORM fill_itabs TABLES p_t_table
USING p_filename .
p_t_table_dummy = p_t_table.
SORT p_t_table_dummy BY cust_id.
I am getting a syntax error which states -
<u><b>"The specified type has no structure and therefore no component called "cust_id"."</b></u>
The problem is the structure of the table passed to subroutine is different in the
different times when it is called and so in subroutine defintion I cannot mention an explicit structure for the table.
Could anyone please suggest how to avoid this?