Application Development and Automation 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: 
Read only

BDC Session in Background

Former Member
0 Likes
629

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

1 ACCEPTED SOLUTION
Read only

hymavathi_oruganti
Active Contributor
0 Likes
540

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.

3 REPLIES 3
Read only

Former Member
0 Likes
540

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

Read only

Former Member
0 Likes
540

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

Read only

hymavathi_oruganti
Active Contributor
0 Likes
541

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.