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

About Submit

Former Member
0 Likes
531

Hi ,

I have two report program this program.

1. It fetch data from some table and insert into a Z table Base on some Logic.

2. Another Program which take that data from z table and create One BDC on the basis of data of table.

Now I have to create a third program which called both the program mention above.

The Third program which which called both the program will be background schedule on daily basis. Some buddy Can tell me how can i do this.

Submit is ok or I have to send the program in spool.

Please Suggest.

Regards

Swati....

Edited by: Alvaro Tejada Galindo on Feb 27, 2008 11:21 AM

4 REPLIES 4
Read only

Former Member
0 Likes
504

Hi Swati,

u can use submit within Job_open & job_close.

For example:

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = lwa-jobname

IMPORTING

jobcount = lwa-jobnumber

EXCEPTIONS

OTHERS = 0.

SUBMIT y28m_eval_cond_type_background

USER sy-uname

VIA JOB lwa-jobname

NUMBER lwa-jobnumber

WITH rb1 = rb1

WITH rb2 = rb2

WITH cb1 = cb1

WITH p_datab = p_datab

WITH p_datbi = p_datbi

WITH so_ekorg IN ra_ekorg

WITH so_angnr IN ra_angnr

WITH so_matnr IN ra_matnr

WITH so_lifnr IN ra_lifnr

WITH p_fname = p_fname

AND RETURN.

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = lwa-jobnumber

jobname = lwa-jobname

strtimmed = 'X'

EXCEPTIONS

OTHERS = 0.

Regards,

Karuna.

Read only

Former Member
0 Likes
504

hi

good

i dont think there is any reason to create three programs, instead of creating three programs you can create two include program and one executable program

in one include program you fetch the data from the databse

another include program you create the BDC and in the third executable program you call both of these include program .

It will work fine.

thanks

mrutyun^

Read only

Former Member
0 Likes
504

With the Function Job_open and Job_close function My problem is solve.

Read only

Former Member
0 Likes
504

I got the hint from the message which show the use of job_open..