cancel
Showing results for 
Search instead for 
Did you mean: 

problem with printouts

Former Member
0 Kudos

Hi all,

I does not understand the problem that why i am gettting two print outs,how can i restrict a smartform to print only once.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

check outputoptions-TDCOPIES .. may be ur passing 2..

Former Member
0 Kudos

thanks for the reply but where do we find the outputoptions in smartforms

in the output options i have following options

page format

chars per inch

lines per inch

style

output format

output mode

output device

in which the last two were disable

Thanks in advance

Message was edited by:

ravulapalli santosh

Former Member
0 Kudos

i mean in outputoptions where did we pass that '2'.

Former Member
0 Kudos

in the output options i have following options

page format

chars per inch

lines per inch

style

output format

output mode

output device

in which the last two were disable

Thanks in advance

Former Member
0 Kudos

hi when u t callin gthe smartfom u have to paas the OUTPUT_OPTIONS ans export parameters

in the type output parameters is W_COMPOP type SSFCOMPOP


W_COMPOP-TDCOPIES = 1. "Number of Copies

CALL FUNCTION V_FORM_NAME
  EXPORTING
    CONTROL_PARAMETERS = W_CTRLOP
    OUTPUT_OPTIONS     = W_COMPOP
    USER_SETTINGS      = 'X'
  IMPORTING
    JOB_OUTPUT_INFO    = W_RETURN
  EXCEPTIONS
    FORMATTING_ERROR   = 1
    INTERNAL_ERROR     = 2
    SEND_ERROR         = 3
    USER_CANCELED      = 4
    OTHERS             = 5.
IF SY-SUBRC <> 0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

even you can find ths field when u get the dialog to print.. there u will find numbr of copies in bottom right side.

Please Close this thread.. when u r problem is solved. Reward all Helpful answers

Regards

Naresh Reddy K

Former Member
0 Kudos

Thanks for the answers, but i have made them commented in the calling function,for example think that i am calling this smartform from a function module,in that i have commented the ssfcompop,outputoptions and others which were related to the print ,even i am unable to solve the problem.

Thakns n Regards

Santosh.

Former Member
0 Kudos

hi

even u have commented all of them system will populate the value by defaults..

wht i am telling u is once check the values after calling the smartform..

put a breack point in smartform and execute it then check the value of output_options-tdcopies. i beleve it is populating 2 by defaly.. if it is to then pass the value as 1 from u r driver program