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: 

background job

Former Member
0 Kudos

Hi All,

my rquairment is.

it is bdc call transaction method.

at first i need to display a report along with checkboxes, from that list user can select some checkboxes THERE i have provided a execute button to to run bdc call transaction. am able to run it successfully .but my problem is how to run in back ground(means how to shcdule a job ) am in basic list . from there i need to run bdc in back ground job where the check box is selected.

am able to get the selected records into one internal table ITAB1.

FROM HERE how to process.

Please help me,

Thanks in Advance.

Thanks&Regards.

Ramu.

3 REPLIES 3

Former Member
0 Kudos

Hi,

You need to use JOB_OPEN, JOB_SUBMIT, JOB_CLOSE function modules after the Basic list.

<b>JOB_OPEN:</b> Create a background job.

<b>JOB_SUBMIT</b> to add a job step to a background job that you have opened with JOB_OPEN.

<b>JOB_CLOSE:</b> Submit a background job to the background processing system for execution.

Regards

Sudheer

Former Member
0 Kudos

Hi Ramu,

Your seems to be a good case for trying out something I have always wanted to, i.e. once you have selected the records you want to up run BDC for and have the data in an internal table, I suggest you put the code for the BDC run within a function module (passing the internal table through the tables parameter) and then call the function module as so:

CALL FUNCTION func IN BACKGROUND TASK

[DESTINATION dest]

parameter_list

[AS SEPARATE UNIT].

I am not 100% sure about how it goes, however should be worth a try. Also this would go a long way in ensuring modularization of your program.

Please let me know if you try it and how it goes.

Regards,

Aditya

0 Kudos

Hi

Please can u more Elaborate this process.

Thanks,

Ramu.