cancel
Showing results for 
Search instead for 
Did you mean: 

CALL a report from WDA using SUBMIT to sap-spool

Silvio_Galery
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Silvio_Galery
Explorer
0 Kudos

Hi Phil,

thanks for your answer.

In this forum there is the same problem.

Is there another system field to check if the submit works ?

Do you have a sugest how i can execute a program and show the sapscript(out) in WDA ?

Note: This program is a STANDARD SAP program.

Cheers,

Silvio Galery

Silvio_Galery
Explorer
0 Kudos

The problem was incorrect parameter.

sy-calld ins´t work when i use "AND RETURN".

Thanks Phil.

Answers (1)

Answers (1)

Silvio_Galery
Explorer
0 Kudos

The problem was incorrect parameter when i submit the program.