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 does BDC Session part mean

Former Member
0 Kudos

Hi all,

As you know,when generating BDC program using t-code SHDB,we got two ways to re-execute the certain transaction,which are 'CALL TRANSACTION ... USING bdcdata' and 'CALL FUNCTION 'BDC_INSERT'' .

I just know how to use the previous one, so could you tell me the meaning of the latter one,how to use it?

Tks

3 REPLIES 3

Former Member
0 Kudos

read SAP Help on BDC

Former Member
0 Kudos

Hi

Using Session Method is a two step process in general. When u execute your BDC program using session method,that is calling FM BDC_INSERT... The system would create a session which needs to up processed to update the database. When you create a session,database does not gets updated, Only when you process the session,database is updated.

Call Transaction updates the database immediately....

Regards,

Vishwa.

Former Member
0 Kudos

Hi Alex,

There are lots of threads for your same query please do spend some time to search yourself you will get lots of post for your paot.

Anyways BDC_INSERT is one of the function module which will create a session while we upload data using BDC technique this is the sample example ..

    • Load BDC as a transaction in BDC session

call function 'BDC_INSERT'

exporting

tcode = v_tcode

tables

dynprotab = itab_bdc_tab

exceptions

internal_error = 01

not_open = 02

queue_error = 03

tcode_invalid = 04.

endform.

Go through this link will get complete information.

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

Cheers!!

Balu