2014 Sep 12 12:53 PM
Hello again masters,
i am trying to print smartform page for 2 times. i am using tdcopies parameter for that but it is still printing for once. what am i not doing ?
here is my code :
data : gv_smart TYPE rs38l_fnam,
con_pa type ssfctrlop,
out_op type ssfcompop.
INITIALIZATION.
out_op-tdcopies = 002.
START-OF-SELECTION.
perform smartform.
form smartform.
"IF NOT itab_tb[] IS INITIAL.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_HEDIYECEKI_DENEME'
IMPORTING
fm_name = gv_smart.
call function gv_smart
exporting
control_parameters = con_pa
output_options = out_op
user_settings = space
it_data = itab_tb
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
endform.
2014 Sep 12 12:56 PM
Hi Unal,
Alternate
Do 2 times.
Call function 'SF_FMname'.
ENDDO.
Thanks,
Anil
2014 Sep 12 12:59 PM
yes but why it is not happening by output_options-tdcopies ?
2014 Sep 12 1:12 PM
Hi Unal,
Can you please put in user_settings = 'X' . and please let me know if this works.
Thanks,
Anil
2014 Sep 12 1:23 PM
2014 Sep 12 4:53 PM
Hi,
Some printer servers (host spool systems) do not handle the copy counter sent by R/3 spool system. What's the setting in SPAD for copy counter on the output device you ar using:
and can you try "Pass Copies as Separate Output Request" if it is not yet set?
Edit in: and is there no exception processing just because you shortended code for posting here, or is there really no exception processing after FM calls..? Please... if someone (possibly "fresher") having to look for hours to get to the source of wierd problems after inheriting your work (and then cursing when he/she finally sees missing exception processing) does not worry you, every time somebody neglects to process exceptions when programming with smartforms, enraged programming gods kill a kitten, and a timid "fresher" somewhere is made to do SAP assignment before being given training, guidance and friendly encouragement, and Larry Ellison's "henchmen" get to badmouth HANA... Please, think of the "freshers" and kittens At least take the exceptions out of the call so the thing dumps, should anything untoward happen...
cheers
Janis
Message was edited by: Jānis B
2014 Sep 14 6:11 PM
hello janis,
that was not my code i didnt write it i am just trying to print it for two times
i did what you told me but nothing has changed.
is there any other parameters except tdcopies to achieve this thing ?
regards
cem
2014 Sep 14 6:31 PM
yep i have done it.
there is parameter called tdnewid. it has to be checked to send a new request for multiple printing.
thank you for your answers.
regards.
cem.