‎2007 Apr 30 5:48 PM
Hi experts,
Is there any difference between the below statments?
CALL TRANSACTION <transaction number> USING t_bdcdata
MODE 'N'
UPDATE 'S'
MESSAGES INTO t_messtab.
and
CALL TRANSACTION <transaction number> USING t_bdcdata
MODE 'N'
MESSAGES INTO t_messtab.
Even though I don't use the update statement in the second ABAP statement, the update seems to be working fine.
Please clarify.
Thanks.
‎2007 Apr 30 5:57 PM
Hi,
CALL TRANSACTION <transaction number> USING t_bdcdata
MODE 'N'
UPDATE 'S'
MESSAGES INTO t_messtab.
Above code is doing synchronous update.
CALL TRANSACTION <transaction number> USING t_bdcdata
MODE 'N'
MESSAGES INTO t_messtab.
If you don't specify the update mode, then the update is always synchronous (by default).
Asynchronous Update The program does not wait for the work process to finish the update. Commit Work.
Synchronous Update The program wait for the work process to finish the update. Commit Work and Wait
Regards,
Ferry Lianto
‎2007 Apr 30 5:52 PM
Hi,
No need to use the UPDATE in the Call transaction statmen, the Syncrounos is the default one, so if you ignore this statment also it will take it as 'S'
Regards
Sudheer
‎2007 Apr 30 5:54 PM
Here is some info about the UPDATE option for CALL TRANSACTION from the SAP help:
... UPDATE upd
Effect
The UPDATE addition determines the processing mode for batch input processing. You can specify a character-type object for upd. Its possible content and its effect are displayed in the following table. Without use of one of the additions UPDATE or OPTIONS FROM, the effect is the same as if upd had the content "A".
upd Effect
"A" Asynchronous update. Updates of called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition was not specified.
"S" Synchronous processing. Updates of the called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition had been specified.
"L" Local update. Updates of the called program are executed in such a way as if the SET UPDATE TASK LOCAL statement had been executed in it.
Other As for "A".
Note
This option is not available for execution of actual batch input sessions. There the update is always synchronous.
I hope this helps.
- April King
‎2007 May 23 10:37 AM
I do not understand that so many respondents in this thread say that 'S' is default, when the SAP doc clearly says that 'A' is the default.
‎2007 Apr 30 5:55 PM
CALL TRANSACTION <transaction number> USING t_bdcdata
MODE 'N'
UPDATE 'S'
MESSAGES INTO t_messtab.
S means synchoronus update...
if u use S or dont use S also, the call transaction automatically takes S as default.
‎2007 Apr 30 5:55 PM
Hi
In session method while processing in back ground you can find the diffrence.
No need to use the UPDATE in the Call transaction statmen, the Syncrounos is the default one. Here it will pickup 'S' for Update by default.
Regards,
Sreeram
‎2007 Apr 30 5:57 PM
Hi,
CALL TRANSACTION <transaction number> USING t_bdcdata
MODE 'N'
UPDATE 'S'
MESSAGES INTO t_messtab.
Above code is doing synchronous update.
CALL TRANSACTION <transaction number> USING t_bdcdata
MODE 'N'
MESSAGES INTO t_messtab.
If you don't specify the update mode, then the update is always synchronous (by default).
Asynchronous Update The program does not wait for the work process to finish the update. Commit Work.
Synchronous Update The program wait for the work process to finish the update. Commit Work and Wait
Regards,
Ferry Lianto
‎2007 Apr 30 6:25 PM
Hi,
There is no difference. In UPDATION, Synchronous is default.
Regards,
Bhaskar
‎2007 May 23 10:43 AM
assume program control at line 10
...
10 call transaction ...in update 'S' (synchronous)
This would mean that the program control will not move to next line 11 until the call transaction has executed and completed
Again
assume program control at line 10
...
10 call transaction ...in non synchronous
This would mean that the program control will not move to next line 11 immediately even when the call transaction is executing and will not wait for success or failure of the call transaction statement
‎2007 May 23 10:56 AM
hi krishen,
in call transaction method updates data database table in a synchronous way by default. if u wanna update through asynchronous way then u should explicity giv update 'A'.
if helpful reward some points.
with regards,
suresh babu aluri.