Application Development 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: 

BDC

Former Member
0 Kudos

hi

how to use the structure CTU_PARAMS via call transaction in BDC.

how to declare this structure and use.

3 REPLIES 3

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos


DATA: opt type ctu_params.

opt-dismode = 'N'. 
opt-updmode = 'S'.


CALL TRANSACTION 'SM50' USING bdcdata
                   OPTIONS FROM opt
                      MESSAGES INTO messtab.


Regards,

Rich Heilman

Former Member
0 Kudos

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.