11-28-2006 5:52 PM
hi
how to use the structure CTU_PARAMS via call transaction in BDC.
how to declare this structure and use.
11-28-2006 5:53 PM
DATA: st_opt LIKE ctu_params.
st_opt-dismode = c_mode. " Processing mode for CALL TRANSACTION
st_opt-updmode = ''. " Update mode for CALL TRANSACTION
st_opt-defsize = ''. " Default screen size for CALL TRANS
st_opt-nobiend = ''.
*----Call transaction
CALL TRANSACTION c_tcode USING it_bdcdata
OPTIONS FROM st_opt
MESSAGES INTO it_bdcmsgcoll.
Hope this helps.
Manish
11-28-2006 5:56 PM
11-28-2006 5:57 PM
Please check this code
CONSTANTS : c_s TYPE c VALUE 'S',
c_x TYPE c VALUE 'X',
c_n TYPE c VALUE 'N'.
DATA : t_option_itab LIKE ctu_params OCCURS 0 WITH HEADER LINE.
t_option_itab-dismode = c_n.
t_option_itab-updmode = c_s.
t_option_itab-defsize = c_x.
APPEND t_option_itab.
CALL TRANSACTION c_va01 USING t_bdcdata
OPTIONS FROM t_option_itab
MESSAGES INTO t_messtab_itab.