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

smartforms..

Former Member
0 Likes
521

I DONT WANT THE PRINT PREVIEW SCREEN TO BE APPEARED WHENEVER I EXECUTE A SMARTFORM OR A SCRIPT.

I WANT TO SKIP THE PRINT PREVIEW SCREEN ? CAN ANYONE GIVE THE REPLY

4 REPLIES 4
Read only

Former Member
0 Likes
499

thats a customizing thing, ask your councelors about that.

Message was edited by:

Florian Kemmer

Read only

Former Member
0 Likes
499

Hi

got to messages screen of the Application document (PO or Sales Order or Invoice) and select the Output type

Select and press Communication Method

Check the PRINT IMMEDIATELY check box

come back and press FURTHER DATA

there will be 4 options for despatch time

select SEND IMMEDIATELy

This will straight away print the Smartform.

Regards,

Anji

Read only

Former Member
0 Likes
499

Hi Shiva,

If you have control over the print program (To change it if it is a z program), then

you have to set the

CONTROL_PARAMS-PREVIEW = space.

Regards,

Ravi

Read only

Former Member
0 Likes
499

hi shive you can achive this be passing the Outputoptions-

<b>scripts</b>

ITCPO-TDNOPREV = 'X'.
CALL FUNCTION 'OPEN_FORM'
  EXPORTING
    DEVICE   = 'PRINTER'
    DIALOG   = ''
    FORM     = '............'
    LANGUAGE = SY-LANGU
    OPTIONS  = ITCPO
  EXCEPTIONS
    CANCELED = 1
    DEVICE   = 2
    FORM     = 3
    OPTIONS  = 4
    UNCLOSED = 5
    OTHERS   = 6.

<b>for the smartforms</b>

   
 ls_composer_param-TDNOPREV = 'X'
ls_control_param-NO_DIALOG = 'X'
   CALL FUNCTION lf_fm_name
           EXPORTING
                      archive_index        = toa_dara
                      archive_parameters   = arc_params
                      control_parameters   = ls_control_param
*                 mail_appl_obj        =
                      mail_recipient       = ls_recipient
                      mail_sender          = ls_sender
                      output_options       = ls_composer_param
                      user_settings        = space
                      is_bil_invoice       = ls_bil_invoice
                      is_nast              = nast
                      is_repeat            = repeat

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K