‎2022 May 06 4:03 AM
Currently my code is this:
DATA: t_vkorg TYPE RANGE OF vbak-vkorg.
SELECT sign opti low high FROM tvarv
INTO TABLE t_vkorg
WHERE name = 'XXX'
AND type = 'A'.
I want to use CALL function to select from TVARVC
I'm not sure with the code though\
CALL FUNCTION 'GET_PARAMETERS_FROM_TABLEABC'
EXPORTING
product = 'XXX'
TABLES
t_parameter = lt_TVARVC
EXCEPTION
"IM NOT SURE WHAT TO PUT HERE"
‎2022 May 06 6:47 AM
‎2022 May 06 8:36 AM
Better use methods instead of function modules as far as possible.
EXCEPTIONS is optional. It's only to be used if the function module has some exceptions defined.
So, your question is about exceptions. If you don't use RAISE classicexception, nor MESSAGE ... RAISING classicexception, you won't have to define an exception in the function module, and you won't need to use EXCEPTIONS in CALL FUNCTION.