2009 Mar 02 11:05 AM
Hi Experts,
Can we create two BDC's in one program.
2009 Mar 02 11:05 AM
2009 Mar 02 11:06 AM
2009 Mar 02 11:07 AM
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
2009 Mar 02 11:07 AM
2009 Mar 02 11:07 AM
Hi Lokesh,
Can you be more eloborate.
Ya you can create 2 BDC for one program.
Much Regards,
Amuktha.
2009 Mar 02 11:09 AM
2009 Mar 02 11:17 AM
SEARCH in SCN you will get so many posts like these.
[calling 2 transactions in 1 bdc|om/click.jspa?searchID=22959081&messageID=1729538]
2009 Mar 02 11:09 AM
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
2009 Mar 02 11:48 AM
2009 Mar 02 11:50 AM
2009 May 31 1:27 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |