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

regarding print out in module pool program

Former Member
0 Likes
479

hi,

what sud i write as a code in sy-ucomm section for taking the print out from module pool(dialogue) program...plz explain me...thnx in advance.

the print button is coming but this button is not working.

can we get the print out directly from the dialogue program o/p screen with out using script or smartforms ,in my module pool o/p screen the vendor details is coming in the table controls but if i press print button the print is not coming what sud i do for this no body is helping me......

Message was edited by:

ravi gupta

4 REPLIES 4
Read only

Former Member
0 Likes
453

If you are using a smartform, then you have to fill all the necessary data to be printed and cal lthe smartform's function module in the PAI section.

If you are using the sap scripts, then you have to use the OPEN_FORM, WRITE_FORM CLOSE_FORM function modules to print the script.

you can refer the examples print programs for scripts

RSTXEXP1

RSTXEXP2

RSTXEXP3

you can refer the example print programs for smartfroms

SF_EXAMPLE_01

SF_EXAMPLE_02

SF_EXAMPLE_03

Regards,

Ravi

Regards,

Ravi

Read only

Former Member
0 Likes
453

Hi..

Whether u r using the Default print icon in Tool Bar or Using

a new Button.?

If u r using a new button means create the function code for this button.

And follow this code..

If ur function code is 'PRINT' means.

okcode = sy-ucomm.

clear sy-ucomm.

Case okcode.

when 'PRINT'.

call function 'OPEN_FORM'.

        • parameters**

call function 'WRITE-FORM'.

****paremeters*

call function 'CLOSE_FORM'.

****Parameters*

endcase.

hope it will helps to u.

Regards

Bala..

Read only

0 Likes
453

thnx bala,,

can we get the print out directly from the dialogue program o/p screen with out using script or smartforms ,in my module pool o/p screen the vendor details is coming in the table controls but if i press print button the print is not coming what sud i do for this no body is helping me......

Read only

Former Member
0 Likes
453

Hi Ravi Gupta,

"REgarding print out from module pool " . search the forum with this wording u can get the answer . before posting plz use "search forum " option .u can easily get the ans.

Thanks

Sreedhar