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

Creating to BDC's in one program

Former Member
0 Likes
1,381

Hi Experts,

Can we create two BDC's in one program.

Hi Experts,

Can we create two BDC's in one program.

11 REPLIES 11
Read only

Former Member
0 Likes
1,304

yes we can

Read only

Former Member
0 Likes
1,304

Yes

[example|;

Edited by: sachin sharma on Mar 2, 2009 4:36 PM

Read only

Former Member
0 Likes
1,304

Hello,

Yes we can create two BDC programs.... and even we can call session as well as call transaction in one BDC.

Thank u,

santhosh

Read only

Former Member
0 Likes
1,304

ofcourse..this is possible

regards

Aakash Banga

Read only

Former Member
0 Likes
1,304

Hi Lokesh,

Can you be more eloborate.

Ya you can create 2 BDC for one program.

Much Regards,

Amuktha.

Read only

0 Likes
1,304

Can you tell me how

Read only

0 Likes
1,304

SEARCH in SCN you will get so many posts like these.

[calling 2 transactions in 1 bdc|om/click.jspa?searchID=22959081&messageID=1729538]

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,304

Hello Lokesh,

As per the previous posts the answer to your question is "YES". But there is a catch:

If you use a "Sessions" method, then you can process one session at a time but for "Call transaction" method you can call mutliple transaction simultaneously.

Awaiting other posts.

BR,

Suhas

Read only

Former Member
0 Likes
1,304

Hi,

You can create 2 BDC's in one program.

Check this below link

Regards,

Jyothi CH.

Read only

Former Member
0 Likes
1,304

u can create as many u can. according the requirement

Read only

Former Member
0 Likes
1,304

Hi Lokesh Reddy,

Ofcourse you can create more than 1 BDC in a single program

I have myself created 4 BDCs in single program.

Just remember to call the Transactions in correct order and also loop them properly, at times wrong looping messes up the BDC.

If you feel all transactions calling in 1 loop are confusing you, then u can club 2 transactions in 1 loop.

so that your 1st loop executes 2 transactions, once that loop is successfully over, the control moves onto the next loop, with same or different transactions. Dont worry the same data will be used by both the loops, as it'll be looping on the same internal table.

If your BDCs are not using same data, some are using 1st few columns, some the rest one

at such times wat u can do is take all data from flat file into 1 internal table and then individually move particular columns to another internal table.

then the BDCs that require data from 1st internal table, so loop at that internal table

the ones which need data from another internal table, so loop at the other internal table.

Please note as many recordings / BDCs u call those many number of time u have to write the statement.

CALL TRANSACTION.....

Like I wrote 4 BDCs in single program, I had to write CALL TRANSACTION 4 times.

Once u finish everything...put a break point and debug the whole program, u'll actually get to see the flow in which ur data is read, used by bdc, enters the data, how the control moves from 1 BDC to another, how the control goes from 1 LOOP to another, etc.

debug it in foreground 1st mode 'A', once u feel its going fine, then change it to background mode 'N'.

I hope this would help u All The Best.

Regards,

RadhikaS