Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CALL a report from WDA using SUBMIT to sap-spool

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

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question