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: 

what are function 'BDC_OPEN_GROUP' / 'BDC_INSERT' / 'BDC_CLOSE_GROUP' used

Former Member
0 Kudos

Hi all:

What are Function 'BDC_OPEN_GROUP' / 'BDC_INSERT' / 'BDC_CLOSE_GROUP' used for,when I write BDC code.

Thanksss.

qimingxing

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

The function are used to create a SESSION of BDC

BDC_OPEN_GROUP " it is used to open the session. it take program name, session name etc.

BDC_INSERT is used to add the BDC records to the session

, it takes Transaction code and BDCDATA, session name,

BDC_CLOSE_GROUP " once all records are added to session then we will close the session using close_group function.

One session we will open and we will add all the records to a session, then close the session

so that one session consists of mutliple transactions, or records to process.

Now we go to SM35 and process the session.

7 REPLIES 7

former_member188685
Active Contributor
0 Kudos

The function are used to create a SESSION of BDC

BDC_OPEN_GROUP " it is used to open the session. it take program name, session name etc.

BDC_INSERT is used to add the BDC records to the session

, it takes Transaction code and BDCDATA, session name,

BDC_CLOSE_GROUP " once all records are added to session then we will close the session using close_group function.

One session we will open and we will add all the records to a session, then close the session

so that one session consists of mutliple transactions, or records to process.

Now we go to SM35 and process the session.

0 Kudos

Thank you.

Can I get the result messages after call 'BDC_INSERT' ? how I to know if BDC is ok?

0 Kudos

Hi,

In sessions method all the error records and processed records information is stored by SAP only, we can analyze it after the session is processed.

Regarding Call transaction we can use a structure BDCMSGCOLL structure to hold the error records which must be used in Call transaction statement.

Regards

Krishna.

0 Kudos

Hi:

How to processed the session? Automatic or use t-code SM35?

0 Kudos

you have to process the session from SM35, you have find the name of session what you passed to the BDC_OPEN_GROUP . and choose that and Process the session, coming to Messages you will get log once you process the session. you can check the log in SM35 itself.

Former Member
0 Kudos

Hi Firend,

BDC_OPEN_GROUP function module is used to create a new session.

Check this link for complete information on BDC_OPEN_GROUP:

http://help.sap.com/saphelp_40b/helpdata/en/fa/097126543b11d1898e0000e8322d00/content.htm

BDC_INSERT function module to add a transaction to a batch input session.

Check this link for BDC_INSERT:

http://help.sap.com/saphelp_sm32/helpdata/en/fa/097133543b11d1898e0000e8322d00/content.htm

BDC_CLOSE_GROUP function module is used to close a session after you have inserted all of your batch input data into it.

Check this link for BDC_CLOSE_GROUP:

http://help.sap.com/saphelp_40b/helpdata/en/fa/097140543b11d1898e0000e8322d00/content.htm

Hope this helps you.

Regards,

Chandra Sekhar

Former Member
0 Kudos

Hi

[http://allsapabap.blogspot.com/2008/06/bdc-7.html]

Regards,

Sravanthi