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: 

BDC Issue

Former Member
0 Kudos

Hi

Considering that i am new to BDC, pls. ignore if i have made any mistakes

I have 3 querries :-

(1) Open_group and close_group FMs are not mandatory for CALL Tr. Then how can we create a new session for the call Tr. BDC. Because unless We create a new session, we cant post the data. If your answer is BDC_INSERT FM also opens a new session, then the same thing should apply to "Generate Session" BDC. That means open_group and close_group FMs should not be mandatory for "Generate Session" BDC. But that is not true.

(2) Suppose, we have recordings for 2 applications (A1 & A2). Then while creating BDC for "Generate Session", which path should we follow -

BDC_OPEN_GROUP

Map the data for Application A1

BDC_INSERT_GROUP

BDC_CLOSE_GROUP

BDC_OPEN_GROUP

Map the data for Application A2

BDC_INSERT_GROUP

BDC_CLOSE_GROUP

OR

BDC_OPEN_GROUP

Map the data for Application A1

BDC_INSERT_GROUP

Map the data for Application A2

BDC_INSERT_GROUP

BDC_CLOSE_GROUP

My question is simple - For N no. of applications we should open and close sessions N no. of times or shoud we do it only once.

(3) Are we creating a session in CALL Tr BDC. If yes, then what is the session name and in sm35 Will we be able to find it or there is any other transaction to see it. If No, then what is the use of "Keep Sessio & Lock Date" in the selection screen for CALL Tr.?

Regards,

Debi

Edited by: Debidutta Mohanty on Jun 9, 2010 11:55 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Mohanty,

I think u r not femiliar with BDC...first ofall u should have know the defirence between the session and call transaction..

In session method only we can create a session , where as we can not crate a session in call transaction.

in call transaction data will uploaded directly into to data base..where as in session method we haev to process the session

then only data will be uploaded into the data base..

One more importanat point ... Its obsolute to process two transaction in call transaction..

fro ur second quesion: BDC_OPEN_GROUP

Map the data for Application A1

BDC_INSERT_GROUP

Map the data for Application A2

BDC_INSERT_GROUP

BDC_CLOSE_GROUP

the above process is correct

I hope u can understood...........Thanq

Moderator message: please don't use SMS speak.

Edited by: Thomas Zloch on Jun 9, 2010 1:24 PM

4 REPLIES 4

Former Member
0 Kudos

Hi Mohanty,

I think u r not femiliar with BDC...first ofall u should have know the defirence between the session and call transaction..

In session method only we can create a session , where as we can not crate a session in call transaction.

in call transaction data will uploaded directly into to data base..where as in session method we haev to process the session

then only data will be uploaded into the data base..

One more importanat point ... Its obsolute to process two transaction in call transaction..

fro ur second quesion: BDC_OPEN_GROUP

Map the data for Application A1

BDC_INSERT_GROUP

Map the data for Application A2

BDC_INSERT_GROUP

BDC_CLOSE_GROUP

the above process is correct

I hope u can understood...........Thanq

Moderator message: please don't use SMS speak.

Edited by: Thomas Zloch on Jun 9, 2010 1:24 PM

Former Member
0 Kudos

Hi ,

You can get lot of material on SDN for following.

Just to simplify the things have a look below :

BDC Call transaction : It has nothing to do with session. No sessin gets created in call transaction method. It directly makes call to the specified transcation. So no role of OPEN_GROUP and CLOSE_GROUP. For more understandability you can debug the code (the program that we get created from BDC Recording ).

BDC Session method : Huge role of OPEN_GROUP and CLOSE_GROUP as they are responbsible for creating the closing the session.

When you execute the program that you have created from the recording , it asks you for the name of session , when you select session method , it creates that session in sm35. You can go there and process it.

Hope it is helpful fro you.

Regards,

Uma

Former Member
0 Kudos

Hi,

1) Use BDC_INSERT for session creation. As of my knowledge CALL TRANSACTION will not create a session in SM35.

2) Use the 2nd method


BDC_OPEN_GROUP
Map the data for Application A1
BDC_INSERT_GROUP
BDC_CLOSE_GROUP

BDC_OPEN_GROUP
Map the data for Application A2
BDC_INSERT_GROUP
BDC_CLOSE_GROUP

Since you are using 2 recordings, you will have to create 2 sessions for the same. You cannot create single session for 2 different recordings.

3) As of my knwledge there is no session created in SM35 so the answer is NO. And for the Lock Date/ Keep session query you can check the BDCRECX1 program. Debug it.

Regards,

Ateet

ThomasZloch
Active Contributor
0 Kudos

Please consult documentation before posting, use meaningful subject lines when posting.

Thread locked.

Thomas