Print Logo on PO Sapscript for specific Pur Org.

Hello Experts,
Business has a requirement to print our company Logo on PO Sapscript for certain Purchasing Orgnizations. We have a Z version of MEDRUCK. Honestly, I have never worked on Sapscripts before.
When I looked at the Print Program it has the following Includes:
INCLUDE ZM06PTOP.
INCLUDE ZM06PF01.
INCLUDE ZM06PF02.
INCLUDE ZM06PF03.
INCLUDE ZM06PF04.
INCLUDE ZM06PFVA.
INCLUDE ZM06PE01.
INCLUDE ZM06PF05.
INCLUDE ZM06PF06.
So I was wondering Is it possible to add logo based on POrg? If Yes, where should I insert (which include) my code for printing the Logo(based on Pur Org)? I assume that I need to create 1 more window?
Please let me know.
Thanks.

1 - You need to upload the logo to sap. To do that, use the program RSTXLDMC. Logo extension file must be a TIF or TIFF.
2 - Create a window on first screen. Call that window as LOGO.
3 - On LOGO window, put the logic to change the logo accordingly to Pur. Org doing like the code below.
/:IF &EKKO-EKORG& = 'XXXX'
/:  INCLUDE ZHEX-MACRO-LOGOXXXX OBJECT TEXT ID ST
/:ENDIF.
/:IF &EKKO-EKORG& = 'YYYY'
/:  INCLUDE ZHEX-MACRO-LOGOYYYY OBJECT TEXT ID ST
/:ENDIF.
Be attention that ZHEX-MACRO-LOGOXXXX (or YYYY) is the name of logo on databse and ST is the language. That is not so nice to do because you need to upload logo several times until you have a good size and quality.
I hope my instructions help you.

