‎2007 Mar 23 11:56 AM
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
‎2007 Mar 23 11:59 AM
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
‎2007 Mar 23 12:13 PM
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..
‎2007 Mar 23 12:25 PM
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......
‎2007 Mar 23 12:40 PM
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