‎2020 Mar 18 5:44 AM
Hi Friends,
Kindly find the below code.
loop at Itab.
call smartform FM
endloop.
Here when I press the back button then second form will be printing. my requirement is to print the data continuously.
the first record should be the first page and the second record should be second page like that.
Thanks with Regards,
Vallamuthu M.
‎2020 Mar 18 5:54 AM
Dear Vallamuthu
For is you need to set the internal loop at the smart form in your your main table (just before the contents you want to repeat ) as shown below

Regards,
Venkat
‎2020 Mar 18 6:09 AM
Hi Venkat,
Thanks for your update.
it's a pre-printed sheet. no line item values all are tesxt values. so I am not using main window.
Thanks with Regards,
Vallamuthu
‎2020 Mar 18 6:13 AM
Okay, kindly update your screen shot of the smartform desing (Left panel). I hope at least you have one window.
‎2020 Mar 18 6:47 AM
Hi Venkat,
Kindly find the attached image.

Thanks ith Regards,
Vallamuthu M.
‎2020 Mar 18 6:51 AM
vallamuthu.madheswaran2 you should try to use template, it should be a nightmare to align all these fields
‎2020 Mar 18 6:58 AM
Thanks,
In your driver program where you call the smartform - set the control parameter for showing the printer popup - set to No
Example : ls_composer_param-tdnoprint.
‎2020 Mar 18 8:43 AM
Hi Venkat,
Kindly find the code below.
ls_out_opt-tddest = 'LP01'.
* ls_out_opt-tdnoprint = 'X'.
ls_cntrl-no_dialog = 'X'.
ls_cntrl-preview = 'X'.
IF gt_main[] IS NOT INITIAL.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSCM3262_TNT_CONSIGNMENT_NOTE'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = lv_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc = 0.
LOOP AT gt_main INTO gs_main.
CALL FUNCTION lv_fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = ls_cntrl
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = ls_out_opt
user_settings = ''
gs_data = gs_main
* 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.
IF sy-subrc <> 0.
ENDIF.
Thanks with Regards,
Vallamuthu M.
‎2020 Mar 18 8:49 AM
uncomment on the statement
* ls_out_opt-tdnoprint = 'X'.
comment - ls_cntrl-preview = 'X'.
‎2020 Mar 18 1:06 PM
‎2020 Mar 20 12:12 PM
‎2020 Mar 24 5:53 AM
Hi
Is this issue resolved
If so kindly mark the solution so that it will be helpful for others who face similar requiremetn
Thanks