06-11-2008 12:20 PM
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.
06-11-2008 12:35 PM
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.
06-11-2008 12:24 PM
it may be this problem,,,,
u may not have authori..........to run in background
Plz check it.....
reward IF.......
regards
Anbu
06-11-2008 12:25 PM
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.
06-11-2008 12:35 PM
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.
06-11-2008 12:44 PM
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.
06-11-2008 12:52 PM
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.