Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exporting to TVARVC using CALL FUNCTION

walkerist79
Participant
0 Likes
920

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"
2 REPLIES 2
Read only

FredericGirod
Active Contributor
0 Likes
872

what about FM RFC_READ_TABLE ?

Read only

Sandra_Rossi
Active Contributor
0 Likes
872

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.