Smartform Dynamic Page Format

hi
IS IT POSSIBLE TO HAVE DYNAMIC PAGE FORMAT IN SMARTFROMS.
EXAMPLE: DEPENDING ON ONE CONDITION I NEED TO PRINT THE PAGE EITHER IN LANDSCAPE OR PORTRAIT.
PLEASE HELP ME.
THANKS IN ADVANCE.
KIRAN.

I htink the page format is set at the time of creating the page itself.
YOu cannot change it depending on the condition.

Similar Messages

  • Smartform Dynamic Ppage Format

    Hi All,
    I need answers to the following questions.
    1.I have a smartform for which the page format is Letter, while printing the form depending on some conditions I want to print the form on A4 paper.How can I dynamically change the Page Format, i have developed the layout such that when I take a printout, the default is letter when i change the spool attributes in sp01 to A4 it print correctly on A4, however i would like to change the page format dynamically and through my program, is there any way to change the spool attributes through the smartform driver program.
    2. When pages in the smartform exceed 10 then instead of 10 of 10 it is displaying the page numbers as 10 of *.
    Please help me with these issues.
    Thanks & regards,
    Vanita M.

    For point 1, yes you need to create 2 Smartforms for handling different page sizes.
    This code is working fine for me.
    Page &SFSY-PAGE& of &SFSY-FORMPAGES(3ZC)&
    Regards,
    Naimesh Patel

  • Dynamic Smartform Page Format

    Hi,
    I tried using the following code to create dynamic page format.
    Im working on 4.6c and the following code seems to not work.
    This code is written in the initialization tab of Global Definition Section.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    data: lx_sf_header(31) type c.
    field-symbols : <fs_header> type SSFFORMHD.
    CONCATENATE '(' sy-repid ')%HEADER' into lx_sf_header.
    assign (lx_sf_header) to <fs_header>.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The field symbol does not get assigned, can anyone throw some light on whats wrong.
    regards,

    u can create u own page formate in spad
    click on full admin in the top.....
    device type
    u can a option called page formate...there u can create ur own page formate and assign to it..
    i think this will help u....
    <REMOVED BY MODERATOR>
    regards
    Anbu
    Edited by: Alvaro Tejada Galindo on Jun 12, 2008 4:13 PM

  • 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

  • How to trigger different page formats dynamically in smartforms

    Hi ,
    I have a requirement in smartform,want to trigger different page formants based on country code  for ex if country code is ZA12  then pageformant should be DINA4 else page format should be LETTER.
    Rgrds
    Vasumathi

    Hi,
    According to me, you have to create 2 smartforms, one in DINA4 and other in LETTER format.
    In your driver program, you have to maintain condtion depending on country code.
    if country code = 'ZA12'.
    call fm <--- DINA4 format
    else.
    call fm  <--- LETTER format
    endif.
    Regards,
    Naveen

  • New Page Format in Smartforms

    Hi All,
    I am working on smartforms.
    I have created a new page format of width 25 cm and width 30cm according to client's requirement.
    Smartform is  for customer invoice which is a pre-printed and i have to get data into that.
    In sform i have given the my own page format name.
    Now problem is am getting print preview correctly but while giving print its givivng the error
    ' OUTPUT COULD NOT BE ISSUED' and print is not coming.
    Please help me regarding this issue.
      Thanks in advance.
    Regards,
    Murthy.

    Hi,
    I have checked it but its ok.
    I have created page format through SPAD only.
    Regards,
    Murthy.

  • 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...

  • 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.

  • Page format for 132 column dimension in smartforms

    hi guys
    *In smartforms what is the pageformat for 132 column paper i.e 360 * 310 mm is there any  standard pageformat provided by sap or have to create a new one ,,,how to create a new pageformat.*
    Edited by: ahamed13 on Jun 6, 2010 8:44 PM

    Ahmed,
    create the new page format in SPAD tcode. Go to the device where u want to create the page format as per the requriement.
    Regards..

  • Supress empty page which is due to dynamic page (smartforms)

    hi all,
    i' ve got the problem that i get an empty page at the end of my printout.
    the forms is defined as following:
    first_page - following page: next_page
    next_page - following page: next_page
    and in the main window i have a dynamic page (via command node)
    confirmation_page - following page: manual_guide_page
    manual_guide_page - following page: first_page
    the problem is the following page of my last dynamic page, but it is not possible to leave the following page in that case empty and it is necessary to use a page with a main window.
    has anyone an idea how i can solve this problem??
    it it possible to stop printing a page that is empty in smartforms, as i can't set any conditions for the page itself.
    thanks!

    you can put condition like in your program lines
    DESCRIBE TABLE gt_lips LINES gv_lines.
    gv_tabix = sy-tabix + gv_tabix.
    in COMMAND node  put condition like GV_TABIX LE GV_LINES
    you wont get empty pages...

  • Dynamic Pages: how to overide the default format returned from the oracle query.

    When writing a dynamic page, portal always displays any return from a database query in a default format or grey background table:
    <TABLE border="0" cellspacing=0 cellpadding=2 style="background-color:#E0E0D0">
    <TR>
    <TH ALIGN="LEFT" style="background-color:#C0C0A0" > </TH>
    </TR>
    <TD ALIGN="LEFT" valign="TOP" WIDTH="0">
    Is there anyway to change this or this how the
    function
    PORTAL30.wwv_render_report.show always works?
    Thanks in advance!

    James,
    Please see posting http://technet.oracle.com:89/ubb/Forum70/HTML/000073.html.
    Just a reminder, please search the forum before posting your question. It's quite likely that someone else has already asked the same question.
    Regards,
    Jerry
    null

  • Format text in dynamic pages

    I4ve built a form in Portal where I insert multi-line text into a date base. Then I4ve created dynamic page where I call through and oracle tag to this text inserted in date base but the text I obtain has different format.The one I get is as single line format.
    Does anyone Knows how to apply a format to a text in dynamic pages or DB?

    Hi,
    When you are printing or displaying the data make use of the <pre> tags. This tag keeps the formatting as it is.
    Here is a sample
    <html>
    <head>
    </head>
    <body>
    <oracle>
    for c1 in select description from tab
    loop
    htp.p('<pre>');
    htp.p(c1.description);
    htp.p('</pre>');
    end loop
    </oracle>
    </body>
    </html>
    Thanks,
    Sharmila

  • 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.

  • Regarding smartforms page format

    i create a page format of size 240mm width and 93mm height and go through the transaction SPAD and i done the device type setup also correctly. but when i try to take the print out it is showing the following error as follows.
    exception : send_error
    message id : ssfcomposer
    device type swin does not support page format <name>.
    please anybody can give solution for this.

    Total Posts:  7 
    Total Questions:  6 (6 unresolved)
    Did you even try to search before posting. Similar threads have been discussed no of times.
    [Creating custom page format for sapscript/smartform|http://sample-code-abap.blogspot.com/2009/05/creating-custom-page-format-for.html]
    Close the threads if resolved
    Edited by: K.Manas on Dec 28, 2010 6:06 AM

  • Dynamic select page format

    Hi All,
    My requirement is to pass page format from SE38,
    instead of assign in smartforms.
    because here two devise LP01 and LP02.
    LP01 for Laser printer
    and LP02 for dot matrix printer.
    It is correctly print in LP02, because for that page format is correct but when i m print using LP01 page is wide so it will take so many pages and output is not correct.
    so how to pass parameter for page format from SE38 to smart form.
    I hope u all understand my problem.
    pls do the needful.
    thanks & rgds,
    Arpit Shah

    Hi,
    FORM INETRFACE of the smart form->
    Output options is of type SSFCOMPOP where we can set the page format option dynamicaly or
    In the SE38 program, try to declare a structure of type SSFCOMPOP and populate the value dynammicaly for page format and pass the same to the FM of the SF when called in the program.
    Or we can apss the
    in the SSFCOMPOP->
    TDDEST type RSPOPNAME in this we can give the page format and pass the same to the output options.
    check this table for more-
    TSP03 (Spool: Name of output device)
    Thanks & Regards,
    Chandralekha.

Maybe you are looking for