Application Development and Automation 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: 
Read only

syn and asyn updates

Former Member
0 Likes
677

Hello Friends,

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

Thanks,

Vibha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
641
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>

Hello Friends,

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

Thanks,

Vibha

3 REPLIES 3
Read only

Former Member
0 Likes
642
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>

Read only

Former Member
0 Likes
641

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

Read only

Former Member
0 Likes
641

thanks...