Multiple page format for single smartforms

We have a requirement to get the output in different page formates for a smartform.
How to achieve this???

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.

Similar Messages

  • Different page formats in single Smartform

    Hello Experts,
    I have an requirement in my custom Smartforms. I want my first page as by default DINA4 page in where as from second onwards, I want DINA3 page format. Could it be possible? If yes, how I can achieve this? Thanks in advance.

    Hi Mayuresh,
    You can't give two page format in one smartform
    The page format are declared  in form attributes it will be same for all pages
    one thing you can do is change it to landscape or potrait.
    Regards
    Arun VS

  • Whats mass printing ?multiple page formating?

    whats mass printing ?multiple page formating?

    hi..
    plz follow the mentioned web link for mass printing ..
    and multiple page formatting is ...
    sapscript does not support multiple page formatting where as smartform does.
    Multiple page formating is nothing havinfg different page formats in  a form.
    eg..
    sapscript zform has 3 pages..
    1 page has portrait
    2 page has landscape format and 3rd page has landascape.
    this is not possible with sapscript..it tends to error. however, you can do so in smartform. Also this is sometime possible in sapscript by creating different form for each page and using the same print program.
    regrds,
    shamim.

  • Footer should be print on last page in multiple page format

    Hi expert,
    I designed form for invoice print ,in that for multiple pages footer should be print on last page only and hight of the main window should be increase (means if footer will display on last page then space of footer should be used for main window in multiple
    page format) 
    for eg .if i have 12 item so 5 items displyed on each page but i want to print 10 item on first page and remaing on second and after that i want to print footer.
    Regards,
    Jyotsna

    Hi,
    Has you tried to create a "new page" copy of FIRST, and make it the LAST_PAGE... On it you are going to create the desired footer.
    The Page Secuence will be something like this:
    If you are trying to print 12 items, then PAGE 1 (10 items) -> LAST_PAGE (2 remaining items).
    Hope it helps you...
    Alexis Sanchez N.
    SAP ABAP Development Consultant
    Molen Services and Consulting, C.A.

  • Multiple page formats in smartforms

    we say that multiple page format is possible in smartforms but not in SAP Script. What does this multiple page format exactly means and whar does label means exactly in smartforms.
    Please help.

    multiple page formats in smart forms means...
    the first can be landscape, and the second one portrait...viveversa is also possible
    label means... for example u want to print addresses of employees in an organisation... then through scripts ypu can print the labels...

  • Whats mean by multiple page formats in smartform?

    Hi! 
      Can u pls tell me whats mean by multiple page formats in smartform?
       Thanks
        Imran.

    Hi Imran,
    multiple page formats in smart forms means...
    the first can be landscape, and the second one portrait...viveversa is also possible
    go with tcode:smartforms,specify some name and go with create.place the cursor on 'Pages and windows' folder.on right side we will have option page format:go with f4 .u will find many page formats.
    Reward points if helpful.
    Regards,
    Omkar.

  • HP Envy 4501 won't scan multiple pages into a single document

    My HP Envy 4501 Printer won't let me scan multiple pages into a single pdf document.
    I already made sure that the checkbox "Create a separate file for each scanned page" is not checked under the file section in advanced settings.
    After I scan the first page, I do not get a screen with a + (plus sign) that is supposed to allow you to scan additional pages into the same document.
    Is there any way that I can get a fix/update for my HP Envy 4501 Printer software that would show the screen with the + (plus sign) that allows you to scan additional pages into the same document after you scanned the first page?
    At this point, if I don't get this problem fixed soon, I'm about ready to return my HP Envy 4501 Printer back to the store I bought it from so I can get my money back and buy a printer from one of HP's competitors before my store warranty runs out.
    I am very dissatisfied with HP's printer software, their support services and their web sight that doesn't work half of the time.
    Thanks,
    Mark
    This question was solved.
    View Solution.

    Hi Mark,
    Great to see you are up and running now.
    Such an information is available within the online documentation at hp.com:
    Scanning additional pages is supported at 300 dpi or lower.
    http://support.hp.com/us-en/product/HP-ENVY-4501-e-All-in-One-Printer/5304875/model/5368518/document...
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How can i scan multiple pages in a single file in pdf.

    How can i scan multiple pages in a single file in pdf using 1536 dnf.

    Hi @veerendrajain ,
    I see that you would like to save multiple PDF documents into one file. I would like to help you out today.
    In the HP Scan Software, select Advanced scan settings, click on the File tab and uncheck Create a separate file for each scanned image.
    Hope this helps.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • What is multiple page format?

    hI
    can anybbody tell me what does actually means of script doesn't support multiple page foramt & smart form will  support Multiple page formats.
    Plz tell me in details.
    thanks.

    Hi,
    Scripts also supports multiple page format. You can go to edit and create new page and in layout there is a button for page properties(other attributes). Click it and give next page = page2.
    So this led you to have multi page format script.
    Example: For 1st page you require 6 variable window and 1 main window. From 2nd page onwards you require only 2 variable windows and bigger main window. So for page 2 select only two variable windows and increase the size of main window. And in command line give command
    /: position window.
    Hope this will help you.

  • M276 Unable to scan multiple pages into a single file

    Hi, just bought the Laserjet Pro 200 M276nw, and when I scan multiple-pages documents, it generates one PDF document for each page scanned, but I want this multiple pages into a single PDF file. Anyone can help? Thanks so much

    Yes it's possible.  Use the Image Capture app.  It has an option to scan PDF documents into a single file.

  • Scan multiple pages into a single PDF document?

    How can i scan multiple pages into a single multipage PDF file?
    I've seen similar questions posted, but I haven't found any good answers. The only advice i saw was to scan each page as a separate PDF document, then merge them into a single PDF using third-party software.
    Obviously, i don't want to have to do that.
    I can't believe that there really is no way to do it using the existing HP print/scan utilities provided with the hardware.
    My printer/scanner is the "HP Photosmart 5514 e-All-in-One Printer - B111h", and i'm running Vista (64-bit) on an HP Pavillion notebook.
    This question was solved.
    View Solution.

    Hi,
    From the HP Scan software (Start > Programs > HP > HP Photosmart 5510 Series > HP Scan) select PDF and ensure the resolution is 300 DPI or lower.
    Ensure the Show Scan Preview option is checked and click on Scan.
    Once scanning the first page completes, place the next page on the glass and click the plus button below the scan preview...
    Once you are done click on Save.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Print multiple pages on a single page in word or from a PDF

    I need to print multiple pages on a single page from a PDF (ie: pages 1 and 2 onto a single page, pages 3 and 4 on a single page etc.)
    Does anyone know how to do this? Thanks

    (near the middle in a pull down menu - if you have the small print window click on the triangle next to the printer name to expand the window
    In preview the menu shows "preview" until you open it to see more - and
    if you have the small print window click on the triangle next to the printer name to expand the window
    LN

  • Is there a way to combine multiple pages into a single document?

    In the program "Pages," is there a way to combine multiple pages in a single document?

    Jean Louis Gassee, who used to be a senior Apple executive, wrote on Apple's bad approach to the latest iWork suite:
    https://discussions.apple.com/message/25209121#25209121
    Peter

  • Multiple page format's

    Hi ,
    Multiple page formats is possible in script's
    Regards
    Suresh.D

    Hi,
    Yes..It is possible to display multiple page format..
    Create a new form which has a different format...
    Then in the print program..follow the steps
    OPEN_FORM.
    START_FORM with the FIRST PAGE FORMat form
    end_form.
    START_FORM with the SECOND PAGE FORMat form
    end_form.
    CLOSE_FORM
    Thanks
    Naren

  • Multiple webdynpro applications for single webdynnpro component

    I am working on a object which have multiple webdynpro applications for single webdynnpro component.How to assign a different functionality to each application bcoz when we right click on webdynnpro component and select create webdynpro applications ,it just creates a application how so we assign diff functionality to each of them .Also in the parameter tab of the webdynpro applications ,there is a diff config id mentioned for each application.what is its relavance .
    Rgds,
    Praveen

    Hi Saravanan,
    I need to modify it from the portal end, not at the application level.
    I need some configuration steps which specifies how to modify the Detail Navigation in PPM. Using SPRO we can do some configuration, i wanted to know whether its possible from portal end as well.
    Regards
    Shivas Bhan

Maybe you are looking for

  • How do I get music from his itunes to my itunes

    all from my apple logon name but on 2 separate computers... now that I've bought myself a nano I would like to connect it to his pc to get some of the music I've transferred in last few months...? I get ipod recognised in itunes on his computer and t

  • Dock does not appear

    I am having problems with the dock on my iMac. The dock does not appear and the display freezes continually.  Any help?

  • Non Clustered Indexing not working for SQL server 2005

    I have create two non clustered index on two particular tables. Now the problem is its working fine..but after restarting my server its working stop and then again I have to delete that index and recreate it.

  • Problem related to structures

    hi frends I am new to ABAP. actually i am trying to write a program that reads the reservation no from an order and then for a particular reserved item it finds the "RESERVED QTY"  and the "MOVING PRICE" of the material. then i multiply the these two

  • Export Err

    Hi, I am working on IBM AIX machine. I tried to export database. If I log in as a regular user and export database using User mode, no problems. But if I log in as an exporter (have EXP_FULL_DATABASE priv) and try to export database using Entire mode