Application Development 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: 

using nast structure in sap smart forms.

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In the print program when calling the Smartform's function module, change the value of CONTROL_PARAMETERS-NO_DIALOG.

14 REPLIES 14

Former Member
0 Kudos

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

Former Member
0 Kudos

In the print program when calling the Smartform's function module, change the value of CONTROL_PARAMETERS-NO_DIALOG.

0 Kudos

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,,,

0 Kudos

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

0 Kudos

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.,.

0 Kudos

Anyone?

0 Kudos

Is it issuing a SPOOL, can you see that in SP01.

Regards,

Ravi

0 Kudos

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 ?

0 Kudos

refreshing the topic..

0 Kudos

Ravi you there...

0 Kudos

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

0 Kudos

No Problem.

the option is checked. i have also selected from the combo box, 'print with scheduled job' .

0 Kudos

You should not have the "PRINT WITH SCHEDULED JOB" on.

Take that out and try.

Regards,

Ravi

Note :Please mark all the helpful answers

0 Kudos

then wat option shud i choose frm the combo box ?