2007 Jun 06 8:49 AM
Hi Friends!
I want to know shall we use update mode 'A' , Async when we using error handling in call transaction statement
eg: below mentioned code is right or wrong.
CALL TRANSACTION 'XD02' USING TAB_BDCDATA
MODE 'A' UPDATE 'A' MESSAGES INTO TAB_MESSAGE
Shall the Tab message table contains all the messages when we use update 'A'.
Thanks in Advance
Imran.
Hi Friends!
I want to know shall we use update mode 'A' , Async when we using error handling in call transaction statement
eg: below mentioned code is right or wrong.
CALL TRANSACTION 'XD02' USING TAB_BDCDATA
MODE 'A' UPDATE 'A' MESSAGES INTO TAB_MESSAGE
Shall the Tab message table contains all the messages when we use update 'A'.
Thanks in Advance
Imran.
2007 Jun 06 9:34 AM
Hi Imran,
The UPDATE Parameter
You use the UPDATE parameter to specify how updates produced by a
transaction should be processed. You can select between these modes:
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.
Asynchronous processing is NOT recommended for processing any larger
amount of data. This is because the called transaction receives no completion
message from the update module in asynchronous updating. The calling data
transfer program, in turn, cannot determine whether a called transaction ended
with a successful update of the database or not.
If you use asynchronous updating, then you will need to use the update
management facility (Transaction SM12) to check whether updates have
been terminated abnormally during session processing. Error analysis and
recovery is less convenient than with synchronous updating.
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.
L Local updating. If you update data locally, the update of the database will
not be processed in a separate process, but in the process of the calling
program. (See the ABAP keyword documentation on SET UPDATE TASK LOCAL
for more information.)
When you transfer data in ABAP, you have three options to submit the data for the data transfer. Only the first two methods can be recommended without reservation. The third method, by way of CALL DIALOG, is outmoded. CALL DIALOG is less comfortable than the other methods. You should use it only if you must.
Use the CALL TRANSACTION USING statement
Summary: With CALL TRANSACTION USING, the system processes the data more quickly than with batch input sessions. Unlike batch input sessions, CALL TRANSACTION USING does not automatically support interactive correction or logging functions.
Your program prepares the data and then calls the corresponding transaction that is then processed immediately.
The most important features of CALL TRANSACTION USING are:
Synchronous processing
Transfer of data from an individual transaction each time the statement CALL TRANSACTION USING is called
You can update the database both synchronously and asynchronously
The program specifies the update type
Separate LUW (logical units of work) for the transaction
The system executes a database commit immediately before and after the CALL TRANSACTION USING statement
No batch input processing log
Create a session on the batch input queue.
Reward points if it is helpful...
Regards,
Omkar.
2007 Jun 06 5:59 PM
Please reward points if your doubt is clear.
ya ur error message will be there in this internal table.
you can check during debugging...
2007 Jun 06 6:05 PM
CALL TRANSACTION 'XD02' USING TAB_BDCDATA
MODE 'A' UPDATE 'A' MESSAGES INTO TAB_MESSAGE
error message will not capture when MODE 'A'
error message will capture only mode 'N'.
no need to specify update mode as 'A',system will take default.
if you want to mention then mention only synchronous
2007 Jun 07 5:43 AM
hi,
yes u can use.
CALL TRANSACTION 'XD02' USING TAB_BDCDATA
MODE 'A' UPDATE 'A' MESSAGES INTO TAB_MESSAGE
Shall the Tab message table contains all the messages when we use update 'A'.
yes.
no need to specify update mode as 'A',system will take default.
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.
when you update the data at transaction level and it should update the data with respect to corresponding tables .. when you use asyn or syn ,all are same but only thing is Syn update is it update the record transaction level and it goes db level and it will go next record.
where as Asyn update ,it updates transaction level and it goes next record.but it updates DB Level later.
2007 Jun 07 6:06 AM
Hi,
error message will not capture when MODE 'A'
error message will capture only mode 'N'.
no need to specify update mode as 'A',system will take default.
Check the documentation for more info.
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.
Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.
If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.
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.
L Local updating. If you update data locally, the update of the database will not be processed in a separate process, but in the process of the calling program. (See the ABAP keyword documentation on SET UPDATE TASK LOCAL for more information.)
Regards
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |