Copying smartforms and sapcript-forms

Hello!
How can I copy smartforms and sapcript-forms  from one system to the other ?
Ragards
sas

Hi,
A smartform is transported no differently than any other object. if it is assigned to a development class that is atteched to a transport layer, it will be transported. 
The definition is transported, and when called, the function module is regenerated. 
This leads to an interetsing situation. On the new machine, it is very likely the function module name will be different than the name on the source system. Make sure, before you call the function module, you resolve the external name to the internal name using the 'SSF_FUNCTION_MODULE_NAME' function module. 
Typically, generate the SF, then use the pattern to being in the interface. Then change the call function to use the name you get back from the above function module. 
Regards,
Bhaskar

Similar Messages

  • Merging Smartform Output and Adobe Form Output in a single PDF File

    Hi All,
    My Requirement is as follows -
    I have multiple Smartforms and a single Adobe Form.
    I want to merge the Smartform Outputs and Adobe Form output in a single PDF.
    I am able to merge multiple Smartform Output in a PDF , but not able to find any way to merge smartform and adobe form output as the Smartform output is in OTF Format and Adobe form output is in PDF Format itself.
    I have tried few ways , but could not find any success.
    Request you all to give me some direction to this problem.
    Thanks & Regards
    Bhavika

    Kumar,
    I am afraid this is not possible using SAP functionality. There are probably 3rd party tools which allow you to merge several PDFs into one, but SAP itself does not offer such a mechanism. There is an internal SAP function, though, which can merge several "parts" (=several PDFs) within an Adobe-created spool request into a single PDF, intended for downloading this PDF from SP01.
    This is described in note 1717357.
    Best regards,
    Alexander

  • Copy Paste On Tabular Form

    I have a great need to produce an APEX (version 2.2.1) tabular form in
    which users would be able to do Excel-like copy/paste of tabular form
    fields from one part of the form to another.
    For example, a user would want to somehow (ideally highlight with the mouse - not sure if this is possible) select the first 2 rows of the form and then
    copy/paste these to, say, rows 7 and 8, overwriting any values in
    those form fields. Or, select field 2 (this would be on row 2) under column A and then copy/paste this field to, say, fields 3 through 10 under the same column A.
    I am currently trying to do this using javascript, but am not sure how to go
    about it and would appreciate any help or advice.
    Thank you very much.
    Elie

    Hello Vikas.
    Thank you very much for creating your sample page. I liked the way you're
    duplicating entire rows in the form.
    I'm sorry for not responding sooner. I have been under the gun, sort-to-speak
    at my work place. I've been playing with another tool (explained below) to see
    if it could help me out with my application.
    The issue before me is that users need the flexibility of an Excel like interface
    in which they are able to do any sort of copy/paste/fill operations as desired
    prior to submitting their changes to Oracle. This kind of functionality is what
    I've been trying to, if not duplicate, at least get part way there in Apex. And
    this is what spurred me on to post my question to you and to this Forum.
    I went ahead and dabbled my way through all sorts of javascript (learned an awful lot, I might add) and have come up with a sample tabular form in which I'm able
    to copy a single form field to any selected row / column combination in the form.
    I've copied my app ( App 19379, Page 12 ) up to the Apex forum.
    Here's the link:
    http://apex.oracle.com/pls/otn
    Workspace = play
    Login username = [email protected]
    Login password = playtoo
    Originally, this app brought up a second page (Paste Page) as a popup in which
    users could select which columns and rows they wanted to copy a form field to.
    They would then click a "Go" button on this Paste popup page. This "Go" button
    would then run a javascript function "do_paste()" in the calling page. This function
    would copy the form field to the designated columns and rows. This worked fine.
    However, I wanted a solution in which everything is entirely on a single page
    rather than having a popup page appear.
    And so, I modified my page 12 so that the user could designate the target
    columns and rows entirely on the same page (page 12), and so, eliminate
    the popup page.
    This works to a point.
    The user first clicks "Copy". This displays (via a javascript function) the
    contents of the selected form field in a text box. This also displays the
    target fields "From Column", "To Column", "From Row", "To Row".
    The Copy button is replaced with a "Go" button. The user then designates
    target columns and rows and clicks "Go". This causes the selected form
    field to be copied to the designated targets.
    Unfortunately, clicking the "Go" button also causes the page to be submitted.
    This submit operation causes the form to be refreshed which then completely
    erases the copy action and the form ends up with the original data. The user
    does not see that anything has happened. However, under the wraps, my
    javascript do_paste() function was invoked but then it's result was reversed
    by the submit action.
    I do not know how to get around this submit action (which refreshes the form,
    thereby reversing my do_paste() function). I could, of course, bring back the
    popup page. The paste does work with that. I was just hoping I could do the
    copy/paste all on one page.
    In any case, this represents my current state with respect to an Apex solution
    to my need.
    I did in the meantime find another interesting solution to my problem.
    Years ago in another job I had worked with a tool called Oraxcel (now
    called SQLXL - www.oraxcel.com). This tool is an add-in into Excel and provides an API between Excel and Oracle (as well as various other dbms systems: mysql, sql server, db2, etc.).
    Well, I downloaded a free trial copy and have been playing with it.
    In a nutshell, I can now allow users to continue using Excel to do
    copy/paste/fill operations and provide [ via VBA buttons and macros
    that interface with Oracle - actually it is using Oracle's product "Oracle
    Objects For OLE (OO4O) ] them the ability to upload the excel data (new and
    modified and deleted rows) to Oracle tables, download from Oracle tables (from a package/ref cursor or a table), create Excel LOVs that are dynamically populated from Oracle, and provide validations run from a package and display error
    messages to the Excel page.
    In effect, Excel becomes the "front end" to my Oracle schema.
    As it turns out, in my particular application, Apex pages still play a critical role
    as users need to interface with these as well. However, the SQLXL product
    appears to be a neat solution allowing users Excel like flexibility to copy,
    paste, fill, and other operations that Excel does so well while still interfacing
    with Oracle.
    Am still playing with this tool and built a small "proof of concept".
    In any case, thank you again so much for your help and your sample page.
    I would like to incorporate the neat way you're duplicating rows in the form
    as I believe this will come in handy in naother APEX app I'm currently
    working on in another project at my work place.
    Elie

  • SmartForms Vs Adobe Forms for output

    Hello Everyone,
    I have a question. When configuring output in CRM 7.0 what are the advantages/disadvantages vis-a-vis smartforms and adobe forms?
    Appreciate your input and answers.
    Thanks
    B P

    Hi,
    the output of adobe forms can be archived directly as PDF:
    The smartform has to be converted to PDF before archive - but this is also possible.
    It is more like a strategy-question of your company. In our company all forms in CRM are created as Adobe PDF.
    On remark to licences: As long as you do not use interactive PDF there is no additional license for Adobe Forms.
    Kind regards
    Manfred

  • Configuration Settings - HR_SGPPP (Smartform) & RPUPBSR8_PRINT (Print Form)

    Hello Experts,
    Can anyone please let me know where HR_SGPPP  smartform and print form is configured(Transaction code and steps to configure the smartform and print program ).
    Kindly do the needul help.
    Thanks & Regards,
    Lakshmi Prasad

    Hello Experts,
    Details :
    For the pensionable employees, the form 'Option for Retirement Benefit' needs to be printed along with pension paper.
    The standard pension paper print program u201CRPUPBSR8_PRINTu201D calls the smatform u201CHR_SGPPPu201D from the routine u201CPRINT_PPu201D.
    Thanks & Regards,
    Lakshmi Prasad

  • Standrad smartform and standard print program not available in ECC 6.0

    Hi gurus,
    I have a requirement like, I need to change the logo of the standrad smartform based on the company code.
    The standard smartform name is '/SMBUSE/US_MMGR3'.
    I have searched for the above form in ECC 6.0 and could not find one.
    is the issue because of installation or configuration?
    Please let me know what need to be installed or configured. so that I can give directions to the respective basis / functional guys.
    please let me know the standard print program for the above smartform and how can I find the same.
    Thanks & Regards
    Kiran Kumar K

    Hi ,
    No standard smartform's were available because SAP Best Practises was not installed in the system.
    If standard smarforms are not installed then in this case we need to need to download the forms and upload them in our system.
    We need to copy paste the standard print program's as well.
    Thanks & Regards,
    Kiran Kumar K

  • Missing texts on a copied smartform

    Hi Guys,
    I am getting crazy. I copied a smartform to another one but when I testt/use the copied smartform, all the fixed texts are misisng. I am quite sure I am missing something but I  do not know what.
    Could you please help me?
    Thanks and Regards,
    Gaetano

    Hi Guys,
    I found the problem. The orignal form has "DE" as language. When I performed the copy, I was logged in enslish and the copied form had "EN" as language.
    This was probably creating some problems at the transaltions table level becuase I could not see the texts in the copied form, independently from the logon language.
    I solved the problems as follows:
    - I deleted the copied form
    - I logged in the system in german
    - I performed the copy in german
    - the copied form had DE as language
    Now I can see the texts of the copied form, independently from the logon language.
    Regards,
    Gaetano

  • Attaching smartforms and print prog to invoice

    hi
    ive developed a smartform and a print program.
    da program has a selection screen dat asks user for doc number(vbeln).
    it den displays data in da smartform.
    now ive to attach it to va02.
    wen i attach it using v/40 output type(RD000) program name : zinvoice and pdf/smartform: zinv .and try to get print preview using vf03 da preview doesnt appear.also wen i click on print it shows message "output cannot be issued".
    can ny1 suggest wat da problem is and how to resolve it...
    points 'll b rewarded...
    rgds
    Message was edited by:
            abapuser

    1.
    How did u assigned the output type in NACE.
    2.
    did u go through the form routines of data/transfer copy controls in VOFM .
    if its VA02 and VF02 then VTFA has to be used for the same in setting the output type .
    if option 2 is not ur case then check with ur functional consultant as to which requirement this output is configured in the nace and in procedures.
    o/p cannot be issued is not able to pick the output type for the form and the print program.
    This output type has to be configured in NACE first of all.
    Then to test the invoice enable this output type for that vbeln number in GOTo-_header->output -> and enable the output type.
    regards,
    vijay

  • What are Smartforms and SAPscripts?

    Hey Everyone,
    Where do we use Smartforms and SAPscripts...how to we create these...if u have step step procedures that will be helpful...
    Thanks in Advance...
    Cheers:
    Jim

    Smartform is client indep.
    Scripts is client dependent.
    Smartform will generate function module.
    Script will not.
    Tcode for scripts is se71
    Tcode for smartforms is smartforms
    go to sap library ............ their u can find the step by step procedure............
    SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
    SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can configure forms with data from an SAP System for the relevant business processes.
    Execute transaction SMARTFORMS to start SAP Smart Forms.
    Key Benefits of SAP Smart Forms:
    SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time. You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
    To make changes, use Drag & Drop, Copy & Paste, and select different attributes. These actions do not include writing of coding lines or using a Script language.
    Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one. For Web publishing, the system provides a generated XML output of the processed form. Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
    To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
    You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
    You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
    SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
    SAP Smart Forms also support postage optimizing.
    Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
    Example Forms Available in Standard SAP R/3
    SF_EXAMPLE_01
    Simple example; invoice with table output of flight booking for one customer
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    SF_EXAMPLE_03
    Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request.
    Also check this step by step procedure to create SMARTFORMS:
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Look through for example these links for details about Smart Forms:
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://esnips.com/doc/7e67af5c-6188-4252-8613-41816756d560/from-sappres.pdf
    http://esnips.com/doc/58566115-54a4-4405-8872-8de952e245e5/smartform.pdf
    http://esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartforms.doc
    http://esnips.com/doc/97acb00a-e513-4611-91f0-c626f460bfc5/Smart_Form_Overview.pdf
    http://esnips.com/doc/77a981b9-8fe3-4fbb-8101-67745c1fe60c/SMART-FORMS_shail.ppt
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sapgenie.com/abap/smartforms_described.htm
    http://www.sapgenie.com/abap/smartforms_detail.htm
    http://www.sapgenie.com/abap/smartforms_sapscript.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html

  • Smart form and Jet form

    Hi,
    Please let me know the difference betweeen Smart form and jet form and in which scenarios we use them.
    thanks

    HI,
    <b>
    Smart forms</b>
    <u>https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/formPrinting-SAPscript,Smartforms&</u>
    Smartforms: Frequently Asked Questions
    What are the differences between SAP Scripts and Smartforms?
    How can I insert symbols in Smartforms?
    I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD?
    How can I make the Smartforms to choose a printer name by default?
    How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters?
    How can I display the total number of pages in Smartforms?
    How can I display the total number of pages in Smartforms?
    I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.
    What are the various text formatting options in Smartforms?
    How can I provide a background shading to the table?
    Where can I provide the input parameters to the smartform?
    Where can I define my own global types for the smartform?
    I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined?
    I have created a table node for display. Where can I check the condition which must satisfy to display the table?
    How can I define Page Protect in Smartforms?
    What is the difference between Template and Table in Smartforms?
    Where can I define the paragraph and character format for the smartforms?
    What are the differences between SAP Scripts and Smartforms?
    SAP Scripts are client dependent whereas Smartforms are client independent.
    SAP Scripts require a driver program to display the output whereas in smartforms the form routines can be written so that it is standalone.
    An integrated Form Builder helps to design Smartforms more easily than SAP Scripts
    An Table Painter and Smartstyles to assist in building up the smartforms
    On activation a function module is generated for Smartforms
    It is possible to create a Smartform without a main window
    Smartforms generates XML output which can be viewed through the web
    Multiple page formats is possible in smartforms
    How can I insert symbols in Smartforms?
    Select the Text node.
    Change Editor (Click the button above Check near the Editor)
    Go to menu Include->Characters->SAP Symbols
    Choose the SAP symbol that you want to insert.
    I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD?
    The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.
    DATA: fm_name TYPE rs38l_fnam.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = 'ZSMARTFORM'
      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.
    CALL FUNCTION fm_name
    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.How can I make the Smartforms to choose a printer name by default?
    In the CALL FUNCTION of the Smartform Function Module, set the output options parameter to set the printer name.
    The output options is of the type SSFCOMPOP which contains the field TDDEST. Set the TDDEST field to your default printer name.
    How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters?
    In the SSF_OPEN function module,
    Set the OUTPUT OPTIONS paramter TDDEST to your printer name.
    Set the CONTROL PARAMETERS and control parameters as shown below,
    control-preview = 'X'.
    control-no_open = 'X'.
    control-no_close = 'X'.
    control-no_dialog = 'X'.
    control-device = 'PRINTER'.
    control_parameters-no_dialog = 'X'.
    control_parameters-no_open = 'X'.
    control_parameters-no_close = 'X'.
    OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    CALL FUNCTION 'SSF_OPEN'
      EXPORTING
        output_options     = output_options
        control_parameters = control
        user_settings      = ' '
      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.How can I display the total number of pages in Smartforms?
    Use SFSY-FORMPAGES to display the total number of pages in the Smartforms
    &SFSY-PAGE& Current page number
    &SFSY-FORMPAGE& Total number of pages in the currently formatted layout set
    &SFSY-JOBPAGE& Total number of pages in the currently formatted print request
    &SFSY-COPYCOUNT& Original-1,1st copy-2
    &SFSY-DATE& Date
    &SFSY-TIME& Time
    &SFSY-USERNAME& Username
    I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.
    There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)&
    What are the various text formatting options in Smartforms?
    &symbol(Z)& Omit Leading Zeros
    &symbol(S)& Omit Leading Sign
    &symbol(<)& Display Leading Sign to the Left
    &symbol(>)& Display Leading Sign to the Right
    &symbol(C)& Compress Spaces
    &symbol(.N)& Display upto N decimal places
    &symbol(T)& Omit thousands separator
    &symbol(R)& Right justified
    &symbol(I)& Suppress output of the initial value
    How can I provide a background shading to the table?
    In the Table Painter, you can specify the color and shading for the table lines.
    Where can I provide the input parameters to the smartform?
    The input parameters for the smartform can be defined in Global Settings->Form Interface.
    The Associated Type must be defined in the ABAP Dictionary.
    Where can I define my own global types for the smartform?
    The global types(within the smartform) can be defined in Global Settings->Global Definitions->Types
    The types defined here will be global through the entire smartform.
    Also the form routines can be defined Global Settings->Global Definitions->Form Routines
    I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined?
    Whenever using the global variables in the Program Lines, enter the variable name in Input Parameters if you are going to use(read) the variable. If you are going to both read/write the variable value enter the same in Output Parameters.
    I have created a table node for display. Where can I check the condition which must satisfy to display the table?
    The conditions can be defined in the Conditions tab. In smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node.
    How can I define Page Protect in Smartforms?
    To define Page Protect for a node go to the Output options and check the Page Protection checkbox.
    What is the difference between Template and Table in Smartforms?
    The Template contains a fixed number of rows and columns, where the output is fixed.
    The Table can have variable number of rows
    Where can I define the paragraph and character format for the smartforms?
    The paragraph and character format for the smartforms can be defined in the transaction SMARTSTYLES
    Mohan
    Award points if it adds information.

  • Module Pool and Smart Form

    Can anybody Provide me good step by step procedure for module pool and smart for programming with screenshot.
    my email Id is [email protected]

    Hi,
    A module pool is a collection of screens, flow logic, menu bars and ABAP code that you use to build an application. Typically the transaction code that calls the application will refer to the module pool and the initial screen number.
    -->What are the requirements a dialog program must fulfill ?
    • A dialog program must fulfill the following requirements
    . a user friendly user interface
    . format and consistency checks for the data entered by the user
    . easy correction of input errors
    . access to data by storing it in the database.
    What are the basic components of dialog program ?
    • Screens (Dynpros)
    Each dialog in an SAP system is controlled by dynpros. A Dynpro consists of a screen and its flow logic and controls exactly one dialog step.
    • ABAP/4 module pool
    Each dynpro refers to exactly one ABAP/4 dialog program. Such a dialog program is also called a module pool, since it consists of interactive modules.
    What is a dynpro ? What are its components ?
    • A dynpro (DYnamic PROgram) consists of a screen and its flow logic and controls exactly
    one dialog step.
    - The different components of the dynpro are:
    Flow logic: Calls of the ABAP/4 modules for a screen
    Screen layout: Positions of the texts, fields, pushbuttons, and so on for a screen
    Screen attributes: Number of the screen, number of the subsequent screen, and others
    Field attributes: Definition of the attributes of the individual fields on a screen
    What is screen flow logic? What are the selections in it? Explain PAI and PBO?
    Ans - Screen flow logic contains the procedural part of a screen. The screen flow logic is like an ABAP program in that it serves as a container for processing blocks. There are four event blocks, each of which is introduced with the screen keyword PROCESS:
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
    PROCESS ON HELP-REQUEST.
    PROCESS ON VALUE-REQUEST.
    Selections are performed in PAI.
    PROCESS BEFORE OUTPUT (PBO) is automatically triggered after the PAI processing of the previous screen and before the current screen is displayed. You can program the PBO processing of the screen in this block. At the end of the PBO processing, the screen is displayed.
    PROCESS AFTER INPUT (PAI) is triggered when the user chooses a function on the screen. You can program the PAI processing of the screen in this block. At the end of the PAI.
    processing, the system either calls the next screen or carries on processing at the point from which the screen was called.
    PROCESS ON HELP-REQUEST (POH) and PROCESS ON VALUE-REQUEST (POV) are triggered when the user requests field help (F1) or possible values help (F4) respectively. You can program the appropriate coding in the corresponding event blocks. At the end of processing, the system carries on processing the current screen.
    step by step process of dialog programing:
    Firstly, you can go to Tcode SE80 and here create a package.
    On that package name right click and select program.
    Then choose program type modulepool program.
    Similarly, you can create screen and then select layout and drag and drop labels and pushbuttons as per your requirements.. Then double click on th push buttons.You will see property window and there we will find FCTCODE and there type the names e.g suppose you want to
    display then typy on the fctcode Display or any name as you wish.
    After that save and activate it. and then close the window.
    And then go back to the intial screen .
    And then click Flow logic button and then uncomment the statement
    module status_1000 PBO block and then doible click on status_1000
    save and activate and then go back and then PAI block uncomment the statement module status_1000 and the dobule click on status_1000.
    step by step process of creating smartforms:
    1.        What is Smartforms?
    Smartforms is a tool to create and maintain forms for mass printing in SAP Systems. Just like sapscripts, for Smart
    forms print program is used to create the output internal table which in turn is thrown to the smart form where the
    field values are displayed. The output medium for Smartforms support printer, fax, e-mail, or the Internet.
    Transaction Code: SMARTFORMS
    To print a form the program for the data retrieval and a Smartform that contains the entire form logic is required. As
    these two are separate one should adapt the Smartform if changes to the form logic are necessary. The application
    program passes the data via a function module interface to the Smartform. When activating the Smartform the system
    automatically generates the function module.
    The architecture of the smart form is given below:
    Creating Forms Using SAP Smart Forms
    When creating a form one must:
    1.      Retrieve the application data
    2.      Describe the form
    3.      Pass the application data to the form
    Example: Create Smartform for printing Purchase order.
    Retrieving the application data (Purchase Order information):
    Write an ABAP program (Print Program) to retrieve data or include a retrieval routine into the application. This
    code consists of statements that select data from databases according to certain selection criteria. Store the
    retrieved data in internal tables, structures or variables and transfer it to the form in one step.
    SAP has already provided with the Print Program (/SMB40/FM06P) for Purchase Order. Based on the business
    requirement, this Print Program can be copied and modified to get the required data and transfer to Smartform.
    Describing the Form:
    The user defines the form using a Smartform. Use the tools of the form builder as listed below:
    1.        Use the form painter to position the windows, graphics and addresses on a page.
    2.        Use the PC editor to write the texts.
    3.        Use the table painter to format the tables.
    The flow control is used to print the pages and elements.
    Form Logic (Introduction)
    In the form builder one can describe a Smartform by a set of nodes. To do this, one can build up a tree structure on
    the left side of the user interface.
    The node global settings and its three successors form attributes, form interface and global definitions always exists
    for any newly created forms.
    To describe the form logic, create the hierarchy under the node pages and windows.
    The following rules apply to control the flow of the form output.
    1.        The nodes in the tree structure are processed from top to bottom.
    2.        For each node there is a tab, this can be used to link the node to a condition. If the condition is true, the
    system processes the node. If not, it skips the node and all its successors.
    3.        One should define a next page for each page.
    The SAP form builder of the smart form consists of:
    1.        Form painter for creating the layout of the form
    2.        PC Editor for entering texts and fields into output areas
    3.        Navigation tree for maintaining the form logic
    4.        Table painter for creating templates and tables
    To define the text formats, one can use the Smart Styles.
    Style builder:
    On the left of the style builder screen consists of the predetermined nodes (header data, folder for paragraph
    formats, and folder for character formats).
    On the right one can see the maintenance screen with its tab pages. At the bottom the preview of the selected font
    can be viewed.
    Create Purchase Order Smartform
    Create a Smartform, copy the existing SAP provided purchase order Smartform to ZSFM_PURCHASEORDER for
    customizing as per business requirement.
    1. Form Settings under Global Settings node, set the parameters in Output Option:
    Page Format: Letter
    Character per Inch: 20
    Line per Inch: 6
    Style: ZSTM_SMB40_SF
    Output Format: Standard Output
    2.        Form Interface
    We can add parameters in the Import Parameters and tables in Tables tab of the form interface for the application
    data to be available for the Smartform to print.
    3. In Global definition we can define the all the global variables which can be used in Smartforms. Initialization
    can be used for initializing the variables and even for retrieving the data.
    Creating pages:
    Each form consists of one or more pages. The first page in the tree structure is the start page and the
    processing of the form starts with this page itself.
    1.        Open the context menu for existing page node and choose create®page
    2.        Enter a unique name (FIRST) for the node and a description (Page)
    3.        Determine the format (1, 2, 3...)and the mode of the page counter (Increase counter) on the general
    attributes tab
    4.        Determine the print attributes (Portrait Format) of the page on the output options
    5.        Determine a background graphic for the entire page on the background tab (Not used in PO).
    Creating windows:
    The size and position of the window can be graphically set in the form painter. There are main windows and
    secondary windows. The difference between these two is that the output in a main window can cover several
    pages.
    1.        Open the context menu for an existing page node and choose®window
    2.        Enter a name for the node (NAMEFORM) and a description (Title Window).
    3.        On the general attributes indicate type of window. NAMEFORM is secondary window.
    In similar fashion all the other windows are created and positioned as per the form design. Only one MAIN
    window is created, it is used for line items which can cover several pages.
    Positioning texts on the form
    The texts are displayed in the form using text nodes. The only exceptions are addresses.
    The predecessor node of the text node determines its use:
    Predecessor node        Used to
    Secondary window        Position text on one or more pages
    Main window        Display text in relation to other nodes in the main window, it may cover several pages
    Template         Displays texts for table cells of a static table
    Table        Display table contents
    There are three text types:
    1.        Text element : to enter new text in the PC editor
    2.        Text module : to include a text module
    3.        Include text : to include an existing SAPscript text
    Entering texts in PC editor: (TITLE)
    ·        To create a text node call the context menu for that node in the tree structure that should receive the
    text, then choose->text
    ·        Enter a unique name (TITLE) for the node and the node description (TITLE)
    ·        On the general attributes tab choose text element as text type
    ·        In the text node box choose whether the text should be started with a new paragraph or only in a new
    line
    ·        Enter the text in the PC editor. Text could be a program element like &Title& or ‘Purchase Order’. &Title&
    is a variable for which the value is assigned in Program line before the text.
    Including text modules: (TERMSCONDITION)
    Text module of the text node is used to refer to an existing text module in the system. The text modules can be
    used in two ways:
    ·        To create a text node, call the context menu for that node in the tree structure that shall contain the text
    and choose create->text under the window TERMSCONDITION.
    ·        Enter a unique name for the node (TERMSCONDITION) and a description (Terms and Condition)
    ·        On the general attributes tab select the text type text module
    ·        Enter the name of the text module in the text name field (&G_TERMS_TEXT&). &G_TERMS_TEXT& is
    used to determine the Text name dynamically in the program lines preceding the text module node.
    ·        Program Lines: GETTERMSCONDITION
    Concatenate 'ZTMM_PO_TERMS_' ZXEKKO-BUKRS
                                      INTO G_TERMS_TEXT.
    Including SAPscript texts: (HD_TXT_F01 – Order Header Text)
    The text type include text node to refer to a SAPscript text, which already exists in the system. To identify the
    text the text name, object, id and the language is needed.
    ·        To create the text node, call the context menu for that node in the tree structure that shall receive the
    text and choose create -> text under the main window.
    ·        Enter a unique name (HD_TXT_F01) for the node and the node description (Order Header Text).
    ·        On the general attributes tab choose include text as text type
    ·        Text Name - &ZEKKO-EBELN&, Text Object – EKKO, Text ID – F01, Language - &SY-LANGU&. Also check
    mark – No error if no text exists.
    Tip: Since the size of text is not known, its better to have the text in MAIN window, so that it can run to more
    than one page if required.
    Inserting addresses: (SENDER): 
    Address node is used to insert an address into the form. This guarantees that the address is formatted
    according to the postal rules of the sender country.
    ·        To create an address node , call the context menu for that node in the tree structure that one wants to
    contain the text and choose create->Address
    ·        Enter a name for the node (COMPANY_CODE_ADDRESS)  and a description (Company Code Address)
    ·        Determine the address type (Organization Address) on the general attributes tab
    ·        For organizational addresses - specify the address number, for any other - specify the person number
    and the address number. In this case we get the company code address into variable &ADDNR&, so we need
    program lines (SENDER) preceding the address text.
    ·        In the box additional addresses, attributes to specify how to display the address are maintained.
    Printing graphics: (LOGO):
    Tcode SE78 is used to import graphics into the SAP system. The transaction imports the graphics and stores it
    in the BDS (business transaction server) and then it can be displayed in the form.
    ·        To create the graphic node , call the context menu for that node in the tree structure and choose create-
    >graphic
    ·        Enter a name (LOGO) for the node and the description (Logo Graphic)
    ·        On the general attributes determine whether a colored or a black and white
    ·        On General Attributes use the fields object - GRPAHIC, id – BMAP and name - &G_LOGO& to identify the
    graphic. &G_LOGO& is variable and therefore we can print company code specific logo. Program line preceding
    the graphic is required.
    ·        Program line COMP_LOGO is used to assign the value to G_LOGO. Concatenate 'ZCOMPANY_LOGO_'
    ZXEKKO-BUKRS INTO G_LOGO. So, the name of graphic for example will be ZCOMPANY_LOGO_0202 for
    company code 0202.
    Displaying a static table (Window – INFO, Template - TEM_INFO) 
    Use node type template to display a table whose layout and size is determined before the runtime of the print
    program.
    To create a template, define a table layout to determine the cell structure for each line. The cells are used to
    display the cell structure for each line. The cells are used to display the contents of the successor nodes of the
    template node. 
    ·        Create Template under the INFO window node. Create > Template.
    The template layout is used to determine the following,
    1.        The number of lines and cells
    2.        The height of each cell
    3.        The width of each cell
    4.        The alignment of the table in the window
    5.        Whether and where to display separator lines or frames
    Use the table control on the template tab to define the layout of the lines. Each line of the template must have
    a definition.
    Use the pattern box to select the desired table pattern.
    Displaying contents in cells: (TLE_CONTACT)
    The template node defines the table layout. The successor nodes of the template         determine the data to be
    displayed in the table cells.
    In General Attributes choose Text type – Text Element. In editor, type ‘DTE         Contact’.
    In Output Options, define the output structure LINE – 5 and Column – 1.
    Similarly all other information for each cell can be filed using the text module and         address module.
    Displaying Dynamic Table (ITEM_TABLE)
    ·        Create TABLE under the MAIN window node. In DATA Tab, loop through the data internal table.
    L_XEKPO is the item table which has all the line item details.
    Define the line types based on the positioning of the text in main window. For         example: TABLE_HEADER1
    is used for positioning Header texts in the table.
    ·        Table is divided into three parts: Header, Main Area and Footer.
    ·        Header is used for printing the Header Title of the table and it at the start of the table on every page.
    ·         Main Area is used to print the line item details of the PO. Create a line (ITEM_DETAIL) of the line type
    TABLE_HEADER1. It will dynamically generate number cells based on the line type defined in the table layout.
    Name all the cells as per the usage. For each cell create the text node to display the information. For example:
    Cell VAL_MATERIAL, Text node MATNR is created which has text element - -matnr.
    ·        Footer is used for printing the information after Main Area data is printed. This can be used for Total
    printing or any other information which needs to be printed after all line items are printed. Create line
    TLE_CONTR_STP for Contractual Stipulation of the line type – LINE which has only one column. Create the
    text element to print the information.
    Special Requirement: Printing the Acknowledgement text if the order value is greater then USD 50,000.00 on
    the second copy only.
    ·        This requirement needs the modification in the print program and the Smartform.
    ·        Modification in Print Program to trigger the second copy if the order value is greater then 50K. Its
    advisable to copy the standard print program to custom Z program (Z_SMB40_FM06P), and changes should
    be made to Z program. Number of copies is passed from NAST to ls_composer_param-tdcopies in Smartforms.
    The value ls_composer_param-tdcopies is modified in the print program to 2 if the order value is greater then
    50K.
    ·        The printing of Acknowledgement Text only on second copy is achieved using the COPIES WINDOW in
    Smartforms. Define Window ACKN_COPY of the type COPIES WINDOW and Output to – Only Copies – Copies
    Differ. Also set the condition in the Condition Tab of the window – SFSY-JOBPAGES = 1, so that it only print
    on the first page of the copy.
    ·        If user selects to print 2 copies and the order value is more then 50k, program needs to print 2 sets
    meaning 4 copies. So number of copies is taken care of in Print program but again the printing of
    Acknowledgement Text should be only the Even number copy meaning Copy# 2 and 4. This achieved by using
    the program lines to determine the even copy.  SFSY-COPYCOUNT will tell us the current copy number being
    printed.
    regards,
    vineela.
    Edited by: Radha Vineela Aepuru on Mar 13, 2008 11:12 AM

  • What is the diff b/w Sap Scripts and Smart Forms

    Hi,
          Whats the diff b/w SAP Scripts and Smart Forms..
             I need the internal explanation for both Smart Forms and SAP Scripts mean when we execute what happens whether Print Program r Forms starts execution 1st  and SIMILARLY FOR SMARTFORMS WHETHER FM'S  R FORMS.
    Thanks & Regards,
    Gopi.

    Hi
    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.
    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.
    check out this link:
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Reward points if helpful.
    Regards,
    Swathi.

  • Smartforms and its internal table

    Hi All!
    From the main program, I call the FM SSF_FUNCTION_MODULE_NAME
    and later "call lf_fm_name" as below shown.
    The generated FM name gets an "internal table" in the tables parameter.
    And now how can I to treat now this internal table within smart forms?
    Please can you sequential explain the treatment. How can I acces
    these datas of this internal table in the smartforms
    reagards
    ilhan
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
        formname                 = lv_pick_formname
    *       VARIANT                  = ' '
    *       DIRECT_CALL              = ' '
      IMPORTING
        fm_name                  = lf_fm_name
       EXCEPTIONS
         no_form                  = 1
         no_function_module       = 2
         OTHERS                   = 3.
      IF sy-subrc <> 0.
        IF sy-subrc = 1.
          MESSAGE e061.
        ELSEIF sy-subrc = 2.
          MESSAGE e062.
        ELSEIF sy-subrc = 3.
          MESSAGE e063.
        ENDIF.
      ENDIF.
      CALL FUNCTION lf_fm_name
          TABLES    lt_ausgabe_data       = lt_ausgabe_data

    what ever you pass from program to smartforms you need to declare in
    GLOBAL INTERFACE -> Import parameter.(in the driver program export parameter). make sure u use the same name in the SMARTFORM GLOBAL INTERFACE - > import parameter.
    for more about smartforms go thru these link
    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
    Please check the tables TNAPR and TTXFP for Standard Smartforms.
    See the note 595812: it explain how to download the preconfigured smartforms.
    Detailed information can be accessed at the site:
    http://service.sap.com/preconfiguredforms OR
    http://service.sap.com/smb/development/preconfiguredforms.
    To download preconfigured smartform package, please:
    1. Go to http://service.sap.com/installations, select tab "download".
    2. On the right hand side screen, locate navigation tree node
    SAP Software Distribution Center->Download->Installations and Upgrades->
    Entry by Application Group.
    3. In the main window (right hand side), follow the path
    SAP Best Practices->Best Practices for mySAP All-in-One-> PRECONFIGURED
    SMART FORMS, you can find available preconfigured smartform versions.
    regards,
    Prabhu
    reward if it is helpful

  • How to change font size in smartform and set layout of smartform

    Dear abapers,
                           I want to change font size in smartform and also set the layout of smart form how can we do this.
                                                 Thank you sir.

    Hi,
    you can do it first you need to goto smartforms tcode there click on radiobutton 'Style'.
    Give any name and click on create. Right sideyou can find character format right click on it and create a node .A pop will raise gve a 2 characterlike z1 or a1 etc click on font tab gve size and font style and click on save and activate. Use this style in your smartform you can apply what ever styles created in styles you can use it in your smartform by that smartstyle name.
    When we create text in output options give your smart style name and click on general attributes . Select your text and apply the style what thse size it should be and what the font style it should be.
    Goto smartforms tcode and select formpainter in application bar set layout according to your requirement.
    Thanks,
    venkat

  • Any limitation on number of fill and print forms I can post on my website and have external users with Reader fill in, print and mail to me? (I don't need/want them to be able to fill and save data.)

    I would like to post fillable only forms to the public but not give them the option to save or email the filled in form. If they want a copy of what they've filled in, they must print it.
    I believe I can do this by just creating a fillable PDF and posting it without adding any reader extension capabilities. I also believe there is no limitation, as there is for fill and save forms as per this other post I read: Adobe Acrobat X Pro * Enable Reader users to save form data.
    My IT department is telling me they will not allow me to post fillable PDFs online due to a "license limitation" so I started researching this myself, and the above link is the only thing I've found. While that post specifically outlines the limitations on saving filled in forms, I'm really looking for something that specifically tells me that there is no limitation on fillable, non-saveable (yes, I know that's not a word...) forms.
    If anyone can provide additional information for me, I'd appreciate it. Or, if I'm completely wrong in my belief and there's a limitation either way, feel free to set me straight. I'd rather know the correct answer than be right!
    Thanks!!

    If you don't Reader-enable a document, then there are no licensing restrictions involved. Note that Reader 11 and all versions of Acrobat are able to save non-enabled forms, unlike previous versions.
    The question should not be whether a form is savable, but rather whether you used Acrobat to add usage rights to the form AND you (the licensee) plan on receiving filled-in instances (including hardcopies) of it. The simplest way is to not Reader-enable the form and convince your users to use Reader 11 (or Acrobat) if they want to save.

Maybe you are looking for