‎2007 Jul 30 7:02 AM
We have a requirement to get the output in different page formates for a smartform.
How to achieve this???
‎2007 Jul 30 7:06 AM
Hi,
Once you have the windows created, click on the PAGES button, then double click on the page that you want to include the window on. It should be now the color "blue". Click on the page windows button. This will show you the window that you currently have included on this page. Click edit, create element. This will give you a drop down with all the window which are a valiable for you to include, choose HEADER. Now enter the standard attributes at the bottom of the screen.
Regards,
Padmam.
‎2007 Jul 30 7:07 AM
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.
<b>Rewards pioint for helpful answers.</b>
Regards,
Abhay.
‎2007 Jul 30 7:07 AM
Hi
Check the <b>'Output Options'</b> tab for each page and set page format accordingly.
Regards
Raj
Message was edited by:
Rajasekhar Dinavahi
‎2007 Jul 30 7:08 AM
--> 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
<b>Rewards point for helpful answers...........</b>