Transport request of smart form

Hello,
I need to find out the transport request associated with a smartform.Actually i need to synchronize some objects in all hte three system (dev,quality ad prod.)
I can see there are some mis match for that i need to find out transport request assocaited with smartform.
Is there any way to do that?
Thanks,
Shwets

Here is  way to find the smartform's request numbers
Goto Table E071 and pass program id - R3TR and object type  = SSFO
and object name =  smartform name.
You will get the list of all transport requests captured the given smartform.
Cheers
Manohar

Similar Messages

  • Transporting the translated smart form!

    Hi All,
    We have a template smart form for PO layout in English Language.
    Using this template we translate the smart form into different languages.
    I have done some changes in the translated smart form in t code SE63.
    When I saved it did not ask for any Transport request.
    Now I want to transport the changes to quality system.
    Please let me know how should I do that.
    Regards
    Archana

    Hello Otto,
    Thanks for your pointers.
    1) My query is not related to printing. I was aware of that forum also when I was posting the question.
    2) Thanks for reminding me that I can contribute but its should be left on my will I guess.
    In the meanwhile if you have any answer for my question you can post.
    Regards
    Archana

  • Local object to transport request for a form

    Hi,
    I have a form saved as local object and want to convert it as transport request.
    how to save this form created by se71 as a transportable object.
    thanks!

    Hi,
    I dont think this can be done through SE71.Please follow the following procedure.
    First create a new Transport request in SE01.
    Goto SE80-->Local objects
    Here right click on your object name and reassign the package to your desired package name.
    Here it will ask for the Request.Give your previously request here.
    This will assign your form to the new request you created.
    Regards
    Avinash

  • How do we write the sub routines in smart forms?

    1) How do we write the sub routines in smart forms?
    2) What is the’ form interface’ in smart forms?
    3) Write down the path for writing for select queries in smart forms?
    4) How do we put dynamic page break in smart forms?
    5) in which system field contain the total page number of all forms in the currently processed print request in smart forms?
    6) What is the name of function module used to calling smart forms?
    1)     What is the functionality of function module ‘controal_form’?
    2)     How do we print the system date in this format ’15th Jan 2008’ on scripts?
    3)     What r the various print modes available in scripts?
    4)     What is the tcode for text element?
    5)     How do we draw horizontal line in scripts?
    6)     How can we suppress the leading zeros for a field in scripts?
    7)     In which system field is used to print current no page in scripts?
    Which f.m is used to reads text in sap scripts

    1) How do we write the sub routines in smart forms?
    after opening form see global definitions
    click on that there one tab called form routines inthat you can write subroutines logic.
    You can call in program lines .
    2) What is the’ form interface’ in smart forms?
    It is an interface between program and form .
    like function module we provide import,export,tables,exceptions
    Based on import and export parameters form will display for us.
    3) Write down the path for writing for select queries in smart forms?
    On window give right click in that command->programlines
    you can write all select  statements.
    4) How do we put dynamic page break in smart forms?
    you can define break point using break-point<>. syntax.
    5) in which system field contain the total page number of all forms in the currently processed print request in smart forms?
    SFSY-PAGE
    SFSY-JOBPAGES
    6) What is the name of function module used to calling smart forms?
    SSF_FUNCTION_MODULE_NAME
    =================
    1) What is the functionality of function module ‘control_form’?
    This function module is used to insert SAPScript control commands like NEW-PAGE etc from whithin the ABAP program.
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
      COMMAND    =
    EXCEPTIONS
      UNOPENED   = 1
      OTHERS        = 3
    IF SY-SUBRC NE 0.
    MESSAGE ...
    ENDIF.
    2) How do we print the system date in this format ’15th Jan 2008’ on scripts?
    Use SET DATE MASK to change format of date display.
    3) What r the various print modes available in scripts?
    4) What is the tcode for text element?
    se91
    5) How do we draw horizontal line in scripts?
    &ULINE&
    6) How can we suppress the leading zeros for a field in scripts?
    &it_vbak-vbeln(Z)&
    7) In which system field is used to print current no page in scripts?
    &SYST-PAGE& of &SYST-FORMPAGES&
    Which f.m is used to reads text in sap scripts
    READ_TEXT functiomodule.
    Reward points

  • Copy Smart Forms from 4.6 to ERP

    Hi,
    I wonder if it is possible to transport/copy some Smart Forms from one system (4.6c) to another system (ERP).
    I thought of exporting the data from our 4.6 system, using the transport manager, and import it into the ERP system.
    Not tested so far and just wanted to get some statements or hints on how to handle this.

    Hi,
    You will not be able to download smartform in 4.6c to a local file since there is no facility provided for this 4.6c version.
    This kind of facility is only available from 4.7 version only.
    So U cannot download the smartform to a local file.
    Reward me if it is helpful answer...
    Cheers,
    Sampath.

  • Problem is transporting Smart forms---------Urgent

    Hello Guys,
    I have make some small change in smart forms. That change are reflecting in quality ckient and working OK.
    But when I am transporting the same in prod. server.the changes are not reflecting . Wehre is the problem. I have check properly no issue like Actvitation and saving.
    I have save and actvitated the form properly after that only transported in 400.
    please reply urgent .
    Regards
    Swati Namdeo

    Hi,
    Check the changes made in smartform by checking the tr rquest and also confirm the server name after the release of the request from quality
    Contact your basis guy for more information
    regards
    Shiva

  • Transporting Smart forms

    Hello,
    I would like to know if there is any special procedure to transport a samrt form?
    I know that with other ABAP objects if they are listed under the transport number
    it will get transported. I would like to know if there is any difference with smart forms other than this.
    thank you,
    Amar

    There is no difference when transporting Smartforms.
    Just be sure that you include any Smartstyles with your transport.
    Also, the first time the Smartform is issued, the FM will be generated in the new system, so you may want to go to the new system, goto Smartforms and Generate the FM.

  • How to find the existing request no for Smart form

    Hi Experts,
    plz tell me how to find the existing request no for Smart form in ABAP.
    thanks in advance.
    regards,
    radhika.

    Radhika,
    Choose Goto > Object Directory Entry> Lock Overview On the Initial screen of the "smartforms" transaction, after entering the actual smartform. This would give you the request number for the smartform.
    Regards
    Narasimhan

  • Old transport request for sap script (form)

    Hi,
    I want to find the old transport request for the sapscript(form). Just now it has been over written by the latest CTR. So i need to transport the old one.
    How to find out the old transport request.
    Thanks,

    Try giving the script name in OBJ_NAME field in table E071 and then execute and it will give you a list of all transports. You can sort it in descending and see the order of transports.
    Thanks,
    Srinivas

  • Transport Request Locks on release!!

    Hello there,
    I am facing one problem; When I create a transport request of a smart form and try releasing it, the request gets locked, thus failing the release.
    I unlock the request via transport organizer tool (SE03), but again when I try to release the request, locking repeats.
    Any solutions??
    Thanks,
    Sumit

    Hi,
    Plz. check client settings via scc4.
    And check the owner of that request also via SE01.
    Plz. let us know, are u facing this lock issue, only for this smart form only or for all other requests also??
    Note: Points will always encourage me to reply!!

  • Regarding smart forms (really urgent)

    hi,
    i am new to smartforms and i got report to make changes in the smart forms,plzz help me out as i know nothing about the smart forms by providing me it in easiest & simplest form.
    if find useful help will be deifnately rewarded.
    Edited by: ric .s on Mar 6, 2008 5:16 AM

    Hi,
    This Smartform Information I read, really helped me out.
    I think it would be of some good help to you too..
    What is SAP Smart Forms?
    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.
    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
    What Transaction to start SAP Smart Forms?
    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.
    Advantages of SAP Smart Forms
    1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
    2. Displaying table structures (dynamic framing of texts)
    3. Output of background graphics, for form design in particular the use of templates which were scanned.
    4. Colored output of texts
    5. User-friendly and integrated Form Painter for the graphical design of forms
    6. Graphical Table Painter for drawing tables
    7. Reusing Font and paragraph formats in forms (Smart Styles)
    8. Data interface in XML format (XML for Smart Forms, in short XSF)
    9. Form translation is supported by standard translation tools
    10. Flexible reuse of text modules
    11. HTML output of forms (Basis release 6.10)
    12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)
    A Simple Smartform Tutorial 
    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output). 
    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions). 
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table 
              Pages and windows
    •     First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page) 
    •     Main windows -> TABLE -> DATA
    •     In the Loop section, tick Internal table and fill in
    •     ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
               Global settings :
               Form interface
               Variable name    Type assignment   Reference type
               ITAB1               TYPE                  Table Structure
               Global definitions
               Variable name    Type assignment   Reference type
               ITAB2               TYPE                  Table Structure 
    4. To display the data in the form 
        Make used of the Table Painter and declare the Line Type in Tabstrips Table
         e.g.  HD_GEN for printing header details,
                 IT_GEN  for printing data details. 
         You have to specify the Line Type in your Text elements in the Tabstrips Output options.
          Tick the New Line and specify the Line Type for outputting the data.
          Declare your output fields in Text elements 
          Tabstrips - Output Options
          For different fonts use this Style : IDWTCERTSTYLE
          For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program 
    REPORT ZSMARTFORM. 
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by :  SAP Hints and Tips on Configuration and ABAP/4 Programming
                        http://sapr3.tripod.com
    TABLES: MKPF. 
    DATA: FM_NAME TYPE RS38L_FNAM. 
    DATA: BEGIN OF INT_MKPF OCCURS 0.
            INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF. 
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001. 
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
       MOVE-CORRESPONDING MKPF TO INT_MKPF.
       APPEND INT_MKPF. 
    ENDSELECT. 
    At the end of your program.
    Passing data to SMARTFORMS 
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZSMARTFORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        FM_NAME                  = FM_NAME
      EXCEPTIONS
        NO_FORM                  = 1
        NO_FUNCTION_MODULE       = 2
        OTHERS                   = 3. 
    if sy-subrc <> 0.
       WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif. 
    call function FM_NAME
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        GS_MKPF                    = INT_MKPF
      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.
    Additional Fonts for your SMARTFORMS 
    You can create additional fonts and style with transaction SMARTSTYLES
    This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form. 
    The character formats includes effects such as superscript, subscript, barcode and font attributes.
    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.
    FAQ on Migrating SAPscript to SmartForms
    Is it possible to migrate a SAPscript form to a Smart Form? 
    Smart Forms provides a migration tool for this purpose which migrates layout and texts of a SAPscript form to a Smart Form. It does not migrate SAPscript form logic of the print program. Using Smart Forms, this logic is described by the tree structure of the Form Builder. The effort involved in migrating it depends on the complexity of the print program. 
    Which Basis Release do I need to use SAP Smart Forms? 
    SAP Smart Forms is available as of R/3 Basis Release 4.6C. 
    I have heard that Smart Forms replaces SAPscript. What does "replace" mean? 
    It does not mean that SAPscript is removed from the Basis shipment. Even as of Basis Release 4.6C, SAPscript remains part of the SAP standard and there are no plans to remove it. Since Smart Forms is currently, and will continue to be, the tool for form maintenance for mySAP.com solutions, our further development efforts will focus on Smart Forms, not on SAPscript.
    Do we have to migrate all SAPscript forms to Smart Forms? 
    There is no point in migrating all SAPscript forms already in use. Since SAPscript can still be used and will be available in the future, there is no need to. If you plan to migrate a SAPscript form, it is recommended that you check whether benefit is worth the effort involved
    Conversion of SAPSCRIPT to SMARTFORMS
    SAP provides a conversion for SAPscript documents to SMARTforms.
    This is basically a function module, called FB_MIGRATE_FORM. You can  start this function module by hand (via SE37), or create a small ABAP which migrates all SAPscript forms automatically.
    You can also do this one-by-one in transaction SMARTFORMS, under 
    Utilities -> Migrate SAPscript form.
    You could also write a small batch program calling transaction SMARTFORMS and running the migration tool.
    SmartForms System Fields
    Within a form you can use the field string SFSY with its system fields. During form processing  the system replaces these fields with the corresponding values. The field values come from the  SAP System or are results of the processing.
    System fields of Smart Forms
    &SFSY-DATE& 
    Displays the date. You determine the display format in the user master record.
    &SFSY-TIME& 
    Displays the time of day in the form HH:MM:SS.
    &SFSY-PAGE& 
    Inserts the number of the current print page into the text. You determine the  format of the page number (for example, Arabic, numeric) in the page node. 
    &SFSY-FORMPAGES& 
    Displays the total number of pages for the currently processed form. This  allows you to include texts such as'Page x of y' into your output. 
    &SFSY-JOBPAGES& 
    Contains the total page number of all forms in the currently processed print  request. 
    &SFSY-WINDOWNAME& 
    Contains the name of the current window (string in the Window field)
    &SFSY-PAGENAME& 
    Contains the name of the current page (string in the Page field)
    &SFSY-PAGEBREAK& 
    Is set to 'X' after a page break (either automatic [Page 7] or  command-controlled [Page 46])
    &SFSY-MAINEND& 
    Is set as soon as processing of the main window on the current page ends
    &SFSY-EXCEPTION&
    Contains the name of the raised exception. You must trigger your own  exceptions, which you defined in the form interface, using the user_exception macro (syntax:  user_exception <exception name >).
    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
    Smart forms Frequently Asked Questions
    Forcing a page break within table loop
    Create a loop around the table. Put a Command node before the table in the loop that forces a NEWPAGE on whatever condition you want. Then only loop through a subset of the internal table (based on the conditions in the Command node) of the elements in the Table node. 
    Font style and Font size
    Goto Transaction SMARTSTYLES. 
    There you can create Paragraph formats etc just like in sapscript. 
    Then in your window under OUTPUT OPTIONS you include this SMARTSTYLE and use the Paragraph and character formats. 
    Line in Smartform
    Either you can use a window that takes up the width of your page and only has a height of 1 mm. 
    Then you put a frame around it (in window output options). 
    Thus you have drawn a box but it looks like a line. 
    Or you can just draw "__" accross the page and play with the fonts so that it joins each UNDER_SCORE. 
    Difference between 'forminterface' and 'global definitions' in global settings of smart forms
    The Difference is as follows. 
    To put it very simply: 
    Form Interface is where you declare what must be passed in and out of the smartform (in from the print program to the smartform and out from the smartform to the print program). 
    Global defs. is where you declare data to be used within the smartform on a global scope. 
    ie: anything you declare here can be used in any other node in the form. 
    Smartforms function module name 
    Once you have activated the smartform, go to the environment -> function module name. There you can get the name of funtion module name. 
    The key thing is the program that calls it. for instance, the invoice SMARTFORM LB_BIL_INVOICE is ran by the program RLB_INVOICE. 
    This program uses another FM to determine the name of the FM to use itself. The key thing is that when it calls this FM (using a variable to store the actual name), that the parameters match the paramters in your smartform.
    Another thing to note is that the FM name will change wherever the SF is transported to. 
    So you need to use the FM to determine the name of the SF. 
    Here is the code that can be use to determine the internal name of the function module: 
    Code: 
        if sf_label(1) <> '/'.    " need to resolve by name 
          move sf_label to externalname. 
          call function 'SSF_FUNCTION_MODULE_NAME' 
               exporting 
                    formname           = externalname 
               importing 
                    fm_name            = internalname 
               exceptions 
                    no_form            = 1 
                    no_function_module = 2 
                    others             = 3. 
          if sy-subrc <> 0. 
            message 'e427'. 
          endif. 
          move internalname to sf_label. 
        endif. 
    It checks to see if the sf_label starts with a '/', which is how the internal names start. if it does, the name has already been converted. If not, it calls the FM and converts the name. 
    You would then CALL FUNCTION sf_label.
    Smartforms FAQ Part Two
    Smartforms output difference
    Problem with Smartforms: in a certain form for two differently configured printers, there seem to be a difference in the output of characters per inch (the distance between characters which gives a layout problem - text in two lines instead of one.                                      It happens when the two printers having different Printer Controls' if you go to SPAD Menu (Spool Administrator Menu) you can see the difference in the Printer Control and if you make the Printer control setting for both the printers as same. then it will be ok. and also u have to check what is the device type used for both the output devices. 
      SmartForms Output to PDF
    There is a way to download smartform in PDF format.
    Please do the following:
    1. Print the smartform to the spool.
    2. Note the spool number.
    3. Download a PDF file (Acrobat Reader) version of the spool by running Program RSTXPDFT4 and entering the noted spool number.
      SmartForm Doublesided printing question  Your customer wants your PO SmartForm to be able to print "Terms and Conditinos" on the back side of each page. They don't want to purchase pre-printed forms with the company's logo on the front and terms & conditions on the back. Now this presents an interesting problem. 
    Has anyone else ever had a request like this? If for example there was a 3 page PO to be printed,  they want 3 pieces of paper, the front side of each to containe the PO information (page 1, 2, and 3) and the back side of each piece of paper to containg the static "Terms & Conditions" information. 
    Anyone have a clue how to force this out? 
    Easy - page FRONT lists page CONTACTS as next page and CONTACTS lists FRONT as next page. Since CONTACTS does not contain a MAIN window, it will print the contacts info and then continue on to FRONT for the rest of the main items. Additionally, set print mode on FRONT to D (duplex) and set CONTACTS to 'blank' (for both resource name and print mode - this is the only way to get to the back of the page). 
      Transport Smart Forms
    How does one transport SMARTFORM? SE01?  
    How do you make sure that both, the SMARTFORM & it's function module gets transported? Or does the FM with same name gets generated automatically in the transported client? 
    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. 
      Smartforms: protect lines in main window.
    How to protect lines in the main window from splitting between pages? 
    It was easy with SAPscript, but how to do it with SF's.   For 4.7 version if you are using tables, there are two options for protection against line break: 
    - You can protect a line type against page break.
    - You can protect several table lines against page break for output in the main area.
    Protection against page break for line types 
    - Double-click on your table node and choose the Table tab page. 
    - Switch to the detail view by choosing the Details pushbutton. 
    - Set the Protection against page break checkbox in the table for the relevant line type.  Table lines that use this line type are output on one page. 
    Protection against page break for several table lines 
    - Expand the main area of your table node in the navigation tree. 
    - Insert a file node for the table lines to be protected in the main area. 
    - If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file using Drag&Drop. Otherwise, create the table lines as subnodes of the file. 
    - Choose the Output Options tab page of the file node and set the Page Protection option.   All table lines that are in the file with the Page Protection option set are output on one page. 
    Regards,
    Rohini.

  • Find the translation of smart form and script

    Hi, I am new in this forum. 30.04.2009
    1.) I have to translate a smart form from German to english and to hungry. I use SE63 translate the text. The elements get a new name with the language in the name. I activate it.
    In the formula at the form attributes -> translate -> in all languages
    I put it in a transport, but where they are??? I can see it there are with the name in the Formula.
    I can not find the translation.
    2.) I must change the formula, I must translate it again? I use SE63. I don't find the
    translation of the formula. The same like oben.
    I hope you can help me.
    With best regards
    Heinz

    Hi Heinz,
    1) You do not see the translation of the SmartForm in the TP request. The idea is that it will get transported with all the associated texts from SE63.
    2) You cannot translate texts that only have variables (&abc& elements) in them. The idea is that they will remain the same in whichever language you will use.So, changing the formula in the original language means it will be changed in all the languages.
    But, if you have a row something like: Material &matnr& produced in &country&, this row will appear in SE63 and you will have to translate it because it contains texts outside of variables.
    Regards,
    George

  • Not allow anybody change SAP Smart Forms

    Hi expert,
    I design some Smart Forms and now i want to protect it and only me allow change that.( I don't allow anybody change my own smart form)
    please guide me the way to do that.
    Thanks & best regards,
    Dungnv.

    Thanks,
    if put it in transport request then not change on another client.
    i have aready know the way other lock SF.
    Thanks so much,
    Dungnv

  • Assign transport request to translations in smartforms

    hi all,
    i have created a smart form in eight different languages and trying to assign it to one transport request.
    how can i assign different translations of the same smart forms to only one request.
    Regards,
    Rajat magoo

    Hi
    GIve the same tranport no: every time you save.
    Regards
    Jyo

  • Smart form   out put  into PDF ????

    How to download into PDF file  after the execute Smart form out put ????

    hi,
    pls try this code.
    *& Report : ZPDF_FORMAT
    *& Description : Conversion of Purchase Order into PDF format
    *& used in the workflow (Do Not Change or Delete).
    REPORT zpdf .
    *& Tables used
    TABLES: nast, tsp01, t024, spop, lfa1, tnapr.
    *& Data declaration
    DATA: spoolno LIKE tsp01-rqident.
    DATA: rcode LIKE sy-subrc.
    *data: doc_auth like zoutput-ztag.
    DATA: cancel.
    DATA: pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA: numbytes TYPE i,
    pdfspoolid LIKE tsp01-rqident,
    jobname LIKE tbtcjob-jobname,
    jobcount LIKE tbtcjob-jobcount,
    is_otf.
    DATA: client LIKE tst01-dclient,
    name LIKE tst01-dname,
    objtype LIKE rststype-type,
    type LIKE rststype-type.
    DATA: dir_loc(3).
    DATA: t_docno LIKE vbak-vbeln..
    DATA: spoolreq1 LIKE tsp01sys.
    DATA: spoolreq LIKE rsporq OCCURS 0 WITH HEADER LINE.
    DATA: t_frgke LIKE ekko-frgke.
    DATA: okcode(10),
    flag,
    t_ekgrp LIKE ekko-ekgrp,
    t_lifnr LIKE ekko-lifnr,
    s_mail.
    Data Declartion for mailing system - Start.
    DATA: objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
    DATA: objhead LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA: objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA: objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA: reclist1 LIKE somlreci1 OCCURS 500 WITH HEADER LINE.
    DATA: reclist LIKE somlreci1 OCCURS 500 WITH HEADER LINE.
    DATA: itab LIKE somlreci1 OCCURS 50 WITH HEADER LINE."RKU 220802
    DATA: doc_chng LIKE sodocchgi1.
    DATA: BEGIN OF bdcdata OCCURS 0.
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdcdata.
    DATA: tab_lines LIKE sy-tabix.
    DATA: verkf LIKE ekko-verkf.
    DATA: bemail(250), vemail(250).
    Data acceptance
    SELECTION-SCREEN BEGIN OF BLOCK blk0_input WITH FRAME .
    PARAMETERS: docno LIKE ekko-ebeln OBLIGATORY LOWER CASE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK blk0_input.
    Initialisation
    *initialization.
    Screen Parameters Validation
    *at selection-screen.
    AT SELECTION-SCREEN.
    SELECT SINGLE frgke INTO t_frgke FROM ekko
    WHERE ebeln = docno
    AND frgke = 'R'.
    IF sy-subrc <> 0.
    MESSAGE 'DOCUMENT NOT RELEASED' TYPE 'E'.
    ENDIF.
    Execution Part
    START-OF-SELECTION.
    For PO related operation
    Dislay Buyer Group, Name and Email id
    SELECT SINGLE
    ekgrp
    lifnr
    verkf
    INTO (t_ekgrp, t_lifnr, verkf)
    FROM ekko
    WHERE ekko~mandt = sy-mandt
    AND ebeln = docno.
    IF sy-subrc = 0.
    SELECT SINGLE * FROM lfa1
    WHERE lfa1~mandt = sy-mandt
    AND lifnr = t_lifnr.
    ENDIF.
    Get message status from NAST or assign msg status NAST stru
    Pass the message status and get spool data
    PERFORM check_output_create_spool.
    IF rcode NE 0.
    IF rcode = 9.
    message s185 with text-e04.
    ELSE.
    message s185 with text-e01.
    ENDIF.
    EXIT.
    ENDIF.
    find the spool
    PERFORM find_spool_request_id.
    IF sy-subrc <> 0.
    message s185 with text-003.
    EXIT.
    ENDIF.
    READ TABLE spoolreq
    WITH KEY rq0name = nast-dsnam
    rq1name = 'LP01'
    rqclient = '800'
    rq2name = sy-uname
    rqowner = sy-uname.
    IF sy-subrc <> 0.
    CASE sy-subrc.
    WHEN 1.
    message s185 with text-e03.
    WHEN OTHERS.
    message s185 with text-e02.
    ENDCASE.
    EXIT.
    ENDIF.
    spoolno = spoolreq-rqident.
    Convert SPOOL job to PDF
    PERFORM convert_spool_to_pdf.
    Send through mail
    PERFORM assign_data_4_mail.
    PERFORM send_mail_with_attachment.
    Delete created spool request
    spoolreq1-rqident = spoolno.
    PERFORM delete_spool_job.
    *& Form check_output_create_spool
    text
    --> p1 text
    <-- p2 text
    FORM check_output_create_spool.
    SELECT SINGLE * FROM nast WHERE objky = docno
    AND kappl = 'EF'
    AND kschl = 'NEU'
    AND aktiv = space
    AND nacha = '1'.
    IF sy-subrc EQ 0.
    COUNT = COUNT + 1.
    PERFORM mssage_status_field_value.
    nast-vsztp = '4'.
    PERFORM einzelnachricht_dialog(rsnast00) USING rcode.
    ELSE.
    CLEAR nast-uhrvr.
    CLEAR nast-cmfpnr.
    CLEAR nast-datvr.
    PERFORM mssage_status_field_value.
    nast-vsztp = '4'.
    PERFORM einzelnachricht_dialog(rsnast00) USING rcode.
    else.
    rcode = 9.
    ENDIF.
    ENDFORM. " check_output_create_spool
    *& Form mssage_status_field_value
    text
    --> p1 text
    <-- p2 text
    FORM mssage_status_field_value .
    nast-mandt = '800'.
    nast-kappl = 'EF'.
    nast-kschl = 'NEU'.
    nast-objky = docno.
    nast-ldest = 'LP01'.
    nast-anzal = 1.
    nast-dimme = 'X'.
    nast-delet = 'X'.
    nast-nacha = '1'.
    nast-vsztp = '2'.
    nast-spras = 'E'.
    nast-vstat = '0'.
    nast-manue = 'X'.
    nast-erdat = sy-datum.
    nast-eruhr = sy-uzeit.
    nast-usnam = sy-uname.
    nast-tdreceiver = sy-uname.
    concatenate sy-uzeit+2(4) 'PDF' into nast-dsnam.
    ENDFORM. " mssage_status_field_value
    *& Form find_spool_request_id
    text
    --> p1 text
    <-- p2 text
    FORM find_spool_request_id.
    CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
    EXPORTING
    allclients = '800'
    authority = ' '
    datatype = '*'
    has_output_requests = '*'
    rq0name = nast-dsnam "'*'
    rq1name = '*'
    rq2name = '*'
    rqdest = 'LP01'
    rqident = 0
    rqowner = sy-uname
    TABLES
    spoolrequests = spoolreq
    EXCEPTIONS
    no_permission = 1
    OTHERS = 2.
    ENDFORM. " find_spool_request_id
    *& Form convert_spool_to_pdf
    text
    --> p1 text
    <-- p2 text
    FORM convert_spool_to_pdf.
    SELECT SINGLE * FROM tsp01 WHERE rqident = spoolno.
    IF sy-subrc <> 0.
    WRITE: / 'Spool order does not exist'
    COLOR COL_NEGATIVE.
    EXIT.
    ENDIF.
    client = tsp01-rqclient.
    name = tsp01-rqo1name.
    CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
    EXPORTING
    authority = 'SP01'
    client = client
    name = name
    part = 1
    IMPORTING
    type = type
    objtype = objtype
    EXCEPTIONS
    fb_error = 1
    fb_rsts_other = 2
    no_object = 3
    no_permission = 4.
    IF objtype(3) = 'OTF'.
    is_otf = 'X'.
    ELSE.
    is_otf = space.
    ENDIF.
    IF is_otf = 'X'.
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = spoolno
    no_dialog = ' '
    IMPORTING
    pdf_bytecount = numbytes
    pdf_spoolid = pdfspoolid
    btc_jobname = jobname
    btc_jobcount = jobcount
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    err_no_spooljob = 2
    err_no_permission = 3
    err_conv_not_possible = 4
    err_bad_dstdevice = 5
    user_cancelled = 6
    err_spoolerror = 7
    err_temseerror = 8
    err_btcjob_open_failed = 9
    err_btcjob_submit_failed = 10
    err_btcjob_close_failed = 11.
    if sy-subrc <> 0.
    case sy-subrc.
    when 1.
    write: / text-001 color col_positive.
    when 2.
    write: / text-002 color col_negative.
    exit.
    when 3.
    write: / text-003 color col_negative.
    exit.
    when 4.
    write: / text-004 color col_negative.
    exit.
    when others.
    write: / text-005 color col_negative.
    exit.
    endcase.
    endif.
    ELSE.
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = spoolno
    no_dialog = ' '
    DST_DEVICE =
    PDF_DESTINATION =
    IMPORTING
    pdf_bytecount = numbytes
    pdf_spoolid = pdfspoolid
    LIST_PAGECOUNT =
    btc_jobname = jobname
    btc_jobcount = jobcount
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_abap_spooljob = 1
    err_no_spooljob = 2
    err_no_permission = 3
    err_conv_not_possible = 4
    err_bad_destdevice = 5
    user_cancelled = 6
    err_spoolerror = 7
    err_temseerror = 8
    err_btcjob_open_failed = 9
    err_btcjob_submit_failed = 10
    err_btcjob_close_failed = 11.
    case sy-subrc.
    when 0.
    *write: / 'Funktion CONVERT_ABAPSPOOLJOB_2_PDF erfolgreich
    *(successful)'.
    color col_positive.
    when 1.
    write: / text-001 color col_positive.
    when 2.
    write: / text-002 color col_negative.
    exit.
    when 3.
    write: / text-003 color col_negative.
    exit.
    when 4.
    write: / text-004 color col_negative.
    exit.
    when others.
    write: / text-005 color col_negative.
    exit.
    endcase.
    ENDIF.
    ENDFORM. " convert_spool_to_pdf
    *& Form delete_spool_job
    text
    --> p1 text
    <-- p2 text
    FORM delete_spool_job .
    CALL FUNCTION 'RSPO_IDELETE_SPOOLREQ'
    EXPORTING
    spoolreq = spoolreq1
    IMPORTING
    RC =
    STATUS =
    EXCEPTIONS
    error = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " delete_spool_job
    *& Form ASSIGN_DATA_4_MAIL
    text
    --> p1 text
    <-- p2 text
    FORM assign_data_4_mail .
    Text content of the mail
    move 'Purchase order: ' to objtxt.
    append objtxt.
    move verkf to objtxt.
    append objtxt.
    move lfa1-name1 to objtxt.
    append objtxt.
    concatenate lfa1-ort01 lfa1-pstlz
    into objtxt separated by space.
    append objtxt.
    clear: objtxt.
    append objtxt.
    append objtxt.
    CLEAR objtxt.
    CONCATENATE 'Purchase Order - ' docno
    ' has been released.'
    INTO objtxt SEPARATED BY space.
    APPEND objtxt.
    clear: objtxt.
    append objtxt.
    append objtxt.
    MOVE ' ' TO objtxt.
    APPEND objtxt.
    clear: objtxt.
    append objtxt.
    append objtxt.
    concatenate 'Note:- This is an automatic mail sender.'
    ' Please do not reply to this mail ID.'
    into objtxt.
    append objtxt.
    concatenate
    ' Any query, please send the mail to the respective buyer'''
    's mail id.' into objtxt.
    append objtxt.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
    input = docno
    IMPORTING
    output = docno.
    TLINE format will be coverted as 255 char foramt
    CALL FUNCTION 'QCE1_CONVERT'
    TABLES
    t_source_tab = pdf
    t_target_tab = objbin
    EXCEPTIONS
    convert_not_possible = 1
    OTHERS = 2.
    DESCRIBE TABLE objtxt LINES tab_lines.
    creation of the entry for the compressed document
    CLEAR objpack.
    objpack-transf_bin = ''.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'RAW'.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    APPEND objpack.
    creation of the entry for the Attachemnt
    DESCRIBE TABLE objbin LINES tab_lines.
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 1.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'PDF'.
    CONCATENATE docno '.PDF' INTO objpack-obj_name.
    objpack-obj_descr = objpack-obj_name.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    APPEND objpack.
    For Object Header
    CONCATENATE docno '.PDF' INTO objhead.
    APPEND objhead.
    doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    CONCATENATE 'Purchase Order - ' docno ' has been released'
    INTO doc_chng-obj_descr.
    doc_chng-obj_prio = 1.
    recipient Details
    CLEAR reclist1.
    CLEAR reclist.
    REFRESH reclist1.
    REFRESH reclist.
    SELECT SINGLE * FROM t024
    WHERE t024~mandt = sy-mandt
    AND ekgrp = t_ekgrp.
    reclist1-receiver = t024-smtp_addr.
    reclist1-rec_type = 'U'.
    reclist1-com_type = 'INT'.
    reclist1-receiver = '[email protected]'.
    modify table reclist transporting rec_type receiver COM_TYPE .
    where rec_type is initial.
    APPEND reclist1 TO reclist.
    ENDFORM. " ASSIGN_DATA_4_MAIL
    *& Form send_mail_with_attachment
    text
    --> p1 text
    <-- p2 text
    FORM send_mail_with_attachment.
    sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    receivers = reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    OTHERS = 99.
    CASE sy-subrc.
    WHEN 0.
    PERFORM flush_mail.
    message 'Mail sent successfully' type 'I'.
    when 1.
    message 'No authorization for sending to the specified number'
    *type 'E'.
    when 2.
    message 'Document could not be sent to any recipient' type 'E'.
    when 4.
    message 'No send authorization' type 'E'.
    when others.
    message 'Error occurred while sending' type 'E'.
    ENDCASE.
    ENDFORM. " send_mail_with_attachment
    Start new screen *
    FORM bdc_dynpro USING program dynpro.
    CLEAR bdcdata.
    bdcdata-program = program.
    bdcdata-dynpro = dynpro.
    bdcdata-dynbegin = 'X'.
    APPEND bdcdata.
    ENDFORM. "bdc_dynpro
    Insert field *
    FORM bdc_field USING fnam fval.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
    ENDFORM. "bdc_field
    *& Form AUTOMATE
    text
    --> p1 text
    <-- p2 text
    FORM flush_mail .
    PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=PDIA'.
    PERFORM bdc_dynpro USING 'SAPLSPO4' '0300'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=FURT'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'SVALD-VALUE(01)'.
    PERFORM bdc_field USING 'SVALD-VALUE(01)'
    'int'.
    PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=BACK'.
    PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=BACK'.
    CALL TRANSACTION 'SCOT' USING bdcdata
    MODE 'N'
    UPDATE 'S'.
    ENDFORM. " AUTOMATE
    regards,
    Latheesh

Maybe you are looking for

  • MobileMe data correct - want to sync to iCal

    Hi All, I'm having real problems on what seems like a fundamental requirement. I have setup MobileME and this is great, all my contacts are there and this syncs seamlessly with my iPhone - both ways. However, I have a iMac 24 and a MacBook Pro - I ca

  • IP_FOLLOWUP for filling line item for complaint followup

    Hi All, I am using method IP_FOLLOW in the main window implementation class to fill the line items which i am getting from ECC into itab IT_LINESITEM now i need to fill the same at the line item level in the complaint created i have a parameter iv_co

  • How to run RSWF_CATID in XI post install

    Hello, I am in step for SAP XI customizin gin installation guide. I could not able to run RSWF_CATID in se38. Can anybosy has idea how to run this and what is the purpose of it. Thanks, Srinivas

  • Why does the homepage that i setup firefox with doesn´t open???

    Hi, I have setup my firefox homepage with my igoogle page, and she always opened everytime i opened firefox, but suddenly she stopped open, like it should! Why??I tryed to setup my homepage with another page, the firefox homepage and another ones, bu

  • Javac trouble

    I have searched the forums and have found others with my problem but the solutions are not helping me with my problem. I am new to Java and am trying to use "Learning Java 3rd Edition" by Patrick Niemeyer & Jonathan Knudsen. The book recomends we lea