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

BDC executed twice in one program for a same Transaction

Former Member
0 Likes
1,114

Hi Experts,

I have a program where two BDC sessions are recorded in two BDCDATA's for transaction MF50.

So there are two call transaction 'MF50' in a same program.

My problem is the 2nd BDC phase seems override the 1st part BDC. The 1st call transaction does't work.

Anybody have seen this before? how to solve it?

Thanks a lot.

Legend Lee.

1 ACCEPTED SOLUTION
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
775

Hi,

Refer:-


" 1st BDC code lines (appending BDCDATA)

CALL TRANSACTION <t-code> USING bdcdata.

REFRESH bdcdata.
CLEAR bdcdata.


" 2nd BDC code lines (appending BDCDATA)

CALL TRANSACTION <t-code> USING bdcdata.

Hope this helps you.

Regards,

Tarun

Hi Experts,

I have a program where two BDC sessions are recorded in two BDCDATA's for transaction MF50.

So there are two call transaction 'MF50' in a same program.

My problem is the 2nd BDC phase seems override the 1st part BDC. The 1st call transaction does't work.

Anybody have seen this before? how to solve it?

Thanks a lot.

Legend Lee.

3 REPLIES 3
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
776

Hi,

Refer:-


" 1st BDC code lines (appending BDCDATA)

CALL TRANSACTION <t-code> USING bdcdata.

REFRESH bdcdata.
CLEAR bdcdata.


" 2nd BDC code lines (appending BDCDATA)

CALL TRANSACTION <t-code> USING bdcdata.

Hope this helps you.

Regards,

Tarun

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
775

Avoid call transaction and use session method.

Have one BDC_OPEN_GROUP,

Multiple BDC_INSERT

one BDC_CLOSE_GROUP.

You should have multiple BDC_INSERT s for multiple transactions.

Read only

Former Member
0 Likes
775

Hi Lee,

Run the 1st BDC in foreground, and see what is happening.

May be you have to put a check that if first BDC fails, do not execute 2nd BDC code.

Regards,

Nisha Vengal.