Code: Alles auswählen.
DATA: lt_sel TYPE TABLE OF bdcdata,
ls_sel type bdcdata.
CLEAR ls_sel .
ls_sel-program = 'SAPLLE_MOV'.
ls_sel-dynpro = '2000'.
ls_sel-dynbegin = 'X' .
APPEND ls_sel TO lt_sel.
CLEAR ls_sel .
ls_sel-fnam = 'LEMOVHUS-HUWBEVENT'.
ls_sel-fval = '311'.
APPEND ls_sel TO lt_sel.
CLEAR ls_sel .
ls_sel-fnam = 'LEMOVHUS-EXIDV'.
ls_sel-fval = '116'.
APPEND ls_sel TO lt_sel.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
EXPORTING
tcode = 'VLMOVE'
TABLES
using_tab = lt_sel.
Code: Alles auswählen.
DATA: lt_sel TYPE TABLE OF bdcdata,
ls_sel type bdcdata.
CLEAR ls_sel .
ls_sel-program = 'SAPLLE_MOV'.
ls_sel-dynpro = '2000'.
ls_sel-dynbegin = 'X' .
APPEND ls_sel TO lt_sel.
CLEAR ls_sel .
ls_sel-fnam = 'LEMOVHUS-HUWBEVENT'.
ls_sel-fval = '0006'.
APPEND ls_sel TO lt_sel.
CLEAR ls_sel .
ls_sel-fnam = 'BDC_OKCODE'.
ls_sel-fval = '=TCVG'.
APPEND ls_sel TO lt_sel.
ls_sel-program = 'SAPLLE_MOV'.
ls_sel-dynpro = '2000'.
ls_sel-dynbegin = 'X' .
APPEND ls_sel TO lt_sel.
CLEAR ls_sel .
ls_sel-fnam = 'LEMOVHUS-EXIDV'.
ls_sel-fval = '25116'.
APPEND ls_sel TO lt_sel.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
EXPORTING
tcode = 'VLMOVE'
MODE_VAL = 'E'
TABLES
using_tab = lt_sel.