Printing LOGO on smartform based on Printer

Hi All,
  I want to print LOGO on my smartform(PO) based on a Printer which i am using.If i use one perticular printer(PRIMO) i should get the LOGO and for other Printers it should not appear.Will it be possibel to control the printing based on a printer condition? if yes please suggest me where i can add these conditions.
If u need any further information please revert back to me.Thanks in Advance.
Best regards,
Shanker.

Hi,
Based on the device type in OUTPUT_OPTIONS in smartforms interface find out the printer name and write logic for printing appropriate LOGO in smartform.
Regards,
Raju.

Similar Messages

  • Dynamicaly print logo on smartform(if a person email id change logo ischang

    hi expert,
    actually i want all the variable of smartform in one table.
    so i crated ztable,
    my logo is in database i want to  fetch the logo from z table .
    (v_logo logo name in table how can i fetch logo from database with refrence of email id of person)
    so plz suggest me step by step method.
    i am working on hr module.
    condition is if pernr (person)email id chang logo is also change both fields are in one table .

    Hi
    This is very simple, create all the logo's with the actual name of the person or perner.
    Use a select query on your table and pass the value of the seleceted record as the name of the graphic in the smartform node.
    Something like this:
    MAPPING TABLE"
    PERNER    IMAGE_NAME
    0001           0001
    0002           0002
    in se78, you logo name should be '0001' , '0002' and so on....
    in smartform, based on ur pernr, select a record from mapping table and pass the value of the image name to a variable in the graphics display node.
    this should solve your prob.
    Cheers
    Ravish

  • How to upload a  logo in smartforms

    can anybody tell me how to upload logo in Smartorms

    Hi,
    Inserting Logo in SmartForm
    Follow the given steps in order to add a logo,
    1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) User TCode SE78 to upload new pictures and logos.
    or----
    u can
    Try executing program RSTXLDMC program. There also you can upload a graphic.
    Run RSTXLDMC
    Enter file name C:\MAIL\COMPLOGO.TIF
    Resolution for Tiff file
    Absolute X-position
    Absolute Y-position
    Absolute positioning
    Reserved height
    Shift to right
    UOM = CM
    Text title
    Line width for text = 132
    Text name ZHEX-MACRO-COMPLOGO
    Text ID ST
    Text language = E
    Postscript scaling
    Width & Height according to PS scaling
    Number of Tiff gray levels (2,4,9) 2
    Then Create a new window 'COMP' with attributes;
    Window COMP description Company Logo
    Window type CONST
    Left margin 7.00 CH window width 10.00 CH
    Upper margin LN window height 8.00 LN
    Finally u can make use of the text name and text id to print the logo.
    Please note that if object name is not indicated as 'ZHEX...', the logo may not be printed !
    Go thru this,
    http://www.zebra.com/id/zebra/na/en/documentlibrary/misc/sap_smartforms_technical.File.tmp/SAPSmartFormsVersion3.pdf
    Refer these threads,
    How to upload logo in Smartforms.
    logo insertion in smartform..
    Regards,
    Padmam.

  • Calling the smartform based on checkbox selection in ALV

    Hi
    i displayed the report output in ALV using 'REUSE_ALV_GRID_DISPLAY'. I maintained checkboxes as first column of data.
    and i also added three user defined buttons like check,uncheck,print form. Now my problem is when user selecting the records in ALV using the checkbox,i have to call the smartform based up on user selection of check box.i done but it is coming only for one checkbox.if we select multiple checkboxes it is not coming.but i need smartform has to call for every checkbox user has selected.
    can u suggest on this.all my data in internal table i_data with checkbox field. i'm copying my code here.
    LOOP AT I_DATA.
        READ TABLE I_DATA INTO WA_DATA INDEX FU_SELFIELD-TABINDEX.
        WA_DATA-SEL = 'X'.
        MODIFY I_DATA FROM WA_DATA TRANSPORTING SEL.
        FU_SELFIELD-REFRESH = 'X'.
    MOVE-CORRESPONDING WA_DATA TO WA_PRINT.
      APPEND WA_PRINT TO I_PRINT.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            FORMNAME                 = 'ZHRF1_PTAR1001'
    *       VARIANT                  = ' '
    *       DIRECT_CALL              = ' '
         IMPORTING
           FM_NAME                  = FM_NAME
    *     EXCEPTIONS
    *       NO_FORM                  = 1
    *       NO_FUNCTION_MODULE       = 2
    *       OTHERS                   = 3
        IF SY-SUBRC  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      CALL FUNCTION FM_NAME
        EXPORTING
    *     ARCHIVE_INDEX              =
    *     ARCHIVE_INDEX_TAB          =
    *     ARCHIVE_PARAMETERS         =
    *     CONTROL_PARAMETERS         =
    *     MAIL_APPL_OBJ              =
    *     MAIL_RECIPIENT             =
    *     MAIL_SENDER                =
    *     OUTPUT_OPTIONS             =
    *     USER_SETTINGS              = 'X'
          FR_DATE                    = PN-BEGDA
          TO_DATE                    = PN-ENDDA
    *   IMPORTING
    *     DOCUMENT_OUTPUT_INFO       =
    *     JOB_OUTPUT_INFO            =
    *     JOB_OUTPUT_OPTIONS         =
        TABLES
          ITAB                       = I_PRINT
    *   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.
    ENDLOOP.
    ENDCASE.
    Moderator Message: Duplicate post locked. Continue with your previous thread.
    Edited by: Suhas Saha on Dec 27, 2011 9:17 AM

    HI arjun,
    according to you code,
    READ TABLE I_DATA INTO WA_DATA INDEX FU_SELFIELD-TABINDEX.
    the fu_selfield-tabindex contains only one number , so its trigger only one check box, it is not correct to loop i_data .
    take the records which are checked and loop that internal table , using check_changed_data u can select multiple records which are checked.
    one importent thing , use sy-subrc after read statement bcz see example
    in second loop if the read statement has failed but the work area contains the data , so beware check sy-subrc= 0 . after read.
    debug your program and check every time FU_SELFIELD-TABINDEX will be same . so reads same record so many time how many times the loop had.
    instead do like this
    loop at i_data into wa_data where check = 'x'.
    MOVE-CORRESPONDING WA_DATA TO WA_PRINT.
    endloop.
    Regards
    Siva

  • Enter Logo in Smartform

    Hi All,
    Can anybody guide me to enter logo in Smartform.
    I want to print one logo on inspection setup print program.
    Please suggest me the steps to do the same.
    Regards,
    Deepak.

    Hi,
    Inserting Logo in SmartForm
    Follow the given steps in order to add a logo,
    1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) User TCode SE78 to upload new pictures and logos.
    or----
    u can
    Try executing program RSTXLDMC program. There also you can upload a graphic.
    Run RSTXLDMC
    Enter file name C:\MAIL\COMPLOGO.TIF
    Resolution for Tiff file
    Absolute X-position
    Absolute Y-position
    Absolute positioning
    Reserved height
    Shift to right
    UOM = CM
    Text title
    Line width for text = 132
    Text name ZHEX-MACRO-COMPLOGO
    Text ID ST
    Text language = E
    Postscript scaling
    Width & Height according to PS scaling
    Number of Tiff gray levels (2,4,9) 2
    Then Create a new window 'COMP' with attributes;
    Window COMP description Company Logo
    Window type CONST
    Left margin 7.00 CH window width 10.00 CH
    Upper margin LN window height 8.00 LN
    Finally u can make use of the text name and text id to print the logo.
    Please note that if object name is not indicated as 'ZHEX...', the logo may not be printed !
    Please reward points if useful.
    Regards
    rose

  • How to attach logos in smartforms using standard text??

    logos in smartforms using standard text

    Hi,
    After going into SO10>Menu Bar->Include->Graphics-->Select the logo you have to include that in the standard text. ->save->Activate.
    IN the smartform.
    Create a Logo Node and fill the information in the right side under general attributes.
    Name---Standard text name.
    Object
    Id.
    You can upload the logo using SE78.
    Thanks,
    Sree.

  • How transfer logo from smartform (development server ) to quality server?

    hi can anyone tell me how transfer logo in smartform (from development server ) to quality server?

    Hi,
    Logos are not transported. You need to create it in all systems individually.Transports cannot carry image files!! Although you know how to create logos but still for your reference this very popular link:
    http://www.sap-img.com/basis/changing-the-sapgui-logo-on-the-right-hand-side.htm
    Regards.
    Shiva  Kumar

  • Problem with printing logo in smartforms

    Hi guys,
    we have a logo in a window, its working fine in print preview, however when printing the document its all black. The logo does not display, instead the window is blackened.
    Please advise.

    Hi freishz ,
    When u r sayin 'document its all black' do u mean that the background of image is appearing black or it is completely black nothing is displayed?
    I had faced similar problem in smartform,where i was gettin grey background of the logo...
    For this, you need to edit the logo image first. open the logo image in ms paintbrush and save it as 256 color bitmap image. now upload this bitmap in sap using tcode se78.
    Now use this logo......

  • Printing logo in smartform

    Hi all,
    I've embedded a logo (background color is white) in tif format in a smartform.
    When I print it out with printer A, it looks perfect. But strangely, when I print it out with printer B, the logo's background color becomes dark.
    I just want to make the logo's background to white with any printers, what's wrong there?
    Thanks.

    HI ,
    Please save the logo file (Bmp format) as 256 colors then upload the logo using se78 and then incarporate it in your smart form . you can avoide gray back ground ..
    *Please mark useful answers

  • Plm in printing the logos of  smartform,

    hi gurus,
              I Can see the print preview of the smartform with logo's, If i give the print of same form i unable to get the print instead it prints saying 'that error : internal error 0*18', One more thing is that if i delete logos in the smart form then i can able to get the print of smart form without logos.
    plz can anybody helm me in this?
    thanks®rads,
    seshu.

    hi
    this is the major problem in many of the printers.
    in order for the logo to print, we have to change the setting of the printer...
    you can contact the concerned dept for the same
    pavan

  • Problem with printing logo in smartform.

    Hi guys,
    We have a logo in a window, its working fine in print preview, however while printing the page data ,other than logo is comming fine on printout , but logo is not comming fine. Logo is comming like one black vertical strip on left side of page. Even if i used standard Logo like ENJOY , same problem is comming. Please please give solution.
    Regards,
    Pradip

    Hello Pawar,
    The the problem is with printer drivers thats what i think....Please ask you SAP Basis guys to work on it..Tell them logos are not printed correctly....Please do the config and install the driver for the same.
    Regards,
    Nabheet Madan

  • Company-based Logo on SMARTFORMS/Sapscript

    Dear SAP Experts,
    Is there a way to assign a logo dynamically depending on the company where the document was created?
    Please advise and thanks!

    Hello,
    Yes dynamic logos can be displayed based on the company code.
    The better solution will be maintain a Z table which will contain all the fiels you need to do the validation and also the logo name.
    Eg table
    table z_logo.
    fields
    company code
    logo name
    and now maintain the logo in the sap system, so now write an select query with where clause company code and get the logo name.
    Now pass the logo name as &ZXYZ& in the graphic window.
    please note that &ZXYZ& is the value that had been retrieved from Z-table that you had created, and field is logo name.

  • Logo in Smartform.

    Hello Everybody,
    I am supposed to load the logo into the form based on the input given by the user.i,e. i should the take the name of the logo to be put in the SMARTFORM from the text box in the selection screeen.Could some one tell me as to how this is done????
    Thanking you in anticipation.
    Regards,
    Sirisha Matta.

    Hi Sirisha,
    you can create a GRAPHIC node where the name of the node is a variable:
    Name &V_LOGO&
    Object GRAPHICS
    ID BMAP
    So before of GRAPHIC node you have to insert an ABAP node where u insert the name of the LOGO,  let us take one case like --in according the company code
    CASE BUKRS = ....
    WHEN '....'. V_LOGO = .....
    WHEN '....'.
    ENDCASE.
    or..............
    Try executing program RSTXLDMC program. There also you can upload a graphic.
    Run RSTXLDMC
    Enter file name C:\MAIL\COMPLOGO.TIF
    Resolution for Tiff file
    Absolute X-position
    Absolute Y-position
    Absolute positioning
    Reserved height
    Shift to right
    UOM = CM
    Text title
    Line width for text = 132
    Text name ZHEX-MACRO-COMPLOGO
    Text ID ST
    Text language = E
    Postscript scaling
    Width & Height according to PS scaling
    Number of Tiff gray levels (2,4,9) 2
    Then Create a new window 'COMP' with attributes;
    Window COMP description Company Logo
    Window type CONST
    Left margin 7.00 CH window width 10.00 CH
    Upper margin LN window height 8.00 LN
    Finally u can make use of the text name and text id to print the logo.
    Please note that if object name is not indicated as 'ZHEX...', the logo may not be printed !
    Regards,
    SRI

  • Need to send the logo in smartform via mail.

    Hi All,
    I have smartform with the company logo uloaded. I have requirement to send the smartform with logo output via mail .
    Points will be rewarded....
    thanks,
    mahantesh

    hi,
    1. check if are getting the logo in the print preview, ifso
    2. use the following piece of code to send the mail (by converting otf to pdf)
    *For sending email
    DATA:
      i_otf type  standard table of itcoo ,"OCCURS 0 WITH HEADER LINE,
      i_tline type table of tline with header line,
      i_receivers type standard table of somlreci1 ,
      i_record type table of solisti1 initial size 0 with header line,
    Objects to send mail.
      i_objpack type table of sopcklsti1 initial size 0 with header line,
      i_objtxt type table of solisti1 initial size 0 with header line,
      i_objbin type table of solisti1 initial size 0 with header line,
      i_reclist type table of somlreci1 initial size 0 with header line,
    Work Area declarations
      wa_objhead type soli_tab,
      w_ctrlop type ssfctrlop,
      w_compop type ssfcompop,
      w_return type ssfcrescl,
      wa_doc_chng type sodocchgi1,
      wa_buffer type string, "To convert from 132 to 255
    Variables declarations
      v_len_in like sood-objlen,
      v_lines_txt type i,
      v_lines_bin type i.
      clear v_len_in.
      i_otf[] = w_return-otfdata[].
      clear v_len_in.
      call function 'CONVERT_OTF'
        exporting
          format                = 'PDF'
          max_linewidth         = 132
        importing
          bin_filesize          = v_len_in
        tables
          otf                   = i_otf
          lines                 = i_tline
        exceptions
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          others                = 4.
      if sy-subrc eq 0.
        loop at i_tline.
          translate i_tline using '~'.
          concatenate wa_buffer i_tline into wa_buffer.
        endloop.
        translate wa_buffer using '~'.
        do.
          i_record = wa_buffer.
          append i_record.
          shift wa_buffer left by 255 places.
          if wa_buffer is initial.
            exit.
          endif.
        enddo.
    Attachment
        refresh: i_reclist,
        i_objtxt,
        i_objbin,
        i_objpack.
        clear wa_objhead.
        i_objbin[] = i_record[].
    Create Message Body Title and Description
        i_objtxt = 'PFA are the Service Entry Sheet details.'.
        append i_objtxt.
        append initial line to i_objtxt.
        describe table i_objtxt lines v_lines_txt.
        read table i_objtxt index v_lines_txt.
        wa_doc_chng-obj_name = 'Service Entry Sheet '.
        wa_doc_chng-expiry_dat = sy-datum + 10.
        wa_doc_chng-sensitivty = 'F'.
        wa_doc_chng-doc_size = v_lines_txt * 255.
        concatenate 'Service Entry Sheet' nast-objky(10) into wa_doc_chng-obj_descr separated by space.
    Main Text
        clear i_objpack-transf_bin.
        i_objpack-head_start = 1.
        i_objpack-head_num = 0.
        i_objpack-body_start = 1.
        i_objpack-body_num = v_lines_txt.
        i_objpack-doc_type = 'RAW'.
        append i_objpack.
    Attachment (pdf-Attachment)
        i_objpack-transf_bin = 'X'.
        i_objpack-head_start = 1.
        i_objpack-head_num = 0.
        i_objpack-body_start = 1.
        describe table i_objbin lines v_lines_bin.
        read table i_objbin index v_lines_bin.
        i_objpack-doc_size = v_lines_bin * 255 .
        i_objpack-body_num = v_lines_bin.
        i_objpack-doc_type = 'PDF'.
        i_objpack-obj_name = 'smart'.
        i_objpack-obj_descr = 'Service Entry Sheet '.
        append i_objpack.
    Get email id .
                  clear i_reclist.
                  i_reclist-receiver = '[email protected]'. "email address
                  i_reclist-rec_type = 'U'.
                  append i_reclist.
        if i_reclist[] is not initial.
          call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            exporting
              document_data              = wa_doc_chng
              put_in_outbox              = 'X'
              commit_work                = 'X'
            tables
              packing_list               = i_objpack
              object_header              = wa_objhead
              contents_bin               = i_objbin
              contents_txt               = i_objtxt
              receivers                  = i_reclist
            exceptions
              too_many_receivers         = 1
              document_not_sent          = 2
              document_type_not_exist    = 3
              operation_no_authorization = 4
              parameter_error            = 5
              x_error                    = 6
              enqueue_error              = 7
              others                     = 8.
          if sy-subrc <> 0.
       Error When Sending the File
            retcode = sy-subrc.
            perform protocol_update1 .
          endif.
        endif.
      else.
       Error When generating the File
        retcode = sy-subrc.
        "perform protocol_update .
      endif.
    Reward if u find it useful
    Regards
    Arun T

  • How to include the STANDARD TEXT Logo in SMARTFORM???

    Hai experts,
    Im able to get the standard text logo in SAPSCRIPT used follwing command in text editor.
    v_logo is dynamic variable.
    /:INCLUDE &V_LOGO& OBJECT TEXT ID ST LANGUAGE EN 
    But in smartforms im unable to get the Standard text logo used following steps...
    in Include text node
    A) Text name : &V_LOGO&  <
    B) Text object : TEXT            >
    C) Text ID      : ST                >
    D) Text Language : EN          >
    Why????
    What are the further steps needed??
    Rewards helpful answer is very useful..
    Thanks & rgds,
    Muru.P.

    HI
    http://www.sapmaterial.com/smartform_example.html
    http://www.sap-press.com/product.cfm?account=&product=H955&shoppingcart=003
    Tcode SE78 is used to import graphics into the SAP system. The transaction imports the graphics and stores it
    in the BDS (business transaction server) and then it can be displayed in the form.
    ·        To create the graphic node , call the context menu for that node in the tree structure and choose create-
    >graphic
    ·        Enter a name (LOGO) for the node and the description (Logo Graphic)
    ·        On the general attributes determine whether a colored or a black and white
    ·        On General Attributes use the fields object - GRPAHIC, id u2013 BMAP and name - &G_LOGO& to identify the
    graphic. &G_LOGO& is variable and therefore we can print company code specific logo. Program line preceding
    the graphic is required.
    Regards
    Pavan

Maybe you are looking for

  • Limiting output to 10 per page (servlets)

    I'm using netBeans to create a servlet that querys the database and displays the results. I'm trying to limit the results to 10 per a page but I'm having trouble. I've referred to Karl Moss's guide to java servlets and attempted to input his coding,

  • How do I get my Imovie11 to play on my tv with a flash drive?

    would like to use a flashdrive to show my movies on tv.so far i can share from computer to computer . put no luck with the tv or the ports on the blue ray player. the files appear as empty. Any help would be appreciated,

  • Urgent help request: User input in empty table

    I am trying to find some idea how does one code so that user can input rows or delete rows in am empty JTable. I would appreciate if any article, example or suggestion on this is extended. Thanks in advance.

  • How to sum all items in a list in applescript?

    Hey guys, I wanted to sum all items of a list full of numbers and divide the number by the count all items of a list, is there a easy way to do this? Thank you so much in advance

  • Playlists empty, no iTunes Music Library file

    Is it possible to recover songs from a playlist? I was reading over some posts on the subject, which mention moving the iTunes Music Library file. I see the iTunes Library file, but not the iTunes Music library file. Thanks for any help!