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 Back ground processing

Former Member
0 Likes
823

Dear all,

I have created one enhancement spot in the VA01 Transaction code.While saving it has to do PGI. For that i written BDC program .BDC program working well in Forground But it is not working in background mode.

Even in debugging mode program running well .it is not working if I Swith off the debugger .

Please help me.

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
775

Hi Shaik,

Apart from above 2 probable reasons and solutions i have one more thought for this issue. This may be because of time lag.

When u run in debug/foreground we have some time for data base updation(VA01). I mean to say by the time u call ur BDC document might not updated in the database with out which it is not possible to do PGI. Try to give some wait time before u call do ur BDC call. Also check the error messages ur getting in BDC(Put piece of code to download the messages into ur PC/application server)

Try this option before ur BDC.

WAIT 3 SECONDS.

Thanks,

Vinod.

5 REPLIES 5
Read only

Former Member
0 Likes
775

it may be this problem,,,,

u may not have authori..........to run in background

Plz check it.....

reward IF.......

regards

Anbu

Read only

Former Member
0 Likes
775

Try to Run the BDC in "E" Mode.

Or else

But your approach is some what wrong.......upto my knowledge...

You can do the BDC part inside a function module(instead of BDC use some relevant BAPI ) ,and make that function module as Update Function and run that function in update task.

Read only

vinod_vemuru2
Active Contributor
0 Likes
776

Hi Shaik,

Apart from above 2 probable reasons and solutions i have one more thought for this issue. This may be because of time lag.

When u run in debug/foreground we have some time for data base updation(VA01). I mean to say by the time u call ur BDC document might not updated in the database with out which it is not possible to do PGI. Try to give some wait time before u call do ur BDC call. Also check the error messages ur getting in BDC(Put piece of code to download the messages into ur PC/application server)

Try this option before ur BDC.

WAIT 3 SECONDS.

Thanks,

Vinod.

Read only

Former Member
0 Likes
775

Hi,

BDC does not run in background mode if any of your screen contains ALV display. So make sure that there is no ALV display in any of the screen of your transaction.

Thanks.

Swati.

Read only

Former Member
0 Likes
775

hi,

my question is ,it is session method or call transaction method?

in call transaction method u can specify Mode as 'N'--no screen mode.

then in session method u can selet backround only while processing session.

or u can go for function module to run during runtime in backround

name of that is:

job_create. check in se37.

reward if useful.

diana.