cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Printing multiple documents in single time in smartforms

Former Member
0 Kudos

Hi Gurus ,

Iam trying to print multiple documents in single time in smartforms by looping the smart form function module .

As below ,

____________________________________________

loop at t_mhnd.

break-point.

control_parameters-no_dialog = 'X'.

CALL FUNCTION fm_name

EXPORTING

  • archive_index = h_archive_index

  • archive_parameters = h_archive_params

control_parameters = control_parameters

  • output_options = output_options

  • mail_appl_obj = mail_appl_obj

  • mail_recipient = mail_recipient

  • mail_sender = mail_sender

user_settings = 'X'

is_sfparam = sfparam

  • IMPORTING

  • document_output_info = document_output_info

  • job_output_info = job_output_info

  • job_output_options = job_output_options

  • e_fimsg = t_fimsgsf

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

endloop.

______________________________________________________

but it not working for me .For single time it is commimg out and showing print preview .

Can any one help me in this issue .

Regards and advance thanks ,

SAB

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi..

Please have a look into the following post which is exactly similar to your post..

[]

There are basically two methods:

1. To call smartform in loop.

2. To call smartform once but do the rest of processing in smartforms.

Both have a been explained there.

Former Member
0 Kudos

Hi karthik,

Using that Thread only i had done the coding , but its not working .Can you please help me .Tons of thanks !!!

The code which i have pasted in first wht iam doing.

Regards,

SAB

Former Member
0 Kudos

Hi ,

Any one please provide solutiond for ths issue ..Its very urgrnt...

Regards,

SAB

SuhaSaha
Advisor
Advisor
0 Kudos

You should clear the PREVIEW field of the CONTROL_PARAMETERS structure.

>

> Any one please provide solutiond for ths issue ..Its very urgrnt...

What's U.R.G.E.N.T for you is not for other members.

BR,

Suhas