2007 Jul 24 9:07 AM
Hi all,
I made a custom screen and a menu (status ) for that using menu painter. I want to put a button there for printing the screen. What code i have to write for that print button so when user presses print button, it prints the screen????
Thanks
Ribhu
2007 Jul 24 11:20 AM
Hi
Call the function module 'GET_PRINT_PARAMETERS' to print.
*Sending the print parameters to this.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
immediately = 'X' "<<< add this line - immediate print
NEW_LIST_ID = 'X' "<<< add this line - new spool request
IMPORTING
out_parameters = l_parms
valid = valid.
Check this thread
Regards
Raj
Hi
Call the function module 'GET_PRINT_PARAMETERS' to print.
*Sending the print parameters to this.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
immediately = 'X' "<<< add this line - immediate print
NEW_LIST_ID = 'X' "<<< add this line - new spool request
IMPORTING
out_parameters = l_parms
valid = valid.
Check this thread
Regards
Raj
2007 Jul 24 9:27 AM
Try using 'PRIN' as FCODE for ur print button.
reward points if helpful
2007 Jul 24 9:40 AM
Well I am obviously doing that but what about the coding part???? what should happen when the user presses the print button? It is a custom ment for the screen. Let me know
Thanks
Ribhu
2007 Jul 24 11:20 AM
Hi
Call the function module 'GET_PRINT_PARAMETERS' to print.
*Sending the print parameters to this.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01'
immediately = 'X' "<<< add this line - immediate print
NEW_LIST_ID = 'X' "<<< add this line - new spool request
IMPORTING
out_parameters = l_parms
valid = valid.
Check this thread
Regards
Raj
2007 Jul 24 12:53 PM
Thanks for your reply. Please let me know what are these variables?
out_parameters = l_parms
valid = valid.
What should I pass there in my case?
Thanks
Ribhu
2007 Jul 24 12:58 PM
Welll when I am writing this code, I believe its storing the data in the spool request. Its not printing immideatly.
Please tell me what to do???
Thanks
Ribhu
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |