Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Is it possible to print the dialog program / module pool program screen?

Former Member
0 Likes
4,253

Hi Friends,

I have created module pool program screen with some fields.I want to print that screen.

Is it possible to convert module pool screen to PDF or spool to take print out?

Note: I have used "submit and return" statement, but it is not giving spool (Went to cancel status).

Thanks,

Chella

9 REPLIES 9
Read only

Former Member
2,688

Hi

It's not clear what you need to print, but it can say you can, of course you need to implement all code for the print

Max

Read only

former_member196331
Active Contributor
0 Likes
2,688

As per My knowledge, Not possible, I had seen some posts, submit and return not possible for module pool.

It is better Develop Smart form for module pool programming, , As per you need(which fields you need that fields). then Try for getting Spool Request.After submit button press.

Hope you understood.

Read only

Former Member
0 Likes
2,688

Hi Max,

I want to print the total screen, Example : I have created screen like blow.

I want print this total screen itself (print as it is, like smart form print). How to print?

Thanks,

Chella

Read only

matt
Active Contributor
0 Likes
2,688

What Max means is: create a smartform and populate fields from the data on your screen.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,688

Could you please explain the context of your requirement?

Because you could use a non-SAP screenshot free software, but I think it's not what you're asking for. Do you want to use that for user support so that users can easily send screenshots, or things like that? (cf https://blogs.sap.com/2016/02/18/encode-data-into-an-png-image-file/) Or is it for something else?

Read only

raghug
Active Contributor
0 Likes
2,688

Try using the class CL_GUI_FRONTEND_SERVICES, there is a method in it called GET_SCREENSHOT.

On the other hand, if all you are looking for is a way for end-users to print a screen shot, you can have the users go to the last icon on the toolbar and select Hard Copy from it. This is SAPGui for Windows function and is not available to trigger from ABAP.

On the Java GUI go to the Main menu and select print from there.

Read only

Former Member
0 Likes
2,688

Hi Sandra,

Requirement: Need a screen with editable and display option, If they will change the values, that need to store in database as well and they want take print out the same.

So created module pool screen, added validation and logic as per requirement. this all are fine. But not able to take print out of that module pool screen.

@Raghu

Not able to use CL_GUI_FRONTEND_SERVICES=>GET_SCREENSHOT because it is available in higher version only.

Hard copy is fine but in hard copy also menu bar, tool bar and title all are coming in print. Can we ignore that tool bars?

Thanks,

Chella

Read only

Former Member
0 Likes
2,688

Hi

I don't think it's possible to print the screen, as some guys have said, you can do a screenshoot or an hardcopy.

Read only

naimesh_patel
Active Contributor
0 Likes
2,688

For you requirement, you would need to create a Smartforms or a Adobe Form (or SAPScript, if you still prefer) to generate the print out of the data. That's how any standard SAP transaction generates the Output.

If you want to generate the output as soon as user saves the data, you can call the generate FM to display the output.

Thanks.