downloading data into presentation server in Background

Question:
Dear all,
Daily i have to download internal table data to text file.I have used 'WS_DOWNLOAD' function module for downloading.While scheduling in background it is rasing exception (dump) NO_BATCH.Is there any other function module available for downloading data in background.
Thanx&Regards,
Shiva
Answer:
Hello Shiva,
Have a look at this useful site http://www.kmsec.com/tipps.htm
which gives information on how to download in background.
Regards
TandT
Dear all,
Daily i have to download internal table data to text file.I have used 'WS_DOWNLOAD' function module for downloading.While scheduling in background it is rasing exception (dump) NO_BATCH.Is there any other function module available for downloading data in background.
Thanx&Regards,
Shiva
Answer:
hi,
WS_UPLOAD and DOWNLOAD will not work in background.
Instead you have to use Open dataset and close dataset functions to run it in background.
aRs
Answer:
Try the following BACKGROUND JOB.
REPORT ZTT02 .                                               
*REFER TO PROG ZTT02A ALSO                                   
TABLES INDX.                                                 
DATA : BEGIN OF ITAB OCCURS 0,                               
       NUM1 TYPE I,                                         
       NUM2 TYPE I,                                         
       END OF ITAB.                                         
*DELETE FROM DATABASE : INDX(AA) ID SY-UNAME.               
DO 10 TIMES.                                                 
ITAB-NUM1 = SY-INDEX.                                       
ITAB-NUM2 = SY-INDEX ** 2.                                   
APPEND ITAB. CLEAR ITAB.                                     
ENDDO.                                                       
ITAB-NUM1 = ITAB-NUM2 = SY-UZEIT.                           
WRITE : / ITAB-NUM1.                                         
APPEND ITAB. CLEAR ITAB.                                     
EXPORT ITAB TO DATABASE INDX(AA) ID SY-UNAME.               
WRITE : / 'EXPORT CODE', SY-SUBRC, 'USER =', SY-UNAME.       
                                                             
And the following FOREGROUND JOB (After completion of BACKGROUND JOB).
REPORT ZTT02A .                                   
*CONTINUTAION OF PROGRAM ZTT02.                   
TABLES INDX.                                     
DATA : BEGIN OF ITAB OCCURS 0,                   
       NUM1 TYPE I,                               
       NUM2 TYPE I,                               
       END OF ITAB.                               
REFRESH ITAB.                                     
IMPORT : ITAB FROM DATABASE INDX(AA) ID SY-UNAME.
                                                 
LOOP AT ITAB.                                     
WRITE : / SY-TABIX, ITAB-NUM1, ITAB-NUM2.         
ENDLOOP.                                         
IF SY-SUBRC = 0.                                 
DELETE FROM DATABASE : INDX(AA) ID SY-UNAME.     
CALL FUNCTION 'WS_DOWNLOAD'.
*etc
ELSE.                                             
WRITE / 'RUN BACK GROUND JOB FIRST'.             
ENDIF.                                           
KRK
Answer:
hi, first use the open data set and download the data to the application server path. then using the FTP function module, transfer the file from application server to your pc. (your pc should be up always).
regards, sai

More Articles:

Transaction variant?
Add Field to selections?
DropDown List !!?
Report tree?
HR payroll posting?
search help?