10-20-2008 7:07 AM
Hi All,
I have a requirement. If i execute a BDC Call Transaction Program in Background it is showing 0 seconds means it is not executing. Normally it is working properly. If execute in background it is not executing. But my client wnats to execute in background. How can i overcome this could you please suggest me?
Thanks in Advance
10-20-2008 7:14 AM
Hi
Are u uploading the file from Presentation Server and then Running BDC using call transaction? Clarify This... Is it saying job cancelled?
Regards,
VIshwa.
10-20-2008 7:21 AM
Uploading Flat file from both Presentation server and Application server depends on the selection screen selection. In SM37 Tcode it is showing 0 seconds and it is not updating the database for Tocdes 0VTC and 0VRF.
10-20-2008 7:14 AM
10-20-2008 7:22 AM
hi
To schedule the processing of session in backgroud you can use report RSBDCSUB.
You can do in two ways -
Ist Method
Define a batch job in SM36 with two steps -
First Step - Your Custom Program ( with a variant )
Second Step - RSBDCSUB ( With a variant having
the session name ).
2nd Method
In your program after BDC_CLOSE_GROUP add a line.
SUBMIT RSBDCSUB WITH MAPPE EQ <SESSION_NAME>.
Scedule you program as a batch job in SM36 ( Single Step ). ( You can also test the program by running in online mode . After your programs executes , go and see in SM35. You will see that your session created in being processed or has been processed in background).
In Both ways the session created by BDC_OPEN_GROUP will be processed in background
You would have to create a job on the fly to do this. This example shows how to kick off a background job via an ABAP program.
report zrich_0004 .
data: sdate type sy-datum,
stime type sy-uzeit,
l_valid,
ls_params like pri_params,
l_jobcount like tbtcjob-jobcount,
l_jobname like tbtcjob-jobname.
start-of-selection.
Get Print Parameters
call function 'GET_PRINT_PARAMETERS'
exporting
no_dialog = 'X'
importing
valid = l_valid
out_parameters = ls_params.
Open Job
l_jobname = 'ZRICH_0005'.
call function 'JOB_OPEN'
exporting
jobname = l_jobname
importing
jobcount = l_jobcount.
Submit report to job
submit zrich_0005
via job l_jobname
number l_jobcount
to sap-spool without spool dynpro
spool parameters ls_params
and return.
Schedule and close job.
call function 'JOB_CLOSE'
exporting
jobcount = l_jobcount
jobname = l_jobname
strtimmed = 'X.
regards
Satish
10-20-2008 7:24 AM
10-20-2008 7:27 AM
Ok. Actually, in background mode you cannot pull up a file from Presentation Server. Thats not possible... But, in some rare cases..they do it using configuration of RFC's which is complicated.
So, the other option would be to have ur file on the Appln Server and then process it.
Regards,
Vishwa.
10-20-2008 7:30 AM
Hi
You cant access the file from presentation server in background
for this it need some settings.
go throgh this link
10-20-2008 7:49 AM
10-20-2008 7:50 AM