cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms print

rohit_kaikala
Participant
0 Kudos

Hi All,

I don't want print preview screen in the execution,

I want directly the final screen.

wat to do? and where to do mention clearly

Thanh you,

Rohit

Accepted Solutions (1)

Accepted Solutions (1)

former_member585060
Active Contributor
0 Kudos

In Customs SAPScripts u can do it by Passing

In 'OPEN_FORM' FM

Exporting Parameters

Others = ITCPO.

before that u have update the ITCPO structure field TDPREVIEW i.e,

ITCPO-TDPREVIEW = 0.

Answers (3)

Answers (3)

rohit_kaikala
Participant
0 Kudos

tank u

Former Member
0 Kudos

Hi

your question- I don't want print preview screen in the execution,

I want directly the final screen.

During smart form call pass below fields-

wa_control_parameters-no_dialog = co_xflag.

CALL FUNCTION wf_funcmodulename

EXPORTING

control_parameters = wa_control_parameters

Former Member
0 Kudos

Hi!

It can be modified in the printer program or in the smartform. It depends on the given coding.

For example check out the delivery note (program: RLE_DELNOTE, smartform: LE_SHP_DELNOTE)

*   call smartform delivery note
    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        = ' '
                  IS_DLV_DELNOTE       = LS_DLV_DELNOTE
                  IS_NAST              = NAST              "n_489639
*      importing  document_output_info =
*                 job_output_info      =
*                 job_output_options   =
       EXCEPTIONS FORMATTING_ERROR     = 1
                  INTERNAL_ERROR       = 2
                  SEND_ERROR           = 3
                  USER_CANCELED        = 4
                  OTHERS               = 5.

The LS_CONTROL_PARAM contains a field, called PREVIEW. Clear this field.

Within the smartform, CONTROL_PARAMETERS-PREVIEW field will do the same.

Regards

Tamá