Skip to Content
0
Jun 09, 2010 at 07:51 AM

Dynamic method call

16 Views

Hello Gurus,

is there any possibility to write something like this in ABAP ??

  CALL METHOD zz_but050=>get_but050
    EXPORTING
    IF X = 1.  i_var_partner1 = l_var_partner1 ENDIF. 
    IF X = 2.  i_var_partner2 = l_var_partner2 ENDIF.
    IMPORTING
      e_tab_but050   = l_tab_but050
    EXCEPTIONS
      keine_daten    = 1.

Best regards,

Ioan Constantin.