‎2008 Feb 25 4:59 AM
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
‎2008 Feb 25 5:10 AM
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.
‎2008 Feb 25 6:27 AM
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^
‎2008 Feb 27 2:57 PM
With the Function Job_open and Job_close function My problem is solve.
‎2008 Mar 02 12:18 PM
I got the hint from the message which show the use of job_open..