2020 Nov 15 11:28 PM
Hi Expert.
I want to print preview with 2 pages (fix 2 pages no loop internal table) but It show only first page, second page disappear. In smartform I have already set next page.
In first page. I set next page to page2
2020-11-16-06-14-30-window.png
DATA: lw_control_parameters TYPE ssfctrlop,
lw_output_options TYPE ssfcompop,
lw_output_info TYPE ssfcrescl.
DATA: lv_fm_name TYPE rs38l_fnam,
lv_formname TYPE tdsfname.
lv_formname = 'ZSMARTFORM'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lv_formname
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = lv_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc EQ 0 AND lv_fm_name IS NOT INITIAL .
lw_output_options-tdnewid = 'X'.
lw_output_options-tdimmed = 'X'. "Print immediate
lw_output_options-tddest = 'LOCL'.
*
lw_control_parameters-no_dialog = 'X'.
lw_control_parameters-preview = 'X'.
CALL FUNCTION lv_fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
is_data = gs_data
* 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.
* Implement suitable error handling here
ENDIF.
ENDIF.
When I execute program. I cannot see second page
2020-11-16-06-26-48-window.png
How can I do?
2020 Nov 16 8:08 AM
Please embed all your screenshots, instead of using hyperlinks, that will make your question more attractive:
Page 2 attributes 2020-11-16-06-14-30-window.png (32.4 kB):
Output = 1 page only 2020-11-16-06-26-48-window.png (6.7 kB):
2020 Nov 16 8:58 AM
What kind of windows do you have in those two pages?
The SSF composer will not generate a new page if you have a "MAIN" window and there is not enough data to overflow the first page.
2020 Nov 19 5:33 AM
Hi sawanee_aimsaard,
If the MAIN window in PAGE1 is not getting overflowed, the PAGE2 will not be generated. In Such case at end of PAGE1, use command to go to PAGE2. You can refer the below screenshot.
Regards,
Nooruddin Bohra