Application Development 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: 

DIsplaying multiple pages in SMARTFORMS

ashok_kumar24
Contributor
0 Kudos

Hi ,

I have created 4 pages in a single smartform application, I am having a problem in displaying

these pages on the screen . When i run the application only the first page is getting displayed.

I entered the "NEXT PAGE" values correctly . Are there any other values that i have missed out .

How do i display all the four pages on the screen in order to check my layout correctly before

issuing them for the print.

Ashok Kumar.N

4 REPLIES 4

former_member182670
Contributor
0 Kudos

Have you tried pressing Page-up and page-down at print preview screen?

Former Member
0 Kudos

Hi Ashok,

I suppose you r using a program to print the smartform.

Just check this program.

REPORT z_sf_demo1 .

PARAMETERS p_bukrs LIKE ekko-bukrs.

DATA: fm_name TYPE tdsfname.

DATA: ssfctrlop LIKE ssfctrlop.

  • Function to get the function name to run SMART FORM.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZJAYRA_DETAIL'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = fm_name

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

  • To pass parameters for CONTROL_PARAMETERS

ssfctrlop-no_open = ' '.

ssfctrlop-no_close = 'X'.

CALL FUNCTION fm_name

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

control_parameters = ssfctrlop

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

bukrs = p_bukrs

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • TABLES

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

  • To pass parameters for CONTROL_PARAMETERS

ssfctrlop-no_open = 'X'.

ssfctrlop-no_close = ''.

ssfctrlop-startpage = 'PAGE2'.

*

  • Function to run SMART FORM from third page to last page.

CALL FUNCTION fm_name

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

control_parameters = ssfctrlop

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

bukrs = p_bukrs

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • TABLES

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ssfctrlop-no_open = 'X'.

ssfctrlop-no_close = ''.

ssfctrlop-startpage = 'PAGE3'.

  • Function to run SMART FORM from third page to last page.

CALL FUNCTION fm_name

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

control_parameters = ssfctrlop

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

bukrs = p_bukrs

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • TABLES

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

I have also sent a mail to your gmail id regarding the details of my program.

Hope your query will be solved.

Regards,

Sylendra.

P.S Please award points if found useful.

Former Member
0 Kudos

Hi Ashok,

Please check is your MAIN window data in other pages.(Means is your data overflowing more thanone page).

Lanka

Former Member
0 Kudos

Hi Ashok,

--> In the First page general Attributes, give the next page as 'Second page'

--> In the second page general Attributes, give the next page as 'Third page'

---> In the third page general Attributes, give the next page as '4th page'

--> In the fourth page general Attributes, give the next page as 'Fourth page'..

if you already maintaing this, then see the Main window, if the main window is correctly working then see the page by pressing the Pagedown button, this will work

Regards

Sudheer