Similar Messages

  • Copying sapscript for printing in different language

    Hi,
    I need to create a sapscript which needs to be printed in 2 langauges and assigned to 2 different output types(one for english language and other for Chinese).
    I have already created teh sapscript for the english language and not sure how to create the other one for chinese language.
    The language for printing will be determined from vendor master.
    Do I need to copy the sapscript(English version) and while copying just maintain it in English language or Chinese language?
    Please advise.

    Hi ,
    As David says,
    you can create your chinese language layout and use Menu path
    Form-> Copy From... and copy your english language  lanyout to your chinese langyage layout.
    after that you can use SE63 for translation your english Script to chinese language Script or directly you can change heading text  and other text in inside your layout.
    but make sure  if your paragraph format is not support chinese language then you can create new paragraph format for chinese language Script.
    Regards,
    Prasenjit

  • Disable Print for specific situations

    I Use Adobe Pro X.
    Is there a way to make a form not print if certain information is entered?  For instance, some forms in our list are for specific clients only. If a user pulls up a form with the incorrect client, I want to add a script that disables the form from being printed or faxed. I already added script to display a warning message, but that won't prevent anyone from printing it - and then the recipient will receive the letter with the warning message - which is potentially worse than just receiving the wrong letter.
    Any assistance is greatly appreciated.
    Thanks!

    Tto detect a specific client, each system the client has would need a spacial file installed on it and the Organization filled in for the Identity object.  This will be a real challenge.
    Then once the print process is started there is no way to cancel it. You could unhide a hidden form filed and cover the content of the PDF. But then this could easily be defeated.
    So in the end, it could be done, but you most likely will not be able to implement it outside of a given organization.

  • Plant Specific Vendor for Pur Org

    Hello Experts,
    Scenario: One global purchasing org. procuring across regions and region specific purchase orgs for US / ASIA / Australia
    We want to have only one purchasing org and we want to have local suppliers assign to it. This local suppliers can be plant specific. No other plant in another region should be able to use this local suppliers even with the global pur org.
    How can we achieve this.
    Thanks and Regards,
    Anil

    hi,
    we cannot restrict as u said, with the standard sap.but we can maintain internal table with the combination of plant, pur org, vendor and when we create PO , system has to check in this table and throw message based on requirement . this logic can put in BADI for PO creation. pls check with the ABAP er regarding this
    regards
    vengaladasu

  • Printing Song List for Specific Playlist

    Until the recent upgrade to 8.2, when printing out a song list for each of the 70 plus playlists I have created, iTunes always printed, on the left margin of the header, the classic musical note icon identifying iTunes. With this last update, it has stopped printing that icon, making the newly printed pages different from the others already printed under prior versions. Any ideas on (1) why the icon has disappeared; (2) how to get it back; or (3) how to work around and force the display and print. Thanks in advance for any ideas.

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes forums.
    Regards.

  • SAPSCRIPT for Intrastat.

    Hi all experts!
    I have a question concerning sapscript and Intrastat.
    First some background information:
    Country's inside EU have to inform to the locally central Statistic bureau. This information can be printed out from SAP. For my case we have to send the information to the Statistics Sweden.
    In the SAP system, I am working with, the printout is coming with only the values and text. This mean that the form with the fields and logo have to be put in the printer, by our self. And hope that the value and text come in the right field’s. Like you se a quit bad solution.
    My question's are:
    Is it a standard program/sapscript in SAP, that can be used?
    Or is it a Bapi or Badi that can be implemented and will do the work?
    Or do we have to make the hole form by our self, in Sapscript?
    First one with the right answer will be given lots of point
    Thanks a lot for helping me out.

    Hi Ali,
    it depends , which module is it related to. if there are no standard script that meets your requirement then , you need to Start create a NEw script or Smart form to do the job.
    Regards
    vijay

  • Print preview in color (sapscript)

    hello
    does anybody know if it's possible that the print preview of an invoice (vf03) is in color ?
    we are using sapscipt for out output
      the logo is uploaded as color but it shows black/white on the print preview screen
      any idea's ?
    regards

    why do you want to preview in color as sapscript doesn't print in color? (sapscript does not support color, use smart form instead or other newest technology)

  • Printing Logo with Zebra 105SL

    Moderator message: Do not offer points
    Hi All,
    I want to print company logo in the goods label but am unable to do so. I tried using ~DG command in SAPScript for downloading graphics in the zebra printer like:
    Format ~DGd:o.x,t,w,data
    where data is the HEX representation of the graphic, d = device to store image, o = image name, x = extension, t = total number of bytes in graphic, w = number of bytes per row
    The example i tried is:
    ~DGR:SAMPLE.GRF,00080,010,
    FFFFFFFFFFFFFFFFFFFF
    8000FFFF0000FFFF0001
    8000FFFF0000FFFF0001
    8000FFFF0000FFFF0001
    FFFF0000FFFF0000FFFF
    FFFF0000FFFF0000FFFF
    FFFF0000FFFF0000FFFF
    FFFFFFFFFFFFFFFFFFFF
    ^XA
    FO20,20XGR:SAMPLE.GRF,1,1^FS
    ^XZ
    But i am getting printer error - out of memory. Can anyone tell me what should i do in this case? How can i increase the printer flash memory size or is there some other way to store the graphic image in printer?
    <<text removed>>
    Thanks,
    Ananya
    Edited by: Matt on Nov 19, 2008 2:31 PM

    (I'm answering this question for a reference to a problem, with the knowledge that this question may be terribly out of date. But at least this way, the answer to this question is actually answered.)
    What you need to do is look into the printers properties and find a tab relating to its configuration and settings. Under there, you'll find 4 buttons. 2 of them were greyed out for me, but the important one, labled something along the lines of "cache" or "memory" (the bottom right if I'm not remembering the label correctly) is what you need to click on. Then flush the printer's cache and reset it's memory.
    Be sure to back up any custom/non-default settings it may have, as they might get erased.

  • Print Logo in Classic Report (Write Method,Not ALV)

    Hi All,
    I'm currently doing conversion of the All the Classic Report with addition of Header with 'LOGO'.
    I'm willing to find out that Function (CALL FUNCTION 'WWW_GET_MIME_OBJECT') is only able for display but not show out during printing.
    Is that any method, I can do it(Print with Logo) without conversion to SAP Script or Smartform that was exhausted.
    *Please take note is Classic Report with Write Method (Line by Line), Not ALV.
    Thank you all in advance
    Regards,
    Trevor Wong.

    Hi,
    It is possible to include logo in classical report but its not possible to print logo in classical report. It can be done in ALV's.
    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.
    Regards
    Purnand

  • How to do selection of the Matt Black/ Photo Black in the print setup of Acrobat Pro (for an Epson 7890).

    How to do selection of the Matt Black/ Photo Black in the print setup of Acrobat Pro (for an Epson 7890) ? Selection of the media ?

    Acrobat's print dialog doesn't deal with hardware-specific features, for that you have to click on the "Properties" button next to the dropdown printer selection field.

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

  • I need to print logo in alv grid

    I need to print logo in alv grid .As of now its getting displayed but it cannot be printed .Kindly tell me wether there is any option to print it .Eitjer using ALV or Object oriented ALV.Please reply soon

    Hi Deepti,
    Refer the code below.
    report  sy-repid.
    type-pools : slis.
    *ALV Formatting tables /structures
    data: gt_fieldcat type slis_t_fieldcat_alv.
    data: gt_events type slis_t_event.
    data: gs_layout type slis_layout_alv.
    data: gt_page   type slis_t_listheader.
    data: gs_page type slis_listheader.
    data: v_repid like sy-repid.
    *ALV Formatting work area
    data: w_fieldcat type slis_fieldcat_alv.
    data: w_events type slis_alv_event.
    data: gt_bsid type table of bsid with header line.
    initialization.
      perform build_events.
      perform build_page_header.
    start-of-selection.
    *perform build_comment.     "top_of_page - in initialization at present
      select * from bsid into table gt_bsid up to 10 rows.
    *perform populate_for_fm using '1' '3' 'BUKRS' '8' 'GT_BSID' 'Whee'.
    *USING = Row, Column, Field name, display length, table name, heading
    *OR
      perform build_fieldcat.
      gs_layout-zebra = 'X'.
    *top of page event does not work without I_callback_program
      v_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program                = v_repid
          i_structure_name                  = 'BSID'
       i_background_id                   = 'ALV_BACKGROUND'
          i_grid_title                      = 'This is the grid title'
      I_GRID_SETTINGS                   =
          is_layout                         = gs_layout
          it_fieldcat                       = gt_fieldcat[]
          it_events                         = gt_events[]
        tables
          t_outtab                          = gt_bsid.
    Form..............:  populate_for_fm
    Description.......:  Populates fields for function module used in ALV
    form populate_for_fm using    p_row
                                        p_col
                                        p_fieldname
                                        p_len
                                        p_table
                                        p_desc.
      w_fieldcat-row_pos = p_row.          "Row Position
      w_fieldcat-col_pos = p_col.          "Column Position
      w_fieldcat-fieldname = p_fieldname.  "Field name
      w_fieldcat-outputlen = p_len.        "Column Lenth
      w_fieldcat-tabname = p_table.        "Table name
      w_fieldcat-reptext_ddic = p_desc.    "Field Description
      w_fieldcat-input = '1'.
      append w_fieldcat to gt_fieldcat.
      clear w_fieldcat.
    endform.                    " populate_for_fm
    *&      Form  build_events
    form build_events.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = gt_events.
      read table gt_events with key name =  slis_ev_user_command
                               into ls_event.
      if sy-subrc = 0.
        move slis_ev_user_command to ls_event-form.
        append ls_event to gt_events.
      endif.
      read table gt_events with key name =  slis_ev_top_of_page
                               into ls_event.
      if sy-subrc = 0.
        move slis_ev_top_of_page to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " build_events
    *&      Form  USER_COMMAND
    When user command is called it uses 2 parameters. The itab
    passed to the ALV is in whatever order it currently is on screen.
    Therefore, you can read table itab index rs_selfield-tabindex to get
    all data from the table. You can also check r_ucomm and code
    accordingly.
    form user_command using  r_ucomm      like sy-ucomm
                             rs_selfield type slis_selfield.
      read table gt_bsid index rs_selfield-tabindex.
    error checking etc.
      set parameter id 'KUN' field gt_bsid-kunnr.
      call transaction 'XD03' and skip first screen.
    endform.
    *&      Form  top_of_page
    Your own company logo can go here if it has been saved (OAOR)
    If the logo is larger than the size of the headings in gt_page,
    the window will not show full logo and will have a scroll bar. Thus,
    it is a good idea to have a standard ALV header if you are going to
    use logos in your top of page.
    form top_of_page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = gt_page
                i_logo             = 'ENJOYSAP_LOGO'.
    endform.
    *&      Form  build_fieldcat
    *Many and varied fields are available here. Have a look at documentation
    *for FM REUSE_ALV_LIST_DISPLAY and REUSE_ALV_FIELDCATALOG_MERGE
    form build_fieldcat.
      w_fieldcat-fieldname = 'BUDAT'.
      w_fieldcat-seltext_m = 'Dte pst'.
      w_fieldcat-ddictxt(1) = 'M'.
    Can change the position of fields if you do not want them in order
    of the DDIC or itab
    w_fieldcat-row_pos = '1'.
    w_fieldcat-col_pos = '10'.
      append w_fieldcat to gt_fieldcat.
      clear w_fieldcat.
    endform.                    " build_fieldcat
    *&      Form  build_page_header
          gt_page is used in top of page (ALV subroutine - NOT event)
          *H = Header, S = Selection, A = Action
    form build_page_header.
    For Headers, Key is not printed and is irrelevant. Will not cause
    a syntax error, but is not used.
      gs_page-typ = 'H'.
      gs_page-info = 'Header 1'.
      append gs_page to gt_page.
      gs_page-typ = 'H'.
      gs_page-info = 'Header 2'.
      append gs_page to gt_page.
    For Selections, the Key is printed (bold). It can be anything up to 20
    bytes. It gets printed in order of code here, not by key value.
      gs_page-typ = 'S'.
      gs_page-key = 'And the winner is:'.
      gs_page-info = 'Selection 1'.
      append gs_page to gt_page.
      gs_page-typ = 'S'.
      gs_page-key = 'Runner up:'.
      gs_page-info = 'Selection 2'.
      append gs_page to gt_page.
    For Action, Key is also irrelevant.
      gs_page-typ = 'A'.
      gs_page-info = 'Action goes here'.
      append gs_page to gt_page.
    endform.                    " build_page_header
    Settings for the Logo :
    01) GOTO - OAOR (Business Document Navigator)
    02) Give Class Name - PICTURES
    Class Type - OT
    Object type - whatever you want to call your area EG: OURCOMP.... then Execute
    03) Top left will say PICTURES. Bottom left will have multi tab. Select Create and double-click on Screen.
    04) Select your image from the appropriate directory.
    05) Give the image an appropriate name (not Screen)
    06) It will tell you document stored successfully.
    07) You can now find your logo under the heading OURCOMP in top left window.
    08) You can reference the logo in things like FM REUSE_ALV_COMMENTARY_WRITE or any other area which may reference these things. EG: I_LOGO = 'OURCOMP'. You can preview image by double-clicking it.
    <b>Please reward points if it helps.</b>
    Regards,
    Amit Mishra
    Message was edited by: Amit Mishra

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

  • Are the fonts installed with the Mac OS OK to use for commercail use? ie, a logo which willbe used for packaging, TV broadcast and internet.

    Are the fonts installed with the Mac OS 10.6 OK to use for commercial use? ie, a logo which willbe used for packaging, TV broadcast and internet.

    srjeffgr wrote:
    Some font foundries require extended licesnes for different uses.
    You're welcome. Again, as mentioned in that discussion, you can use Font Book to check if the foundry has entered any license limitation notices in the font info (Preview > Show Font Info).
    Basically, fonts are code. The copyright applies to the code. If the product you distribute doesn't include the code, then the copyright does not apply to it. That's why embedding has to be dealt with specifically, because embedding fonts in a document means including the code or parts of it in the document.

Maybe you are looking for