Displaying Image in Smart form

Hello CRM Gurus,
                 I am getting the image Data, Is there any method or function module to dispaly image in smart form.......... with out Graphich Window.....
Thanks,
Feroz.

Hi Feroz,
Use FM SSFCOMP_PRINT_GRAPHIC
Please refer to following Code template:
CALL FUNCTION 'SSFCOMP_PRINT_GRAPHIC'
     EXPORTING  BM_NAME           = %GRAPHICKEY-TDNAME
                BM_OBJECT         = %GRAPHICKEY-TDOBJECT
                BM_ID             = %GRAPHICKEY-TDID
                BM_TYPE           = %GRAPHICKEY-TDBTYPE
                BM_RESIDENT       = ' '
                BM_RELMODE        = 'W'
                BM_ALIGNMENT      = 'L'
                BM_MARGIN         = '0.00'
                BM_UMARGIN        = 'CM'
                BM_VALIGNMENT     = 'C'
                NAME              = 'Z_LOGO'
     EXCEPTIONS NON_MAIN_OVERFLOW = 1
                OTHERS            = 2.
Best Regards,
Pratik Patel
Reward with point it is of any use to you!

Similar Messages

  • Display Image in a Form

    Hey guys,
    Had a question regarding displaying an image in a form. In the page, User enters all the details in the form and should be able to upload an image file
    and also display a small size of the image uploaded in the same page.
    Thank you for your help, really appreciate it
    Jesh

    Roel,
    I have tried this example, but when I want to resize the image with the help of the link given at the end
    Note: To modify the display attributes of the image (i.e. to make it smaller), you need to use the programmic way of including images. See the documentation at (http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#CHDICGDA)
    this link to modify the image doesnt work, it says Error Page.
    Any Suggestions ? ? ?
    Thank You
    Jesh

  • Display image in Smart camera web interface

    Hi!
    I need some assistance with LV-RT. 
    What I have succeeded is to enalble the web server on NI 17XX camera and successfully displayed a VI with Image Display on it. I thikn I got the hang of it. 
    What I would like to know is there another way to display images on the camera web page. I really do not need the whole VI up there just an image and a string with serial number. One way I know would work is to write an image file to the system memory and then embed that image to the web page, but I am not sure that is the best solution as writing process takes time and it is not recommended to write too often to the program memory (am I right?).
    So, is there some way to assign some object to say a memory bank and display it (without having to install the runtime maybe) on the page?
    Thank you for your attention,
    Mart

    Hey Mart,
    Going back to your original question; are you looking to stream images to a web page from your smart camera or simple see what your camera is seeing when you go to a particular site? Take a look at the sample project below. It is sort of a work around, but it posts an image to a web service. Essentially it snaps an image, saves it, and then posts the saved image to a web service. You will have to change the file path for the image, then build and deploy the webservice from the project view. Also, it would be beneficial to take a look at the webservice build specifications. The webbing to view the snapped image from your local machine would then be viewable from your web browsers at the address : "http://localhost/Stream_Service/ShowImag"
    Let us know if you have trouble getting this example working. Also, perhaps another visit to what your end goal is would be helpful. What was it that you had working?
    Hope this helps
    -Ben
    Message Edited by BCho on 04-10-2009 02:27 PM
    Hope this helps.
    -Ben
    WaterlooLabs
    Attachments:
    SnapWebService.zip ‏14 KB

  • How to show image in Smart Form dynamically , Image is stored on local PC

    Hi All,
    I have a requirement where user can attach any image to PM Order in T-code IW33. Now this image  gets stored on user`s local PC.
    After this user will generate a report which is a Smart form, On this Smartform i have to show that attached image.
    So that image will contain Order Id and attached image.
    How this can be achieved.
    Regards,
    Abhishek

    Actually this Image(Image of Signature ) will be coming from Mobile device and then it will be stored as an attachment for an PM Order.
    So there will not be any manual interuption and therefore no one will be storing this in se78. But this image gets stored in local PC. And now i have to get this image on my Smartform.
    Any idea how to do it?
    Regards,
    Abhishek

  • To display data in smart form

    hi experts ,
    I want to know how to display the data from a database table into a smart form .
    thanks in advance .

    Hi,
    Have a lok at the below link, you will get all the details about the smart forms
    http://sap.ionelburlacu.ro/sap0/sapsf001.htm
    http://www.erpgenie.com/abap/smartforms.htm
    http://www.erpgenie.com/abap/smartforms_detail.htm
    Regards
    Sudheer

  • Displaying images in oracle forms

    I am trying to dynamically display bmp files in an image item. The problem is that the image does not show up if the size of the image item is smaller than the actual image size and also no error is generated. I have tried setting sizing=Adjust and that does not work. Infact if i set sizing =adjust forms never displays the image file.
    help..................

    You are right i just meant to say i am using the read_image_file builtin when i said dynamic. The problem seems to be with displaying the image if sizing is set =adjust. Infact the same application was working with forms 4.5 but is not working anymore after i generated it in forms 60

  • How to display image in oracle forms 10g

    hello good morning
    I need to display an image in forms 10g
    I can use READ_IMAGE_FILE ('imagen_name', 'URL', 'block.image_item');
    ok if I have my forms stored in a directory -----> */ FORMS / MYSAPP* here are all my fmx
    HERE ARE MY PICTURES ---> */ FORMS / MYSAPP / IMAGES*
    As I can put the URL to access an image that is in that directory
    slds

    Hi,
    You should have the webutil
    see this post
    http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm

  • Displaying images in HTML Forms inside Servlets

              Dear friends
              How are you?
              I am developing Servlets in WebGain Studio Pro V4.1 VisualCafe
              V4.1 to display dynamic HTML forms with embedded
              images (*.jpg and *.gif).
              Please see the following sample code -
              "<DIV ID=\"Logo\" STYLE=\"position:absolute; left: 4%; top: 4%;
              width: 25%; height: 12%; z-index:1; visibility:visible\">" +
              "<IMG SRC=\"FigLogo.gif\" WIDTH=\"100%\" HEIGHT=\"100%\">" +
              "</DIV>"
              Then I deploymed servlets to BEA WLS 6.0 by including Servlets
              in the Web.xml file. However, I do not see the images when
              viewed in IE5.0 browser.
              I appreciate all comments and suggestions.
              Thanking you
              Very truly yours
              Sriram (Ram) Peddibhotla, PhD
              

              Dear Friends
              How are you?
              I moved all images (*.jpg, *.gif) to the subdirectory
              /myDomain/applications/DefaultWebApp_myServer/images
              and they are displaying now in the servlets with HTML forms.
              Thanking you
              Very truly yours
              Sriram (Ram) Peddibhotla, PhD
              "Sriram (Ram) Peddibhotla" <[email protected]> wrote:
              >
              >Dear Friends
              >
              >How are you?
              >
              >When the Servlet displays in the browser (IE5.0), when I click on where
              >the image
              >should be, I see the path
              >http://localhost:7001/servlet/FigureName.jpg (????). Why did it add
              >the /servlet
              >part to the path, I thought that was exclusively for deploying servlets
              >in web.xml
              >file.
              >
              >Thanking you
              >Very truly yours
              >Sriram (Ram) Peddibhotla, PhD
              >
              >
              >"Xiang Rao" <[email protected]> wrote:
              >>
              >>Check access.log to see the status of your image request (status code
              >>and response
              >>size). You can also check weblogic.log. On the other hand, IE cache
              >setup
              >>(e.g.,
              >>"Never") could cause this problem.
              >>
              >>"Sriram (Ra) Peddibhotla" <[email protected]> wrote:
              >>>
              >>>Dear friends
              >>>
              >>>How are you?
              >>>
              >>>I am developing Servlets in WebGain Studio Pro V4.1 VisualCafe
              >>>V4.1 to display dynamic HTML forms with embedded
              >>>images (*.jpg and *.gif).
              >>>
              >>>Please see the following sample code -
              >>>"<DIV ID=\"Logo\" STYLE=\"position:absolute; left: 4%; top: 4%;
              >>>width: 25%; height: 12%; z-index:1; visibility:visible\">" +
              >>>"<IMG SRC=\"FigLogo.gif\" WIDTH=\"100%\" HEIGHT=\"100%\">" +
              >>>"</DIV>"
              >>>
              >>>Then I deploymed servlets to BEA WLS 6.0 by including Servlets
              >>>in the Web.xml file. However, I do not see the images when
              >>>viewed in IE5.0 browser.
              >>>
              >>>I appreciate all comments and suggestions.
              >>>
              >>>Thanking you
              >>>Very truly yours
              >>>Sriram (Ram) Peddibhotla, PhD
              >>>          
              >>
              >
              

  • Regarding the displaying the PO smart form in english

    Hi Experts,
    The problem is that the user had created the vendor master data and specified KOREAN language. After that user created the Purchase Order and checked the print preview displays the PO in KOREAN Language.
    User went back and changed the Vendor master data from KOREAN Language to ENGLISH Language. Even after that output of the form in KOREAN Language.
    The one solution what i think is that ask the user recreate the purchase order once more and the problem will be solved.
    Please let me know is there any other alternate way to display the smartform in english language even after changing it from KOREAN language to ENGLISH in Vendor Master Data.
    The system is 4.7.
    Thanks in Advance.
    Sunil Kumar.

    Go to SE63 and change the korean text elements to english.
    Manas M.

  • Image from Smart Forms BDS to BSP-Layout

    Hi,
    I need some help by developing a new part of our BSP-Application: I got a graphic (bmp)
    on Business Document Server(se78). I also need the same graphic displayed in BSP-Website.
    I found some help in http://help.sap.com/saphelp_470/helpdata/de/3e/c4308945ca4953bb100b9661eab3c2/content.htm
    but I really don't know how to use.
    I tried to get the graphic with <IMG SRC="http://xxxx/sap/bc/bsp/smart_forms/gr/graphics/bmap/BCOL/TEST1.BMP"> in Layout of the BSP-Site, but the picture wasn't shown. The image should be loaded in time. Mimes has to be transported. OnInputProcessing the image will be created and put on the Business Documents Server. Next step is to show it in BSP.
    Maybe you can help me.
    Regards,
    Britta

    Hi Britta,
    please have a look at the following Weblog:
    BSP Programming: Handling Of Non-HTML Documents
    /people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
    This explains the way how to display non-HTML documents like pictures in a BSP.
    Please don't open two threads for the same topic.
    Regards,
    Rainer

  • How to display Smart form in Multiple Languages ?

    Hello,
    Very Good evening!
    How can I print the Smart Form in Multiple Languages like Korea, German and Japneese....
    I got a requirement where I need to display the developed Smart form in these languages. As of now it is displayed only in the Language ENGLISH.
    Any Suggestions will be appreciated!
    Regards,
    Kittu

    Hello kittu....
    I would recommend that you create a single Smart Form in the primary supported language (or the one which you're most comfortable maintaining forms). Embed all necessary logic in this form, and design it with the idea that it would need to be viewable in multiple languages .
    Then use transaction SE63 to translate all necessary form components into each desired language -- one by one -- and they will all be bound together under the same form name. In my experience, a basic multi-column spreadsheet (put together with the guidance of professional translators) works well as a translation guide.
    The advantages of a single, shared form include: consistent look and feel, avoiding dual maintenance for shared logic (or, in your case, up to 10x maintenance), and simplified output determination. On the other hand, a single form does constrain your design and can make for a more complex implementation.
    Hope this is useful
    Best of luck,
    Bhumika

  • Images in Adobe Form

    Hello All,
    I want to display images in Adobe form. I've done the following. The images are not static but dynamic - for each time the form loads the images are different.
    1. Created the image field (Va_Image)
    2. The URL for the image comes from a Context node which is mapped to the PDF DataSource.
    3. i mapped the context node to a invisible TextField (Image_URL)
    4. I wrote the following script (to set the href of image dynamically) in the initialize event of the Page1 on which the text field and image are present
    xfa.form.Vn_MasterRecord.Page1.Va_Image.value.image.href   = xfa.form.Vn_MasterRecord.Page1.Image_URL.rawValue
    5. On preview of the PDF in Adobe Live Cycle Designer, i get the image correctly.
    However, when i execute the Webdynpro application (java), the image doesn't appear on my final screen.
    Any pointers? am i missing something?
    Points assured for good answers.
    Thanks in advance,
    Regards,
    ak

    Hi Arun -
    For dynamic image,
    You cannot directly display a logo which is uploaded in se78 on an adobe form. The image format needs a conversion.
    - You can write this code in your interface section.
    - Create a global variable g_logo of type xstring."converted logo and v_name of type STXBITMAPS-TDNAME. "logo name in se78.
    - Pass these parameters of the image in se78 to this method.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
    p_object = v_object " 'GRAPHICS'
    p_name = v_name " Name of the logo as in se78
    p_id = v_id " 'BMAP'
    p_btype = v_btype " 'BCOL' (whether the image is in color or black and white)
    RECEIVING
    p_bmp = v_field
    EXCEPTIONS
    not_found = 1
    internal_error = 2
    OTHERS = 3.
    g_logo = v_field.
    - The variable g_logo will have the converted image.
    - Drag g_logo into the context from the interface.
    - Finally, in the context of the adobe form, make a graphics node and choose Graphic Type as Graphic Content.
    - The Field should have the global variable g_logo and the mime type is 'BMP' (with quotes).
    - Create an image field (not just image. That would be static) and in binding, bind it to g_logo and check the check box u2018Embed image datau2019.
    I think, this should work.

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

  • Smart form requirement

    Hi
    I have a web service BAPI whose table's content I want to display either in smart form,sap script or any other tool from Portal end.I am using webdynpro for java.
    Please let me know how it can be performed?
    Looking forward for the reply.
    Regards,
    Pawan

    Hi Pawan,
    I should clarify.  If you are planning to use Web Dynpro your first task is to get data into the Context Controller of the Web Dynpro component you are using.  Data is obtained via an Adaptive Web Service model which is generated for you by Web Dynpro if you provide it a WSDL.  So you need to create a Web Dynpro Project (If you plan to use the NWDI which most projects will it is best to create development component project of type Web Dynpro rather than just a Web Dynpro project), Anyhow once you you will an empty models folder in the project. Right click this to be prompted for the model type.  The model will be generated if the WSDL meets the criteria for generating a model. If it is created you still need to initiatlize the model in the wdDoInit() method of the Web Dynpro component controller and place the model nodes correctly in the Context of the Component Controller.
    This is accessed using wdContext from wdDoInit().  Once the data is properly in the context you will need to use context mapping to map the data into the context of the view controller from which it can be applied to the UI components in the Views layouts.

  • Put dynamic image on interactive forms can u please tell steps by ste

    Hi,
    I need to display image on interactive forms can u please tell steps by steps.
    Regards,
    Gurprit Bhatia
    Edited by: GURPRIT BHATIA on Dec 26, 2007 5:20 AM

    Hi Gurprit Bhatia,
    To add a static image:
    In the Standard tab of the Library palette, drag a Static Image object into the form.
    Insert the image:
    To reference a link to an object stored separate from the form, double-click the Static Image object on the form design and insert the image:
    In the URL box, type the URL to the image file.
    Click the Browse button  to the right of the URL box, navigate to the image file that you want to insert, and click Open.
    With Regards,
    RooP KumaR .

Maybe you are looking for

  • Connection issues with EA4500

    I had bad connection issues with my mobile device, so i pressed reset on my EA4500 router, and now when i connect to my network, it gives my limited connection even though i have 5 bars of signal. Not sure what to do now...

  • How can I remote control my iPad 2 with my iPhone.....apart from limited 2screens?

    Is there an app yet or in development which means I can remotely control some aspects of my iPad 2 with my iPhone.....I have used 2screens but am hoping for a more universal app......thanks Stephen

  • Is there a way to have "hyperlinked-copy" change color or underline when hovering over it when exported to pdf??

    I know the hand will appear when you hover over a hyperlink. I am not a fan of the outlined rectangle. I tried adding a drop shadow but I guess you can't add a drop shadow to part of the copy within a text box. Any other suggestions to have copy stan

  • Temperature Monitor for OS 10.3.9

    I need an application or console command that will show me the temperature of my CPU. I'm running a Beige G3 that is using a G4 processor. It's running OS 10.3.9 through the use of the application xPostFacto. I've found the apps "Temperature Monitor

  • Flat Panel LCD Computer Monitor Advice

    I'm building an FCP workstation and have been thinking about what type of computer monitor to purchase. My current monitor is a bulky CRT, so if anyone has any advice as far as what to look for in an LCD or good brands that have worked well for you i