‎2022 Jan 07 10:49 PM
Hi,
I'm fairly new to ABAP. I'm using ABAP in Eclipse to create a sample Function Module. However, when I'm trying to enter the parameters IMPORTING, EXPORTING, or CHANGE, I get an error. It try searching for an answer but unable to figure it out. Any help is appreciated.
The following code is what I used from the book example.
FUNCTION ZFM_NEW_FUNCTION_MODULE.
IMPORTING
var_import TYPE i.
EXPORTING
var_export TYPE i.
CHANGING
var_change TYPE i.
ENDFUNCTION.
Error: The statement "IMPORTING" is not expected. A correct similar statement is "IMPORT". statement is "IMPORT".
‎2022 Jan 08 3:04 AM
Hi Hai,
Remove the period after ZFM_NEW_FUNCTION_MODULE.
The importing statement is part of the function declaration.
I hope this helps.
Emanuel
‎2022 Jan 08 3:04 AM
Hi Hai,
Remove the period after ZFM_NEW_FUNCTION_MODULE.
The importing statement is part of the function declaration.
I hope this helps.
Emanuel
‎2022 Jan 08 3:38 AM
THANK YOU, Emanuel. I look silly now that you've shown me the issue. Thank you again friend.