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 background

Former Member
0 Likes
560

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

5 REPLIES 5
Read only

Former Member
0 Likes
526

what error its throwing?

Read only

0 Likes
526

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

Read only

former_member508729
Active Participant
0 Likes
526

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

Read only

Former Member
0 Likes
526

actually the same session if i run in background it will give the error

please suggest

Read only

Former Member
0 Likes
526

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