Sapscript  : how to print logo in dynamic position  ?

i have form with different company logo's  ,
and i want to set the POSITION   for each logo
i created logo window and i can see the logo  ,
But i can't set the POSITION of logo window according to my logo size.
i tried  :
/: POSITION WINDOW
/: POSITION XORIGIN '11 CM YORIGIN '11' CM      " just example
/: INCLUDE xxxxxxx  OBJECT GRAPHICS ID BCOL LANGUAGE xx
Nothing happened .
Also
BOX XPOS '0' CM YPOS '2.6' CM WIDTH '17' CM HEIGHT '2.2' CM FRAME 10 TW
It created rectangle on the form, but the logo window still stay in his initial value position.
thanks .

"Do you really have color logos in your system? Outputting to a color printer? Appears so with 'BCOL'.
It  took me some time to understand the meaning of your question   
But it's so important  , just when i upload the logo in black & white it was display in the form  .
Thanks 
ilan

Similar Messages

  • How to print logo in printout using classical report.

    Hello Friends,
    By using below code i am displaying logo in output using Classical report.
    What my problem is it is not displaying in print out.
    Please help. or else tell me how to print logo in classical report as well as output print out.
    DATA: docking TYPE REF TO cl_gui_docking_container,
          picture_control_1 TYPE REF TO cl_gui_picture,
          url(256) TYPE c ,
          query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
          html_table LIKE w3html OCCURS 1,
          return_code LIKE w3param-ret_code,
          content_type LIKE w3param-cont_type,
          content_length LIKE w3param-cont_len,
          pic_data LIKE w3mime OCCURS 0,
          pic_size TYPE i,
          repid LIKE sy-repid.
    repid = sy-repid.
    START-OF-SELECTION.
      CREATE OBJECT picture_control_1
        EXPORTING
          parent = docking.
      CHECK sy-subrc = 0.
      CALL METHOD picture_control_1->set_3d_border
        EXPORTING
          border = 5.
      CALL METHOD picture_control_1->set_display_mode
        EXPORTING
          display_mode = cl_gui_picture=>display_mode_stretch.
      CALL METHOD picture_control_1->set_position
        EXPORTING
          height = 100
          left   = 700
          top    = 1
          width  = 200.
      "Position
      IF url IS INITIAL.
        REFRESH query_table.
        query_table-name = '_OBJECT_ID'.
        " Logo Name
        query_table-value = 'ENJOYSAP_LOGO'.
        APPEND query_table.
        CALL FUNCTION 'WWW_GET_MIME_OBJECT'
          TABLES
            query_string        = query_table
            html                = html_table
            mime                = pic_data
          CHANGING
            return_code         = return_code
            content_type        = content_type
            content_length      = content_length
          EXCEPTIONS
            object_not_found    = 1
            parameter_not_found = 2
            OTHERS              = 3.
        CALL FUNCTION 'DP_CREATE_URL'
          EXPORTING
            type     = 'image'
            subtype  = cndp_sap_tab_unknown
            size     = pic_size
            lifetime = cndp_lifetime_transaction
          TABLES
            data     = pic_data
          CHANGING
            url      = url
          EXCEPTIONS
            OTHERS   = 1.
      ENDIF.
      CALL METHOD picture_control_1->load_picture_from_url
        EXPORTING
          url = url.
      WRITE : /'Classical Report Logo'.
    Regards,
    Phaneendra
    Edited by: phaneendra punukollu on Dec 31, 2009 11:38 AM
    Code Formatted by: Alvaro Tejada Galindo on Jan 4, 2010 4:52 PM

    Hello Nidhi,
    Thanks for your sugessition.
    Actual we have data from IDOCS and it is maintained in Ztables
    and need to dispaly in report ( Service centre - Warranty data ).
    The report is completed. So again going to Script means waste of time for us.
    So Plz help me  if possible in Classical report.
    Regards,
    Phaneendra

  • How to print logo in standard report

    Hi,
    How to print a logo in sap ordinary report
    Thanks,
    Sreedhar

    Hi Sreedhar,
    It is not possible to print logo in the ordinary report, but it can done through ALV.
    Write  the code in Top-of-page event in ALV.
    The following is the code for inserting the logo in ALV.
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
               I_LOGO             = 'ENJOYSAP_LOGO'
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    ENDFORM.
    Rewards if it is helpful...
    Regards,
    Omkar.

  • How to print the data Dynamically in smartforms

    Hi Experts,
    I need to print the data dynamically in different windows on the same page.For example in the first window 25 records,2nd window 25 records and 3rd window 25 records.I need it dynamically.How to achieve this?

    Hi,
    If you have an internal table which fetches the data... Then you can have table in each window and in the data tab give from row and to row values to display how many records and from where to where you want to display.
    Regards,
    -Sandeep

  • How to print  logo when ever new customer arrises?

    hi friends
    i have range of customers . i have to print logo when ever new customer arrises . if the customer data continues in 2nd page i dont have to print logo. how to get it ?
    regards
    thiru

    hi,
    are you using smartform or script for printing ?
    write the condition in program lines using the control commands ie on change of customer.
    Take separete window for logo and print that in the first page so that if the customer data extend as to next page logo window will not appear in the next window.
    and is there any table maintained for logos and customer details. if its maintained it would be easy to put the condition in the print program itself or else you can hadle it in the form.
    Regards,
    Prathima.

  • SAPSCript how to print  a comment at the end of main window on first page?

    In SAP Scripts, How do I print a comment at the end of the first page (I have several pages of data) in the main window?
    - Ven

    hi
    good
    yes we can put condition.....to display the footer window get printed after all data in main window gets over.........................assingn u r footer window to next page [ i.e u r second page] ...and write the condition
    In such senario no need to use a window for footer.
    In the Script form:
    -> In the Main Window itself after all the main data create an Element.
    -> Use BOTTOM and END-BOTTOM; write your footer information between them.
    In your Driver Program:
    -> After printing all the data (means after passing to form and before closing the form) call one WRITE-FORM with the footer element.
    I'm sure it will work.
    f u r not interested to change the print program. Then simply insert simple code in the footer wondow.
    now insert this code in ur footer window
    IF &TTXSY-PAGE& = &SAPSCRIPT-FORMPAGES&.
    *all code in footer goes here.
    ENDIF.
    &TTXSY-PAGE& holds the page number of current page.
    &SAPSCRIPT-FORMPAGES& holds total form pages.
    This will work.
    write this code then the footer will be printed in last page itself
    /: IF &NEXTPAGE& EQ 0
    whatever footer you want.
    /: ENDIF
    You need to create an element in the MAIN window. You can do it in two ways:
    1. In SE71, you can create:
    /:E FOOTER
    /:BOTTOM
    Text
    /:ENDBOTTOM
    In the print program, just call this element.
    2. In you print program, populate parameter type = BOTTOM in FM, WRITE_FORM.
    Ex.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'FOOTER'
    type = 'MAIN'
    window = 'BOTTOM'
    EXCEPTIONS....
    However, if you issue new page having new header data. Thus, new item data. And if it will exceed more than 1 page, the footer will still appear. To solve this, you need to create a new element in MAIN. Ex. INIT_FOOTER. It just contains the following:
    /:E INIT_FOOTER
    /:BOTTOM
    /:ENDBOTTOM
    Call this after passing all item data.
    reward point if helpful.
    thanks
    mrutyun^

  • SAPScript: How to print mutiful forms in one program?

    Dears,
    I want to print invoice in my program, And one invoice number should print one form.
    My question is : if there is a internal table contains 10 different invoice number, and I want to print 10
    forms. Is that means, I should use FM 'OPEN_FORM' 10 times?       
    If do, I would have to fill the popup dialogue window 10 times.
    Anybody who have good ideas about this problem?     Thank a lot.
    Sincerely yours,
    Julie

    I suppose you want to print several sapscripts in one spool
    In that case you need to use START_FORM END_FORM
    It would be something like this
    OPEN_FORM
    Loop at invoices.
    START_FORM
    ENDFORM
    endloop.
    CLOSE_FORM

  • How to print date in cheque box in sapscript??

    Hello Guru,
    We have developed or design new form for cheque printing in sapscript
    how to print date in cheque box in sap.
    1
    6
    1
    2
    2
    0
    1
    1
    thanks in advance.
    Thanks & Regards
    Richa

    hi,
    If your requirement is to display date with box,first create a Box by using following syntax
    *   &sy-datum&
    /:  BOX XPOS '0' CH YPOS '3.65' LN WIDTH '77.50' CH HEIGHT '4.5' LN FRAME '10' tw
    then adjust the box size according to your requirement by changing xpos,ypos,width and height
    with regards
    Edited by: naresh bammidi on Dec 16, 2011 8:00 AM

  • How to print the text in only last but one page in sapscripts

    hiiiiiiiiiii,
             explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

    Hello,
    The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
    So u can handle the situation in ur form like this
    /: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
    p1 TEXT
    /: endif
    Try in this way it may help u.
    Regards

  • How to print currency symbol in SAPScript

    Hi,
    How to print different currency symbol in SAP?
    The requirement is that the SAPScript should print the currency symbol along with the currency code.
    i.e. USD ($)
    The currency can be any foreign currency.
    Is there any table where i can get currency symbol or is there any way i can print this. I am working in 4.6C.
    Please help.
    Thanks,
    Pratik

    Hii
    When the user has to insert a particular symbol, from menu:
    Insert->Character->Displayble Characters:
    Here in the input field insert <156> and then press enter

  • How can i print logo in all the page

    i've created a form(SAP script) which have  five page.pls can anybody tell me how can i print logo in all the five page?

    hi,
    u can try this in
          windows
    change window type as CONST or MAIN.
    cheers,
    sam

  • How to print header in first and last  page only in SAPSCRIPT

    Hi!
    How to print header in first and last  page only in SAPSCRIPT,
    in between pages,  I need to print all line items in MAIN window only .
    Thanks in anticipation!
    Aki.

    Hi All,
    Thanks for your early update...but my requirement here is
    I have two pages (FIRST , NEXT ) First is having Header, Main and Footer
    NEXT is having Main and Footer ..I am printing PO here..let us think that my PO is having 20lines items , let us assume that it takes five pages...
    Now how application is printing is ..first set of data is printing in FIRST page and remainiang data distributed to 4 pages printing in NEXT page ..but what my requirement is , I need fifth page print on FIRST page, instead of NEXT page... Ultimately I need last set of data always print in FIRST ie out of 5 pages 1st print on FIRST 2nd 3rd 4th print on NEXT and 5th print again on FIRST .
    hope you this will clear you.
    Thanks!

  • How to print unicode in SAPscript

    hi gurus,
    I am now having a problem in printing uinicode in printing ( printer HP LaserJet 4250 PCL 6) with SAPscript. Although i have changed the font in SAPscript text ( paragraph format ) , but when i print out , the font does not change , coul you please help me this
    Thanks ,

    Let me tell you how to print double digit character in printer.
    Usually, all ENGLISH characters are single digit characters and they can be printed on ordinary printer.
    Now coming back to double digit character Japanese, chinese, Vitanamese, some special symbols etc. for printing this characters unicode enabled printer is must.
    Usually, you can ask your basis team to enable unicode to your printer, all they need is some additional hard disk, they will be setting your printer in SAP.
    Note: Until unless you enable unicode (HP LaserJet 4250 PCL 6) it acts as an ordinary printer.
    Reward points if useful.
    Regards,
    SaiRam

  • How to print Barcode using SAPscript?

    hello, everyone.
    I have some questions.
    now, I have to print some doc. that described by barcode in sapscript form.
    so, try to test in t-code so10
    input value SAPSCRIP-BARCODETEST, ST, EN.
    and click 'print-preview'
    result is correctly output in pint privew.
    but when I print dis priviewed doc. disappeared barcode image.
    is this O.K??
    I have to do something?? (Add DLL file, barcode font or etc....)
    I don't know how to print barcode using SAPScript. anybody solve this problem.please.
    p.s this system is SAP ECC 6.0 only ABAP.
    printer setting is front-end print.

    hello, everyone.
    I have some questions.
    now, I have to print some doc. that described by barcode in sapscript form.
    so, try to test in t-code so10
    input value SAPSCRIP-BARCODETEST, ST, EN.
    and click 'print-preview'
    result is correctly output in pint privew.
    but when I print dis priviewed doc. disappeared barcode image.
    is this O.K??
    I have to do something?? (Add DLL file, barcode font or etc....)
    I don't know how to print barcode using SAPScript. anybody solve this problem.please.
    p.s this system is SAP ECC 6.0 only ABAP.
    printer setting is front-end print.

  • HT4356 My Ipad prints to my airprinter that works OK but how do I set picture size/position etc

    My Ipad prints to my airprinter that works OK but how do I set picture size/position etc. At the moment from the photos app it prints an A6 photo in top left corner. How do I change that to something different.

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    If you put photo paper in the printer it will print correctly on the paper. Also, some photo printers will adjust the size photo printed when you put different size photo paper in the tray.

Maybe you are looking for

  • Can I view the same pdf on multiple iPads at the same time with 1 iPad operating as the master (controlling page turns etc)?

    Would like to use 4nr iPads as an autocue system. Can I view the same pdf on multiple iPads at the same time with 1 iPad operating as the master (controlling page turns etc) and the others operating as slaves? Can this be done without the use of 3G o

  • Problem on BEx Web Analyzer .URGENT!!

    Hy, i have this seriously problem: when open BEx Web Analyzer , the system remain in processing status and the 0ANALYSIS_PATTERN isn't displayed. Could you help me? Thank's a lot Andrea Maraviglia

  • Install Essbase on solaris

    hello, I am looking for documentation to install hyperion essbase on solaris can someone send me a link, or install prerequisites. I searched on the Oracle I can not find. Thank you in advance.

  • How to load French Version of a Workflow

    We have customized Invoice Approval worklfow and loaded this in the database. The notifications are in American English. Now we have multi-language and we have French language. We need to do customization in French. But how to load the French version

  • Samsung EX2F Raw Datei mit Aperture

    I am using Aperture 3 to organise my pictures. As a second camera I am using a Samsung EX2F. Aperture can´t import the .srw raw files from the camera. Has anybody got an idea how to manage them in Aperture?