Skip to Content

CALL a report from WDA using SUBMIT to sap-spool


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'


immediately = 'X'

new_list_id = 'X'

no_dialog = 'X'

receiver = sy-uname

release = 'X'

sap_cover_page = 'X'


out_archive_parameters = t_arcpar

out_parameters = t_pripar

valid = i_valid


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'.


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 ?


Silvio Galery

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 01, 2007 at 06:00 AM

    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.



    Add comment
    10|10000 characters needed characters exceeded

  • Aug 01, 2007 at 10:02 PM

    The problem was incorrect parameter when i submit the program.

    Add comment
    10|10000 characters needed characters exceeded