on 07-31-2007 7:49 PM
Hi,
I need to call a report from one of the methods of a WDA application.
The out of this report is a sapscript. I want show it in WDA (PDF).
The report is called when a user clicks EXECUTE button.
The piece of the code is:
:
:
:
call function 'GET_PRINT_PARAMETERS'
exporting
immediately = 'X'
new_list_id = 'X'
no_dialog = 'X'
receiver = sy-uname
release = 'X'
sap_cover_page = 'X'
importing
out_archive_parameters = t_arcpar
out_parameters = t_pripar
valid = i_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
submit hbrcced0
with pnppernr-low eq i_pernr
with pnpbukrs-low eq t_p0001-bukrs
with pnpbegda eq i_begda
with pnpendda eq i_endda
with p_expot eq ''
with ano eq v_gjahr
with respcc eq v_sachn
to sap-spool
spool parameters t_pripar
archive parameters t_arcpar
without spool dynpro
and return.
if sy-calld eq ''.
message 'err' type 'E'.
else.
If i execute this code in WDA, the sy-calld never is equal 'X'.
But if i execute it in program (SE38) the sy-calld is 'X'.
How i can call the program 'hbrcced0' in WDA ?
Cheers,
Silvio Galery
Hi Silvio,
a submit REPORT to spool does work from WDA.
ONLY when "and return" is used.
You have that, so it should work.
Note you had print immediate on, so it will be output on printer,
and not available to read after the call.
(which option was the keep after print?, I would have to check docu)
The sy-calld will be set to X inside the REPORT when it is running.
After the submit has run back inside WDA it is of course reset to space again.
Cheers
Phil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem was incorrect parameter when i submit the program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.