‎2014 Mar 11 10:08 AM
Hello experts,
I want to create a function module with a table parameter and table type is ANY. But when I check (Ctrl+F7) this function module, syntax error occurs - "In this statement, the internal table "MSG_TABLE_ITEM" must have the type "STANDARD TABLE"."
Could anyone tell me what the wrong is? And how can I fix it?
Thanks,
Shelwin
‎2014 Mar 11 10:15 AM
‎2014 Mar 11 10:56 AM
Hi,
For table parameters, you can only pass
MSG_TABLE_ITM TYPE STANDARD TABLE
or
MSG_TABLE_ITM ( don't fill other columns TYPING ASSOCIATED TYPE ).
For reference check FM 'GUI_UPLOAD' - Table parameters
Regards,
DPM
‎2014 Mar 11 11:02 AM
Hi Shelwin,
your error message clearly indicates the error, so you have to use only standard table type in the associated type of MSG_TABLE_ITEM.
‎2014 Mar 17 5:58 AM
Hi all,
Thank you for your replies! And all of your opinions are correct in my case. Thanks again!
Regards,
Shelwin
‎2014 Mar 17 8:09 AM
your first consideration should be not using the TABLES statement, as it is obsolete. Why not using CHANGING instead?
‎2014 Mar 17 8:48 AM
Hi Jozef,
I'm new to ABAP programming, and could we use CHANGING to transfer internal table parameters between function module and the program which calls this FM?
Regards,
Shelwin
‎2014 Mar 17 9:33 AM
You can. Whatever you send via TABLES can be sent via changing.