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: 

BDC

Former Member
0 Kudos
79

1) When do you go for calltransaction and when do you go for seshen

Many time questions were raised some one gave differences and some one gave description .But no one gave REALTIME answer.

2) How do u display errors in CTransaction and which fields you display from BDCMSGCOLL ??

thanks

Ahmed

1 ACCEPTED SOLUTION

Former Member
0 Kudos
60

A Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.

S Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors

one simple example : You are creating sales order from file and also you want to update header text of sales order.

when you want to update sales order header text,you need to use save_text function module ,here you need to pass sales order number.

when you use call transaction update 'A', data will update transaction level and it goes to the next record,here it will not wait for database .

when you use call transaction update 'S',data will update transaction level and it will update database then it goes next record.

if you want to update header text,then you need to use sync update

database commit -

comitt work - it will update data in database sucessfully

roll back - it will not update in database.

Session method.

1) synchronous processing.

2) can tranfer large amount of data.

3) processing is slower.

4) error log is created

5) data is not updated until session is processed.

Call transaction.

1) asynchronous processing

2) can transfer small amount of data

3) processing is faster.

4) errors need to be handled explicitly

5) data is updated automatically

you can use BDCMSGCOLL Structure to get Error log and again do compare with T100 Table - here you will get text message.

Hope you got it

Thanks

Seshu

3 REPLIES 3

Former Member
0 Kudos
60

2) How do u display errors in CTransaction and which fields you display from BDCMSGCOLL

Ans. If u loop around the table the field with MSGTYP= 'E' will give u the errors.

Reward If Helpful

Viky

Former Member
0 Kudos
60

1) When do you go for calltransaction and when do you go for seshen

Ans. If it is a transactional data like creating a sales order, creating a delivery, creating a PGI, creating a Billing document then I wud go for Call Tranasaction and If it is a transfer which has many 1000's of records I wud create a session and execute it in background because u cant run a program online for that much amount of time

Reward if Helpful

Viky

Former Member
0 Kudos
61

A Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.

S Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors

one simple example : You are creating sales order from file and also you want to update header text of sales order.

when you want to update sales order header text,you need to use save_text function module ,here you need to pass sales order number.

when you use call transaction update 'A', data will update transaction level and it goes to the next record,here it will not wait for database .

when you use call transaction update 'S',data will update transaction level and it will update database then it goes next record.

if you want to update header text,then you need to use sync update

database commit -

comitt work - it will update data in database sucessfully

roll back - it will not update in database.

Session method.

1) synchronous processing.

2) can tranfer large amount of data.

3) processing is slower.

4) error log is created

5) data is not updated until session is processed.

Call transaction.

1) asynchronous processing

2) can transfer small amount of data

3) processing is faster.

4) errors need to be handled explicitly

5) data is updated automatically

you can use BDCMSGCOLL Structure to get Error log and again do compare with T100 Table - here you will get text message.

Hope you got it

Thanks

Seshu