Application Development 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: 

How to set the BDC Call transaction Program in Background

Former Member
0 Kudos

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

9 REPLIES 9

Former Member
0 Kudos

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.

0 Kudos

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.

former_member181995
Active Contributor
0 Kudos

For which transaction code?

satsrockford
Active Participant
0 Kudos

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

0 Kudos

My report is only for Call Transaction.

0 Kudos

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.

0 Kudos

Hi

You cant access the file from presentation server in background

for this it need some settings.

go throgh this link

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb...

0 Kudos

Thank You. I tried from Application server it is working.

0 Kudos

Thank You.