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: 

syn and asyn updates

Former Member
0 Kudos

Hello Friends,

Can any one explain me in simple terms that what is synchronous and asynchronous updates of BDC??

Thanks,

Vibha

1 ACCEPTED SOLUTION

Former Member
0 Kudos
Call transaction	<tcode> using <BDCTAB>
	Mode <A/N/E>
	Update <S/A>
	Messages into <MSGTAB>.

Parameter – 1 is transaction code.

Parameter – 2 is name of BDCTAB table.

Parameter – 3 here you are specifying mode in which you execute transaction

A is all screen mode. All the screen of transaction are displayed.

N is no screen mode. No screen is displayed when you execute the transaction.

E is error screen. Only those screens are displayed wherein you have error record.

<b>Parameter – 4 here you are specifying update type by which database table is updated.

S is for Synchronous update in which if you change data of one table then all the related Tables gets updated. And sy-subrc is returned i.e., sy-subrc is returned for once and all.

A is for Asynchronous update. When you change data of one table, the sy-subrc is returned. And then updating of other affected tables takes place. So if system fails to update other tables, still sy-subrc returned is 0 (i.e., when first table gets updated).</b>

3 REPLIES 3

Former Member
0 Kudos
Call transaction	<tcode> using <BDCTAB>
	Mode <A/N/E>
	Update <S/A>
	Messages into <MSGTAB>.

Parameter – 1 is transaction code.

Parameter – 2 is name of BDCTAB table.

Parameter – 3 here you are specifying mode in which you execute transaction

A is all screen mode. All the screen of transaction are displayed.

N is no screen mode. No screen is displayed when you execute the transaction.

E is error screen. Only those screens are displayed wherein you have error record.

<b>Parameter – 4 here you are specifying update type by which database table is updated.

S is for Synchronous update in which if you change data of one table then all the related Tables gets updated. And sy-subrc is returned i.e., sy-subrc is returned for once and all.

A is for Asynchronous update. When you change data of one table, the sy-subrc is returned. And then updating of other affected tables takes place. So if system fails to update other tables, still sy-subrc returned is 0 (i.e., when first table gets updated).</b>

Former Member
0 Kudos

synchronous Update - It will update transaction level and it goes database level.

then it goes next record.

Asynchronous Update : it will update transaction level and lt goes next record.

later it updates database level.

Synchronous update is slow processing

Asynchronous update is speed processing.

One example :

you want to create sales order and then you want create item text of sales order.

you are working on Call transaction ,

if you use synchronous update,first it will create data at sales order transaction and immediately it updates database level.

now you need sales order number to create sales order item text.

you get the sales order number by using bdcmsgcoll structure and this number you use in SAVE_TEXT Function module.

when you use asynchronous update,it creates record at sales order transaction and it goes next record,so you will not get order number to pass save_text function module.

Reward Points if it is helpful

Thanks

Seshu

Former Member
0 Kudos

thanks...