‎2007 Oct 03 9:08 AM
Hi Experts,
I am creating BDc sessions and processing in SM35. When I process in foreground mode it is running successfully but when I run background mode , session is not getting processed. Is these anything I am missing?
Please help.
Regards,
Jeetu
‎2007 Oct 03 9:26 AM
use RSBDCSUB or RSBDCBTC programs.
run either of them.
its always better to use TSBDCBTC as it takes qid as input which would be unique.
now schedule the program in background with the qid as variant.
if u want to run RSBDCSUB, u need to give the session name as variant and then schedule it in background.
‎2007 Oct 03 9:13 AM
Hi
Check are you using any GUI related function modules like GUI_DOWNLOAD or UPLOAD
because they won't work in background
You have to use the OPEN DATASET concept to get the fiels from the application server by keeping the data on it.
Regards
Anji
‎2007 Oct 03 9:23 AM
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.
**************
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.
*****************
r u using
commit work and wait
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.
***********************
Regards
Vasu
‎2007 Oct 03 9:26 AM
use RSBDCSUB or RSBDCBTC programs.
run either of them.
its always better to use TSBDCBTC as it takes qid as input which would be unique.
now schedule the program in background with the qid as variant.
if u want to run RSBDCSUB, u need to give the session name as variant and then schedule it in background.