Skip to Content
author's profile photo Former Member
Former Member

smart forms

Hi ,

wt the difference b/n scripts and smart forms? tcode for smart forms?

plz tell me .

Thanks

swathi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Nov 22, 2007 at 04:55 AM

    Tcode: SMARTFORMS

    This link might helps you:

    http://www.ossincorp.com/Black_Box/Black_Box_2.htm

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 05:03 AM

    Hi

    TCODE FOR SMARTFORM is SMARTFORM

    Sapscripts are client dependend and smartforms are client independet.

    SAPscript are CLient Dependent, SmartForms are Client Independent. The reason why SmartForms are client independent is because when you activate a SMartForm, SAP actually generates a Function Module (which as you know is client independent). The Print Program (or as SAP likes to refer to them these days - Application Program) calls your generated FM.

    In the "smartforms" transaction, when you are viewing a smartform, you can go to the Environment->Function Module Name menu path to see the FM name.

    Look at the "Application Program" for the Invoice SmartForm (RLB_INVOICE):

    • determine smartform function module for invoice

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING formname = lf_formname

    • variant = ' '

    • direct_call = ' '

    IMPORTING fm_name = lf_fm_name

    EXCEPTIONS no_form = 1

    no_function_module = 2

    OTHERS = 3.

    ....

    • call smartform invoice

    CALL FUNCTION lf_fm_name

    EXPORTING

    archive_index = toa_dara

    archive_parameters = arc_params

    control_parameters = ls_control_param

    • mail_appl_obj =

    mail_recipient = ls_recipient

    mail_sender = ls_sender

    output_options = ls_composer_param

    user_settings = space

    is_bil_invoice = ls_bil_invoice

    is_nast = nast

    is_repeat = repeat

    • importing document_output_info =

    • job_output_info =

    • job_output_options =

    EXCEPTIONS formatting_error = 1

    internal_error = 2

    send_error = 3

    user_canceled = 4

    OTHERS = 5.

    Difference with SMARTFORMS vs. SapScript (SE71)

    The Following are the differences :-

    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts

    b) It is possible to have a smartform without a main window .

    c) Labels cannot be created in smartforms.

    d) Routines can be written in smartforms tool.

    e) Smartforms generates a function module when activated.

    Contributed by : SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

    f) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.

    It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.

    In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.

    In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.

    For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.

    g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.

    i) The main difference is that SAP script is client-dependant, while smartform is independent. Also there are some advanced and intreractive features available in smartforms.

    You can use an External subroutine-call in sapscript editor like:

    /: perform <form_name> in program <program_name>

    /: using <var1>

    /: using <var2>

    .

    .

    /: changing <return1>

    /: changing <return2>

    /:endperform

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 05:28 AM

    tcode for smartform is SMARTFORMS .

    The Following are the differences :-

    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts

    b) It is possible to have a smartform without a main window .

    c) Labels cannot be created in smartforms.

    d) Routines can be written in smartforms tool.

    e) Smartforms generates a function module when activated.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 22, 2007 at 08:22 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 01:08 PM

    let me try to make it simple for u...

    ->SmartForms are easier to develop, maintain and transport than SAP Script.

    ->SmartForms generates a function module when activated,so we need not use open,write close forms.

    ->unlike scripts only one main window in smart form.

    these are few but important differences..

    tcodes: script se71,

    smart forms:SMARTFORMS,

    smartstyles:SMARTSTYLES.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 26, 2007 at 01:52 PM

    hi swathi,

    the main difference between smartforms and scrpits are:-

    1)Multiple page formats are possible in SmartForms which is not the case in SAPScripts

    2)It is possible to have a SmartForm without a main window.

    3)Labels cannot be created in SmartForms.

    4)Routines can be written in SmartForms tool.

    5)SmartForms generates a function module when activated.

    please reward points if usefull

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.