This website is not affiliated with, sponsored by, or approved by SAP AG.

Sendig report(RFBELJ10) to spool

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Sendig report(RFBELJ10) to spool

Postby B001eth » Mon Oct 21, 2002 7:56 am

I have a problem with a report that I want to start from another program that I have made.What I am trying to do true my program is to start the report in the background and send it to spool. The report runs in
background, but it will not go to spool (the report I am trying to run
is a SAP standard report "REFBELJ10"). Her is the code that I am using





call function 'GET_PRINT_PARAMETERS'
exporting
mode = 'BATCH'
report = 'RFBELJ10'
layout = 'X_65_132'
importing
out_parameters = params
valid = valid.


if valid <> space.
call function 'JOB_OPEN'
exporting
jobname = 'RFBELJ10 rapporten'
importing
jobcount = z_jobnumber
exceptions
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
others = 4.

submit rfbelj10 and return via job 'RFBELJ10 rapporten'
number z_jobnumber
using selection-set 'BILAGSJOURNAL'
with br_bukrs in s_bukrs
with br_gjahr in s_gjahr
with br_budat in s_budat
with budatsum = s_beljbu
with z_nummer = s_beljzn
to sap-spool
without spool dynpro
spool parameters params.


call function 'JOB_CLOSE'
exporting
jobcount = z_jobnumber
jobname = 'RFBELJ10 rapporten'
strtimmed = 'X'
exceptions
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
others = 8.
endif.
B001eth
 
Posts: 8
Joined: Mon Oct 21, 2002 7:40 am

Return to ABAP

Who is online

Users browsing this forum: Google Adsense [Bot] and 9 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.