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: 

Regarding 2 BDC session in a sengle program. is it possible??

Former Member
0 Kudos

dear all,

Can i able to do 2 bdc sessions in a single program.

I will be having 2 file, 1 file need to create bdc for 1 transaction.

2nd file need to create a separate BDC for the 2 transaction. is this possible,,,

\[removed by moderator\]

thanks,

SUresh

Edited by: Jan Stallkamp on Sep 3, 2008 3:58 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

It is very much possiable you need to call OPEN_BDC_SESSION function module twice.

Hope this will help.

Regards,

7 REPLIES 7

ThomasZloch
Active Contributor
0 Kudos

Yes.

0 Kudos

can u tell how

Former Member
0 Kudos

hi

It is very much possiable you need to call OPEN_BDC_SESSION function module twice.

Hope this will help.

Regards,

Former Member
0 Kudos

Hi,

Open the Session Once.

Call FM: BDC_Open_Group.

For 1st Transaction.

loop at it_xd01. "Customer Creation

mention recording steps

call FM: BDC_Insert.

endloop.

loop at it_mk01." Vendor Creation

mention recording steps

call FM: BDC_Insert

endloop.

Finallly Close the session.

BDC_Close_Group.

Repeat the above loop endloop procedure for each transaction to be processed through the same session.

Regards,

MD

0 Kudos

Dear Md,

Thanks for the details explanation. Can u just clarify as you told, it will create one session or 2 session..

thanks,

Suresh

0 Kudos

This will create one session with two different transactions.

If you want to have two sessions, just include the bdcdata stuff twice with different names.

after that open the first group, insert dynpors and fields, and close the group. The you can open the second group, fill dynpros and fields and close the second one.

you can not open two groups at the same time, you have to close the first group before you open the second one.

Former Member
0 Kudos

This message was moderated.