07-29-2008 3:07 AM
Hi all:
What are Function 'BDC_OPEN_GROUP' / 'BDC_INSERT' / 'BDC_CLOSE_GROUP' used for,when I write BDC code.
Thanksss.
qimingxing
07-29-2008 3:31 AM
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.
07-29-2008 3:31 AM
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.
07-29-2008 4:08 AM
Thank you.
Can I get the result messages after call 'BDC_INSERT' ? how I to know if BDC is ok?
07-29-2008 4:31 AM
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.
07-29-2008 4:43 AM
07-29-2008 4:52 AM
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.
07-29-2008 4:35 AM
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
07-29-2008 4:38 AM
Hi
[http://allsapabap.blogspot.com/2008/06/bdc-7.html]
Regards,
Sravanthi