cancel
Showing results for 
Search instead for 
Did you mean: 

Send the Webdynpro Output screen to Spool

balajishahrsap
Participant
0 Kudos

Dear All,

I have a requirement to Print the output screen of the Webdynpro application.

Scenario,

I have a ALV table as an output in the webdynpro application, and there i have given a Print button to print that table.

the ONACTION_PRINT code is

"data lo_comp type REF TO if_wd_component.
   data lo_appl TYPE REF TO if_wd_application.

   lo_comp = wd_comp_controller->wd_get_api( ).
   lo_appl = lo_comp->get_application( ).

   lo_appl->print_page( ).
"

The output table shows about  16 columns and once we give print it prints only 9 or 10 columns, the remaining i am unable to print, is there any provision to

Print the entire table.

OR

How to send this webdynpro application screen to spool,

Please let me know you thoughts

Regards,

Balaji sha

Accepted Solutions (0)

Answers (2)

Answers (2)

balajishahrsap
Participant
0 Kudos

Hi Kiran,

Sorry for the delayed response.

With respect to the suggestion provided, i have two questions.

1. Can we send a webdynpro screen (output screen) to Spool, if yes then how!!

2. My output is sometimes ALV table and some times it is bar chart.

for printing the ALV table as you suggested we have in-built option, do we have any similar kind of inbuilt functionality for printing the Bar charts.

Best Regards,

Balaji

former_member184578
Active Contributor
0 Kudos

Hi,

As far I knew, I don't think you can send the whole WDA output to SPOOL! But you can send the input data & table data( manually and don't think you can send Business graphics) to SPOOL by using the above mentioned way or by using GET_PRINT_PARAMETERS FM.

Regards,

Kiran

former_member184578
Active Contributor
0 Kudos

Hi,

If your output contains only ALV, then you don't have to write code for printing ALV, there is an inbuilt print button in ALV, check this blog to enable the same:

And if you want to print other details too, consider creating a smart form/ adobe form and then send your data and table data to Form. Then you can call the form/send it to spool/ print it.

Hope this helps u,

Regards,

Kiran