05-26-2006 7:48 AM
Whenever i display a form thru a related Transaction(e.g: Sales Order or Quotation) i get a window on which i have to press the 'Print Preview' button . On pressing that i get another window with print options(like 'Print Immediately' , 'Delete after Output') . I have to press the Print Preview button in this window(again) to view the smart form.
I was told that i can get rid of the extra window by using NAST structure, but dont know how to use it..
Thanks .
Shehryar
05-26-2006 2:21 PM
In the print program when calling the Smartform's function module, change the value of CONTROL_PARAMETERS-NO_DIALOG.
05-26-2006 7:58 AM
HI
GOOD
GO THROUGH THE FOLLOWING DETAILS TO KNOW MORE ABOUT THE NAST
NAST Message Status
http://idocs.de/www5/mySap/PDF/Book_06.pdf
NAST=>
Another common application of a message queue is to collect requests for delayed
processing, e.g. as a batch job during off-peak times. Typically this is done with
print documents like invoices which are due to be sent and thus printed only once
75 per week. The SAP R/3 NAST table is such a message queue and the ABAP
RSNAST00 is the matching handler for it.
-
The message control is also known as the NAST messaging due to the name of
the database table NAST (germ: NAchrichtenSTeuerung). The mechanism is, that
a requesting application deposits a request message in table NAST and an
interested consumer application eventually picks them up and decides upon an
85 appropriate action. The consuming action is fully independent from the requester.
If the requester expects a response, it has to poll the expected result tables.
The requesting application stores a message in table NAST
A program (usually RSNAST00) polls the table NAST for unprocessed
messages and activates the program that has been dedicated to process that
90 message
The processing function finally finalizes the message by marking the message
as processed and storing status information and eventual log data to it
http://idocs.de/www5/mySap/PDF/Book_06.pdf
THANKS
MRUTYUN
05-26-2006 2:21 PM
In the print program when calling the Smartform's function module, change the value of CONTROL_PARAMETERS-NO_DIALOG.
05-29-2006 9:10 AM
Hello Mat,
Before calling the smartform i did sumthing like this,
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
but when i run it and click the print preview button , i cant preview the smartform at all..
i wanted to remove the 2nd window and print n preview by clickin the button on the first window that appears,,
Thanks,,,
05-29-2006 9:15 AM
Hi,
You can specify the options in the second window also in the SMART Form parameters, look at the OUTPUT_OPTIONS parameter.
However, once you enable the PRINT PREVIEW I think the options button also will appear.
Regards,
Ravi
Note : Please mark the helpful answers
05-30-2006 9:11 AM
Hello Ravi,
I have done sumthing like this.
ls_control_param-no_dialog = 'X'.
ls_composer_param-tddest = 'kgn2'.
ls_composer_param-tdnewid = 'X'.
ls_control_param-PREVIEW = 'X'.
ls_composer_param-TDIMMED = 'X'.
running it , i dont get the extra dialog, when i click on the print preview button in the 1st window i get the output displayed, but when i click the print icon(button) in the 2nd window the output is displayed (shudnt it print instead ??? ) and when i hit the back button , i get a status message saying that output has been issued ( but get no print.. ??
thanks.,.
05-30-2006 11:11 AM
05-30-2006 11:36 AM
05-30-2006 12:09 PM
yes it is. and when i actually print it. It prints all the spool wid the current one.
why isnt it printing at the time when i click on the print icon ?
05-31-2006 6:05 AM
05-31-2006 10:50 AM
05-31-2006 10:55 AM
Hi,
Just got busy in something else ..
If you are specifying the parameter TDIMME then ideally it should not just generate the spool but also print immediately.
Do this, In your USER DEFAULT, set the PRINT IMMEDIATELY flag one and then try.
Regards,
Ravi
Note : Please mark the helpful answers
05-31-2006 11:27 AM
No Problem.
the option is checked. i have also selected from the combo box, 'print with scheduled job' .
05-31-2006 11:30 AM
You should not have the "PRINT WITH SCHEDULED JOB" on.
Take that out and try.
Regards,
Ravi
Note :Please mark all the helpful answers
05-31-2006 11:50 AM