How to call fm with table type import param?
I tried to find this in the archives without luck, so hope some of you have an answer..
I'm simply trying to fill up a table and call a function module with it as a parameter like this:
Function module import parameter type is table type hap_t_hrsobid
DATA: lt_params TYPE hap_t_hrsobid WITH HEADER LINE
lt_params-field1 = val1.
lt_params-field2 = val2.
CALL FUNCTION <function name>
table_param = lt_params
However, this crashes in a type conflict and I can't see what's wrong here even after trying multiple scenarios of data types.
Please note the fm import param is a table type and not a simple type.