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

BDCs for Multiple tcodes

Former Member
0 Likes
400

Hi Gurus,

I am struck with BDCs for multiple tcodes.

I know that multiple tcodes can be done only using session method.

Please help how to proceed.

Regards,

V S L Bharathi K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
373

Hi,


 Loop at itab1.
 *fill BDCDATA table
 call transaction 'XXXX' using mode l_mode
                            messages in mess_tab
 
*"Chk if any Error/Abort message in mess_tab
* get the value for next processing.

 read table message_tab with key type ='S'
                          msg_class = 'XX'
                          msg_no     = 'NNN'.
 l_par = mess_tab-msg_v1.
refresh BDCDATA. 

*again fill BDCDATA table
 call transaction 'YYYY' using mode l_mode
                            messages in mess_tab 

 endloop.

Hope this helps.

2 REPLIES 2
Read only

Former Member
0 Likes
374

Hi,


 Loop at itab1.
 *fill BDCDATA table
 call transaction 'XXXX' using mode l_mode
                            messages in mess_tab
 
*"Chk if any Error/Abort message in mess_tab
* get the value for next processing.

 read table message_tab with key type ='S'
                          msg_class = 'XX'
                          msg_no     = 'NNN'.
 l_par = mess_tab-msg_v1.
refresh BDCDATA. 

*again fill BDCDATA table
 call transaction 'YYYY' using mode l_mode
                            messages in mess_tab 

 endloop.

Hope this helps.

Read only

0 Likes
373

Thank you Gary