Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to call fm with table type import param?

Hi all,

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.

APPEND lt_params.

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.

Help anyone?

Best regards,


Former Member

PL ignore my earlier post & try this..

DATA: lt_params TYPE hap_t_hrsobid,
      rec_params like line of lt_params.

rec_params-field1 = val1.
rec_params-field2 = val2.
APPEND rec_params to lt_params.


Suresh Datti

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question