‎2006 Dec 27 8:56 AM
session method
when i process session in sm35 as foreground it's working fine . but the same session if i run it wiil give the error
plese give me solution
‎2006 Dec 27 8:57 AM
‎2006 Dec 27 8:58 AM
r u use .
<b>
commit work and wait</b>
after ever updation in record
COMMIT WORK AND WAIT
This form specifies synchronous processing. The COMMITstatement waits for the end of processing. Control returns to your program after all high priority (V1) function modules have run successfully.
The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.
kishan negi
‎2006 Dec 27 9:01 AM
Hi ,
Are you getting any warning messages while running it in foreground. If so then please pass the value for DKACB-FMORE = 'X' then it will work fine.
LET ME KNOW IF THIS SOLVES YOUR PROBLEM.
Regards
Ashutosh
Reward points if helpful
‎2006 Dec 27 9:55 AM
actually the same session if i run in background it will give the error
please suggest
‎2006 Dec 27 9:58 AM
Hi Laxmi
The BDC you are performing might contain frontend controls like text editor, which do not work in background mode. That might be a reason.
Alternative you can use transactions that do not have such controls or just perform some function module / BAPI operations for the rest.
Regards
Kathirvel