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

how to call the print method from a custom program

Former Member
0 Likes
496

Hi,

I need to print the text thats displayed in a custom area. Its added to a custom container. Can anyone help me out to do this?

Thanks

Lilan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
457

Hi

U should create an abap list and print it, so a possible code could be:

* Leave the MODULE POOL
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN <SCREEN>.
* Create a new page to be printed immediataly
NEW-PAGE PRINT ON.
* Create the list
WRITE: 'TEXT'.
* Back to MODULE POOL
LEAVE LIST-PROCESSING. 

Try and let's know the result

Max

2 REPLIES 2
Read only

Former Member
0 Likes
458

Hi

U should create an abap list and print it, so a possible code could be:

* Leave the MODULE POOL
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN <SCREEN>.
* Create a new page to be printed immediataly
NEW-PAGE PRINT ON.
* Create the list
WRITE: 'TEXT'.
* Back to MODULE POOL
LEAVE LIST-PROCESSING. 

Try and let's know the result

Max

Read only

Former Member
0 Likes
457

Hi,

This method calls the screen where you need to choose the printer. Is there anyway which that screen can be bypassed as well?

Thanks

Lilan