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

multiple printing for smartforms

f_cemunal
Participant
0 Likes
1,574

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.

7 REPLIES 7
Read only

former_member202771
Contributor
0 Likes
1,322

Hi Unal,

Alternate

Do 2 times.

Call function 'SF_FMname'.

ENDDO.

Thanks,

Anil

Read only

0 Likes
1,322

yes but why it is not happening by output_options-tdcopies ?

Read only

0 Likes
1,322

Hi Unal,

Can you please put in user_settings      = 'X' . and please let me know if this works.

Thanks,

Anil

Read only

0 Likes
1,322

no it is not working

Read only

Private_Member_7726
Active Contributor
0 Likes
1,322

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

Read only

0 Likes
1,322

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

Read only

0 Likes
1,322

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.