Images on SMARTFORMS

Hello friends,
Can anybody tell me how to display a product image in SMartform.
I'm creating one Sales Order in that i want to display the Image for a given product number.How can i do this??
Thanks in Advance..
Pradeepa

Hello srilatha & Sankar,
The transaction given by you is to upload the LOGO .That I know..But my requirement is to pass the Image dynamically means.,When smartform is displaying a product number there itself it has to print that product's Image also..If you know this please tell me the way to display the image including product number.
Hope you can understand.
Thanks,
Pradeepa

Similar Messages

  • Tiff images in smartforms

    Hello firends,
    Can we use TIFF images in Smartforms instead of BMAP.
    Presently we are using BMAP Graphics.
    If it is possible, please provide the solution.
    regards.
    vamshi

    Hi Vamshi,
    Refer this wiki follow the steps uploading the tiff image in se78 and then include the graphics in the smart forms by creating the graphic node and display.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/uploading%252blogo%252bin%252bscript
    Regards,
    Sravanthi

  • Images in Smartforms

    Hi all ,
       I have to display a image in smartforms. I have the image in Xstring format . How can I show that in SMARTFORMS.
      I dont have the BMP images stored in STXBITMAPS  table. I have Xstring Content in custom table. Pls help me to resolve this.
      Thanks in advance.
    Thanks.
    Rupachandran G

    As per my knowledge, the logos to be displayed in smartforms must be uploaded to SE78 and then used through Graphics node. The XSTRING images stored in custom tables can be used directly, if we are using Adobe forms.
    If you want it for smartforms, it can be done by dynamically uploading the logo to se78 and deleting it, once the smartform is printed or displayed.
    1. Create a graphic window in Smartforms and use a logo name with it's attributes.
    2. In the print program, you can pick the required XSTRING image from custom database table based on your key fields and logic.Convert the XSTRING to binary using FM SCMS_XSTRING_TO_BINARY and upload the binary content to SE78 calling a new subroutine copied from the subroutine  import_bitmap_bds in program saplstxbitmaps. In the copied subroutine the GUI_UPLOAD needs to be removed and our binary content can be directly used. In the parameters of the subroutine, the same logo name needs to be mentioned, which has been used in smartforms.
    3. Once the smartform is called, then the particular image uploaded can be deleted using FM 'SAPSCRIPT_DELETE_GRAPHIC_BDS' .
    Check a similar thread for sample code. Here a code has been given to upload a XSTRING content to SE78 and creating a PDF for it.
    Need to download image to PDF

  • Reverse printing a window (Mirror image) in smartforms/scripts

    Hi,
    Is it posible to do a reverse print of a particular window(Mirror Image) in smartform/script output?
    Scenario:
    I have 3 windows in the smartforms.
    Window1
    Window2
    Window3
    I want to print Window1 & Window3 normally & Window2 upside down like a mirror image.
    Regards,
    Sree

    Hi friend,
    One suggestion if you are printing your company logo or some thing like that in the window2 then you can invert the image using paint and then again upload it.
    Else if its some sort of text like that then you can rotate it using some functions like '^FWR' like that there are functions to rotate the text.
    Or else you can handle this using or setting the printer settings but i think its not possible to change the settings for only one page.
    See the Link : [Printing vertical text in Smartform|Printing vertical text in Smartform;.
    In this the post by Julie LV will be helpful to you.
    I think this will solve your issue if you face any queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS

    HI
    HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS

    Hi, 
       goto se78 -> in the menubar click graphic  and import to select ur images from ur system .. then click transport button .. it automatically gets into the smartform graphic image list.. then get into transaction smartform and use the image u imported into that..
    U can import anykind  of image which u have stored in ur pc through se78..
    Regards,
    Priya.

  • How to print dynamic images in smartforms?

    Hi Guys,
    We are maintaining images in QM02 similar to the header or item texts.  Those images has to be displayed in smartform.
    Can anyone know how to read any image from transaction and display the same in smartform. Those images will be different for different notification numbers?
    Please let me know if instead of SE78 we can read the image and display the same in smartform?
    Or is there anyway we can achieve the same?
    Thanks,
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 28, 2009 2:30 PM

    Hi Naidu,
    I Have the same problem with you. I Did a program to put all imagens in SE78. After this, you can use a variable to fill out the name.
    Example:
    Name: &name&
    Object:GRAPHICS
    ID:BMAP
    Regards,
    Marcelo

  • How to convert JPG image to BMP ? (Printing jpg images in smartforms from content server)

    Hi,
    We have employee photos(JPG Format) stored in Content server. And now we want to print the photos in smartforms. For this I had written the below code to read the photo from content server in binary format as below.
    REPORT ZTEST1.
    PARAMETERS P_PERNR TYPE PERNR_D.
    DATA: PS_CONNECT_INFO TYPE TOAV0,
          IT_BINARY TYPE TABLE OF SDOKCNTBIN.
    CALL FUNCTION 'HR_IMAGE_EXISTS'
      EXPORTING
        P_PERNR                     = P_PERNR
    *   P_TCLAS                     = 'A'
    *   P_BEGDA                     = '18000101'
    *   P_ENDDA                     = '99991231'
    IMPORTING
    *   P_EXISTS                    =
       P_CONNECT_INFO              = PS_CONNECT_INFO
    * EXCEPTIONS
    * ERROR_CONNECTIONTABLE       = 1
    *   OTHERS                      = 2
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.
    IF PS_CONNECT_INFO IS NOT INITIAL.
      CALL FUNCTION 'SCMS_DOC_READ'
        EXPORTING
       STOR_CAT                    = SPACE
       CREP_ID                     = PS_CONNECT_INFO-ARCHIV_ID
          DOC_ID                      = PS_CONNECT_INFO-ARC_DOC_ID
    *   PHIO_ID                     =
    *   SIGNATURE                   = 'X'
    *   SECURITY                    = ' '
    *   NO_CACHE                    = ' '
    *   RAW_MODE                    = ' '
    * IMPORTING
    *   FROM_CACHE                  =
    *   CREA_TIME                   =
    *   CREA_DATE                   =
    *   CHNG_TIME                   =
    *   CHNG_DATE                   =
    *   STATUS                      =
    *   DOC_PROT                    =
    TABLES
    *   ACCESS_INFO                 =
    *   CONTENT_TXT                 =
       CONTENT_BIN                 = IT_BINARY
    * EXCEPTIONS
    * BAD_STORAGE_TYPE            = 1
    *   BAD_REQUEST                 = 2
    *   UNAUTHORIZED                = 3
    * COMP_NOT_FOUND              = 4
    *   NOT_FOUND                   = 5
    *   FORBIDDEN                   = 6
    *   CONFLICT                    = 7
    * INTERNAL_SERVER_ERROR       = 8
    *   ERROR_HTTP                  = 9
    * ERROR_SIGNATURE             = 10
    *   ERROR_CONFIG                = 11
    *   ERROR_FORMAT                = 12
    * ERROR_PARAMETER             = 13
    *   ERROR                       = 14
    *   OTHERS                      = 15
      IF SY-SUBRC <> 0.
    * Implement suitable error handling here
      ENDIF.
    ENDIF
    Now the issue is I want to convert that binary data to bitmap image and upload the same in to SE78. So that I can use that BMP image from SE78 in my smartforms.
    I had used the class CL_IGS_IMAGE_CONVERTER to covert the image into bmp but it is giving error that error in IMAGE DATA CORRUPT & Error Code 3. The conversion code used is as below.
    ******* CONVERT THE JPG IMAGE INTO BMP PHOTO. **********
      DATA: L_IGS_IMGCONV TYPE REF TO CL_IGS_IMAGE_CONVERTER,
    L_IMG_BLOB    TYPE W3MIMETABTYPE,
    L_IMG_SIZE    TYPE W3PARAM-CONT_LEN,
    L_IMG_TYPE    TYPE W3PARAM-CONT_TYPE,
             L_IMG_SUBTYPE TYPE W3PARAM-CONT_TYPE,
    L_IMG_URL     TYPE W3URL,
    L_ERR_CODE    TYPE I,
    L_ERR_TEXT    TYPE STRING,
             P_DEST TYPE CHAR32 VALUE 'IGS_RFC_DEST'.
      DATA: G_IMG_BLOB     TYPE W3MIMETABTYPE,
          G_IMG_TYPE     TYPE W3PARAM-CONT_TYPE,
          G_IMG_SIZE     TYPE W3PARAM-CONT_LEN.
      IF NOT IT_BINARY[] IS INITIAL.
        G_IMG_BLOB[] = IT_BINARY.
        CREATE OBJECT L_IGS_IMGCONV
          EXPORTING
            DESTINATION = P_DEST.
        CALL METHOD L_IGS_IMGCONV->SET_IMAGE
          EXPORTING
            BLOB      = G_IMG_BLOB
            BLOB_SIZE = G_IMG_SIZE.
        CASE PS_CONNECT_INFO-RESERVE.
          WHEN 'TIF'.
            G_IMG_TYPE = 'image/tiff'.
          WHEN 'JPG'.
            G_IMG_TYPE = 'image/jpeg'.
          WHEN 'PNG'.
            G_IMG_TYPE = 'image/png'.
          WHEN 'GIF'.
            G_IMG_TYPE = 'image/gif'.
          WHEN 'BMP'.
            G_IMG_TYPE = 'image/x-ms-bmp'.
          WHEN OTHERS.
            EXIT.
        ENDCASE.
    L_IGS_IMGCONV->INPUT  = G_IMG_TYPE.
        L_IGS_IMGCONV->OUTPUT = 'image/x-ms-bmp'.
    *    PERFORM GET_SIZE USING PICTURE_CONTAINER
    * L_IGS_IMGCONV->WIDTH
    * L_IGS_IMGCONV->HEIGHT.
        CALL METHOD L_IGS_IMGCONV->EXECUTE
          EXCEPTIONS
            OTHERS = 1.
        IF SY-SUBRC IS INITIAL.
          CALL METHOD L_IGS_IMGCONV->GET_IMAGE
            IMPORTING
              BLOB      = L_IMG_BLOB
              BLOB_SIZE = L_IMG_SIZE
              BLOB_TYPE = L_IMG_TYPE.
          SPLIT L_IMG_TYPE AT '/' INTO L_IMG_TYPE L_IMG_SUBTYPE.
        ELSE.
          CALL METHOD L_IGS_IMGCONV->GET_ERROR
            IMPORTING
              NUMBER  = L_ERR_CODE
              MESSAGE = L_ERR_TEXT.
          BREAK-POINT.
        ENDIF.
      ENDIF.
    ENDIF.
    So could you please some one help me how to convert JPEG Photo to BMP programatically.
    Regards,
    Mayur.

    johnandersonpalmdesert wrote:
    My printer is requesting a vector file.
    Jpeg File format does not support vectors.  Photoshop has limited vector support and tools.  Photoshop can not save vector file formats like SVG.  What File type does your printer want?
    Adobe Illustrator is Adobe vector application.

  • Insufficient data for an Image in smartform as a PDF

    Hi Guys,
    I am sending a smartform by email as a PDF attachment.
    Everything is working fine, but the logo is not getting displayed.
    Whenever I am opening the PDF I am getting the pop up as "Insufficient data for an image".
    Thanks,
    Nikhil

    Hi Nkil,
    This can be related to the FlateDecode compression described in SAP Note #843480.
    The option 'FLATE_COMPR_OFF' needs to be set to 'On' via reprto RSTXPDF3 to turn off the FlateDecode compression.
    After switching off the FlateDecode compression, create another PDF and see if the problem is resolved?
    Regards,
    Aidan

  • Print product attachment (image) in Smartforms

    Hi gurus.
    I have a big probleme, because i'am not able to print, for each order item, the corresponding image defined in commprod01.
    i'm able to get the document id, using class cl_crm_document, but i can't show it into the smartforms.
    sombody solved a requirement as this?
    Thanks in advance
    Best regards
    Marco

    hi,
    if u are having the names in atable ..
    simply put a select query on that table according to ur requiremnt and store it in a variable VAR..
    then wherever u want to display the image ..
    simply put &VAR&
    hope it helps u ..
    regards,
    prashanti

  • Export image from smartform

    Hi Experts,
    For importing we use SE78 & upload image, How to export image from SAP to our presenation server?
    In Smartforms, I have an image in color, it need to be downloaded for further modificatons.
    Please give me useful solution for it.
    Thank you.

    Hi i think you cannot download pictures loaded into SE78, the only possiblity(iam not sure) is to print the image from SE78 into a PDF file and then copy the picture into some image editing tool like MS-Paint.
    Regards
    Karthik D

  • Using objects stored in OAER (image) ni SMARTFORM

    Has anybody done anything in SMARTFORM where the object stored in the OAER (image) is directly accessed in SMARTFORM without uploading it to SAP via SE78?
    Thank you very much.

    Yes we can do that. In the window create a Graphics.
    In the General attributes tab of that Graphics window
    give
    Name   = YPHONE      (The name which is there in OAER)
    Object = GRAPHICS   
    ID     = BMAP       
    Check the radio Black and white or Color Bitmap.
    Give resolution = 600 or depending on the size.
    Regards,
    Prakash.

  • How to uploag jpeg image for smartforms

    how to uploag jpeg image in sap. plz tell me the steps.
    Edited by: Matt on Nov 16, 2008 4:15 PM

    Hi
    Convert the jpeg into bmp or bitmap...as from se78 jpeg cannot be uploaded. To convert, all you have to do is open the jpeg picture using paint brush and then save it as bmp. When you click save as in paint brush, it will open a window..in that in "Files of Type" select bitmap image and upload it.
    In smartform, create a graphic window and give this image name.
    Regards,
    Vishwa.

  • Color images in smartforms

    Hi,
      I Have uploaded Color BMP file and Tried to Print using smartforms.
      In Print preview Color Image looking Fine. But in Printout it is Showing as B/W Image.
      What might be the Problem?
    Thanks,
    Kishore

    Joan,
      What are the Setting we need to do for the color Printer?
      Thanks for Your Help.
    Kishore

  • DMS Images in SmartForms

    Hello form gurus,
    We are storing images in DMS, and would like to embed them in a SmartForm.  Is there a certain function module that will let us pull objects out of the DMS and use it in the form?  We can upload in any graphic file format (BMP, JPG, TIFF), but we cannot find a way to get the object and embed into a form. 
    Any help is appreciated very much.
    Thank you!

    Hi,
    Check below threads,
    Re: Sapscript or smartforms with DMS
    Printing graphics (via SmartForms?)
    Thanks,
    Sree.

  • Use images in smartform.

    It's possible to use images loaded in transaction OAOH in smartform? Thanks for the answers.

    hi,
    check the thread
    Import in one time great number of images via OAER trans.
    regards,
    keerthi.

Maybe you are looking for

  • TS1702 NEED HELP DOWNLOADING APPS

    For some weird reason I am unable to download the Pandora app and the Find my Iphone app in itunes. I tried restarting itunes and my itunes is up to date. Does anyone have any suggestions?

  • Filesystem read only[Solved]

    hello i install arch but when i want to install a software i can't. there is an error "file system read only" what should i do? Last edited by MHALAH152 (2013-05-12 06:31:48)

  • Why Aperture doesn't send the RAW file to Photoshop

    I've seen the complaint about Aperture not passing the original RAW file to Photoshop in several places in this forum. I think I have a reason for why Aperture doesn't work this way. The reason has to do with the 1st law of digital RAW photography. "

  • Problem changing JNLP file association

    I installed SUN JRE 1.5 Update 7 in a fresh Windows XP machine and found the registry recongizes the JNLP file extension is associatied with it. Then I installed an application that downloads IBM WebSphere Application Client 6 which actually uses IBM

  • Transferring iTunes to a Mac

    I have over 14000 songs on my iPod and have them backed up on an external hard drive from a windows system. I just purchased a Mac and would like to get everything transferred over for the Mac system. I however do not want my iTunes to be on the comp