Needed smartform to determine page format automatically.

Hi
I have a reqirement to print the smartform output in Letter format paper for one company code and it should print it in A4 size paper for rest of the company codes.
I am using R/3 4.6c
I tried with this code
data: lx_sf_header(31) type c,
field-symbols: <fs_header> type SSFFORMHD.
if company_code = 'XXXX'.
CONCATENATE '(' sy-repid ')%HEADER' into lx_sf_header.
assign (lx_sf_header) to <fs_header>.
<fs_header>-PAGEFORMAT = 'LETTER'.
endif.
but I am getting short dump & this logic is working fine in ECC.
Please help me regarding this.......
Thanks in advance
Kiran.
Edited by: kiran Pasala on Sep 30, 2008 4:44 PM

Duplicate post.
Needed smartform to determine page format automatically.

Similar Messages

  • Need Smartform materials in PDF Format

    Hi Guys,
    Please give me the links to download the SMARTFORM materials in PDF format.
    I am new to smartforms so i need all the materials to learn SMARTFORMS.
    Regards,
    Chandru

    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Subtotals - Check the link...
    Re: Subtotal with Table Node in smartforms
    Go through these SAP Standard programs also,
    sf_example_01
    sf_example_02
    sf_example_03.

  • How can we change page format from A6 to A4 in smart forms

    Hi,
    Currently smart form is printing output in A6 page.Now my customer wants in A4 page.How can we change the page format from A6 to A4.Now the output should print in A4 page instead of A6 page.
    I checked the page format in form attribtes it is DINA4.Do in need to change the page format here.
    Is there any settings for this.Plase advice.I appriciate your guidence in this regard.Thanks in advance

    Hi Vijay,
       As the form is formated to A4, now the one A4 sheet and take a print out as well take a print with A6 sheet check the difference.  If the data is not printed in right way then u need to do alignment.
    If it's printing in the same as it used to be, then check the settings in SPAD. 
    Br,
    Laxmi.Suryadevara

  • After applying full scroll bar to the page including header and footer, Text editor ribbon actions cause page to automatically scroll down (while applying formatting)

    After applying full scroll bar to the page including header and footer, I have provided content to
    the page more than 100 lines and try to format the text from ribbon actions(format text area). On mouse over of font or fore color, the control jumps to the highlighted content area and not able to select the color. The page scrolls down and not able to click
    on any action.
    Consider this scenario also.
    A content editor web part is added toward the bottom of the page.
    Text is added to this (direct in the web part, not via a 'content link')
    You highlight some text and go to the Markup Style dropdown...
    Everything is fine until you hover over the "Paragraph" markup style, and suddenly the page scrolls to the web part you are editing, and you didn't have a chance
    to click and apply the "Paragraph" formatting
    I have tried testing this with text typed directly into the Content Editor, text pasted in from somewhere else, and text pasted in from somewhere else using "Paste as
    Plaintext" option in the ribbon.  In each scenario, I get the same results.
    Furthermore, I have also tested this in both IE8 and IE9 and get the same results.
    I can get it to occur most regularly with trying to apply the Paragraph "Markup Style" but
    I've also seen this happen with Font Size (any font size).  It's very frustrating since you aren't able to actually apply the formatting you need because the page jumps before you can click.  Has anyone experienced this before. Any feedback would
    help.

    Hi,
    According to your post, my understanding is that after applying full scroll bar to the page including header and footer, Text editor ribbon actions cause page to automatically scroll down (while applying formatting).
    I try to apply full scroll bar to the page including header and footer, the ribbon is missing after I scroll down to the web part. And I cannot apply the "Paragraph" markup style to the content.
    I recommend to use the SharePoint core styles to preserve the native functionality and GUI.
    By design in SharePoint, the ribbon is always at the top. When you select the content, you can apply the "Paragraph" markup style in the ribbon.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

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

  • 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

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • 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

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

  • Need profile option for determining DateTime format in Oracle Forms

    Hello All,
    I also have requirement where I need to read the date format in which Oracle Forms displays date values.
    As per updates to [this thread|https://forums.oracle.com/forums/thread.jspa?messageID=10285119] , I just need to read the profile option "ICX: Date format mask" ("ICX_DATE_FORMAT_MASK"), and reformat the date value to my required target format.
    This is good for the date type of fields. But what about the profile option that determines "datetime" formats in Oracle Forms ?
    Appreciate any help.
    Thanks
    Bhaskar

    Are you linking the host script to fndcpesr? E.g.:
    Host script defined with prog extension:
    XXSCRIPT.prog
    Move it to relevant dir:
    $XX_TOP/bin
    Create a soft link to fndcpesr
    ln -s $FND_TOP/bin/fndcpesr XXSCRIPT

  • Need to print form in DINA4 page format, but in form it is specified ANY

    Hi all.
    There a form which has ANY page format in its basic settings.
    But I need to print this form in DINA4 page format manually.
    When print the form I am getting a spool. Let me know whether I can change thus to DINA4 format and print the same in DINA4 format on printer?
    Please provide inputs.
    Thanks a lot.
    Bala

    Hi,
    You can change it but you have to check the windows whiche are defined in that page can fit in the Diana4 if it does not fit you have to adjust the windows size to fit into your required page format.
    Thanks,
    NN.

Maybe you are looking for