Including logo in report ?

Hi,
We are building report using "Build report using dynamic template" and want to include the company logo with the report. However, if we put the logo, save the report and when its opened again the logo is gone. Is there a way we can save this report with the company logo attached to it.
using 7.0 NW version.
Regards,
Rohit
Edited by: abhinav a on Oct 1, 2010 7:31 AM

hello,
please try to run the report outside apps. it might be, that the report is modified by apps prior to beeing run.
if it works fine outside, which i am sure it will, i am afraid you have to contact your apps support to check with them.
sorry for not beeing more specific, but it is very complicated to find problems as long as they only reporduce in the apps-environment.
regards,
the oracle reports team

Similar Messages

  • Uploading Logo in report program....Urgent

    Dear SDN Team Members,
    I'm trying to upload the logo into my report program.  I've this logo in smartform but i'm not sure how to upload that logo into my Report program.
    Could anyone help me send the code for the same.
    Thanks in Advance.
    Best Regards!
    Krishna.

    Hello Krishna,
    I don't think the Logo can be included in ordinary report.
    It can be done use ALV grid.
    Refer to this sample report <b>BALVST02_GRID</b>
    If useful reward.
    Vasanth

  • OBIEE 11g Agent Includes Action Link Report Name

    OBIEE 11g Agent Includes Action Link Report Name
    I have a dashboard page with multiple reports. One of the reports has Action Links to drill to another report. When I view the dashboard as a web page, the report with the Action Links look fine. The link fields are colored blue. When I send this dashboard page as an HTML email, it shows the Action Link report name in the cell with the other data.
    The dashboard page sent out as an agent should look the same as the web page and the Action Link report name should not be visible.
    Any ideas?
    Thanks!
    Eric

    So you spoofed the values of the 2nd column to have the report act almost like a menu listing?
    if that's the case then check the data type of column 2, it should be set to HTML. Then you will just need to build your HTML tag within the column formula.
    Example below bins the year name into a Link HTML Tag:
    '<a href="http://'|| CASE  WHEN "Time"."T05 Per Name Year" = '2011' THEN 'www.google.com' WHEN "Time"."T05 Per Name Year" = '2012' THEN 'www.yahoo.com' ELSE 'www.apple.com' END || '" target="_blank" > ' || CASE  WHEN "Time"."T05 Per Name Year" = '2011' THEN 'www.google.com' WHEN "Time"."T05 Per Name Year" = '2012' THEN 'www.yahoo.com' ELSE 'www.apple.com' END || '</a>'
    if that is not what you are attempting to do, please clarify.

  • LOGO in report painter

    HI Guru's.
    I want to add Logo in report developed in report painter. we have developed Balance sheet report with help of report painter.
    now i client want their logo on top of this report. So please advice on this issue.
    thanks in advance.

    Hello,
    I could not any such possibility to attach a logo in report painter report.
    However, you can achieve, in case if it a script or smart form.
    Regards,
    Ravi

  • How to add logo in report

    Hello All,,
    Can anyone help in knowing how can i add a logo on report. That is in our Z report.
    Thanks in advance
    Anu

    See this example:
    * Program: ZZ_ALV_REPORT_STUB
    * Author : Clayton Mergen
    * Date   :
    * Purpose: Report using ALV function
    * Notes:
    * 1) Logos & wallpapers can be found in table BDS_CONN05
    *    with class = PICTURES
    * 2) Transaction OAER can be used to create PICTURES.
    *    Run transaction OAER with class name = PICTURES, Class type = OT,
    *    and Object key with whatever name you want to create.  In the
    *    next screen, right clicking on screen and import
    *                              Revisions
    * Name    :
    * Date    :
    * Comments:
    report zz_alv_report_stub
           no standard page heading
           line-size 200
           line-count 65
           message-id zz.
    * Tables
    tables:
      ekpo,
      trdir.
    * Global Types
    type-pools: slis.
    * Global Internal Tables
    data:
      i_fieldcat_alv  type slis_t_fieldcat_alv,
      i_events        type slis_t_event,
      i_event_exit    type slis_t_event_exit,
      i_list_comments type slis_t_listheader,
      i_excluding     type slis_t_extab.
    * Display data
    data: begin of i_data occurs 0,
            name    like trdir-name,
            clas    like trdir-clas,
            subc    like trdir-subc,
            cnam    like trdir-cnam,
            cdat    like trdir-cdat,
            myfield(1) type c,
          end of i_data.
    * Global Variables
    data:
      w_variant          like disvariant,
      wx_variant         like disvariant,
      w_variant_save(1)  type c,
      w_exit(1)          type c,
      w_repid            like sy-repid,
      w_user_specific(1) type c,
      w_callback_ucomm   type slis_formname,
      w_print            type slis_print_alv,
      w_layout           type slis_layout_alv,
      w_html_top_of_page type  slis_formname,
      w_fieldcat_alv     like line of i_fieldcat_alv,
      w_excluding        like line of i_excluding,
      w_events           like line of i_events,
      w_event_exit       like line of i_event_exit,
      w_list_comments    like line of i_list_comments.
    * Global Constants
    *constants:
    * Selection Screen
    selection-screen begin of block blk_criteria with frame title text-f01.
    select-options:
      s_name for trdir-name.
    selection-screen end of block blk_criteria.
    selection-screen begin of block blk_params with frame title text-f02.
    parameters:
      p_vari like disvariant-variant.
    selection-screen skip 1.
    parameters:
      p_grid radiobutton group rb01 default 'X',
      p_html as checkbox.
    selection-screen skip 1.
    parameters:
      p_list radiobutton group rb01.
    selection-screen end of block blk_params.
    * Initialization
    initialization.
      perform init_variant.
      perform variant_default using p_vari.
      clear: s_name[].
      s_name-sign   = 'I'.
      s_name-option = 'CP'.
      s_name-low    = 'Z*'.
      append s_name.
    * At Selection Screen PBO
    at selection-screen output.
    * At Selection Screen Value Request
    at selection-screen on value-request for p_vari.
      perform variant_f4 using p_vari.
    * At Selection Screen
    at selection-screen.
      perform variant_fill.
    * Start of Selection
    start-of-selection.
      perform get_data.
    end-of-selection.
      perform fieldcat_build.
      perform event_build.
      perform event_exit_build.
      perform exclude_build.
      perform print_build.
      perform layout_build.
      perform display_data.
    * Top of Page
    top-of-page.
    * Top of Page During Line Sel
    top-of-page during line-selection.
    * At User Command
    at user-command.
    * At Line Selection
    at line-selection.
    * Macros
      define skip_1.
        write: /001 sy-vline,
                    at sy-linsz sy-vline.
      end-of-definition.
    *                                 Forms
    *&      Form  variant_f4
    form variant_f4 using p_variant.
      call function 'LVC_VARIANT_F4'
           exporting
                is_variant    = w_variant
                i_save        = w_variant_save
           importing
                e_exit        = w_exit
                es_variant    = wx_variant
           exceptions
                not_found     = 1
                program_error = 2
                others        = 3.
      if sy-subrc <> 0.
        message i000(zz) with text-g01.
      endif.
      if w_exit is initial.
        w_variant-variant = wx_variant-variant.
        p_variant         = wx_variant-variant.
      endif.
    endform.
    *&      Form  init_variant
    form init_variant.
      clear: w_variant.
      w_repid              = sy-repid.
      w_variant-report     = w_repid.
      w_variant-username   = sy-uname.
      w_variant_save       = 'A'. "All types
    endform.
    *&      Form  variant_default
    form variant_default using p_variant.
      wx_variant = w_variant.
      if not p_variant is initial.
        wx_variant-variant = p_variant.
      endif.
      call function 'LVC_VARIANT_DEFAULT_GET'
           exporting
                i_save        = w_variant_save
           changing
                cs_variant    = wx_variant
           exceptions
                wrong_input   = 1
                not_found     = 2
                program_error = 3
                others        = 4.
      case sy-subrc.
        when 0.
          p_variant = wx_variant-variant.
        when 2.
          clear: p_variant.
      endcase.
    endform.
    *&      Form  variant_fill
    form variant_fill.
      clear: w_variant.
      if p_vari is initial.
        w_variant-variant = 'STANDARD'.
        w_variant-report  = w_repid.
      else.
        w_variant-variant = p_vari.
        w_variant-report  = w_repid.
        call function 'LVC_VARIANT_EXISTENCE_CHECK'
             exporting
                  i_save     = w_variant_save
             changing
                  cs_variant = w_variant
             exceptions
                  others     = 01.
        if sy-subrc ne 0.
          message i000(zz) with text-g02.
        endif.
      endif.
    endform.
    *&      Form  fieldcat_build
    form fieldcat_build.
      call function 'REUSE_ALV_FIELDCATALOG_MERGE'
           exporting
                i_program_name     = w_repid
    *           i_structure_name   = 'TRDIR'
                i_internal_tabname = 'I_DATA'
                i_inclname         = w_repid
           changing
                ct_fieldcat        = i_fieldcat_alv.
    * Modify displayed fields
      loop at i_fieldcat_alv into w_fieldcat_alv.
        case w_fieldcat_alv-fieldname.
          when 'NAME'.
            w_fieldcat_alv-hotspot   = 'X'.
          when 'MYFIELD'.
            w_fieldcat_alv-checkbox  = 'X'.
            w_fieldcat_alv-seltext_s = 'MyChkBox'.
          when others.
        endcase.
        modify i_fieldcat_alv from w_fieldcat_alv.
      endloop.
    endform.
    *&      Form  display_data
    form display_data.
      w_callback_ucomm   = 'CALLBACK_UCOMM'.
      case 'X'.
        when p_grid.
          if p_html = 'X'.
            w_html_top_of_page = 'HTML_TOP_OF_PAGE'.
          endif.
          call function 'REUSE_ALV_GRID_DISPLAY'
               exporting
    *               i_background_id             = 'SIWB_WALLPAPER'
                    i_background_id             = 'SIWB_WALLPAPER'
                    i_callback_program          = w_repid
                    i_callback_html_top_of_page = w_html_top_of_page
    *               i_structure_name            = 'TRDIR'
                    i_default                   = 'X'
                    i_save                      = 'A'
                    is_variant                  = w_variant
                    is_layout                   = w_layout
                    i_callback_user_command     = w_callback_ucomm
                    it_fieldcat                 = i_fieldcat_alv
                    it_events                   = i_events
                    it_event_exit               = i_event_exit
                    it_excluding                = i_excluding
                    is_print                    = w_print
    *               i_screen_start_column       = 1
    *               i_screen_start_line         = 1
    *               i_screen_end_column         = 70
    *               i_screen_end_line           = 30
               tables
                    t_outtab                    = i_data.
        when p_list.
          call function 'REUSE_ALV_LIST_DISPLAY'
               exporting
                    i_background_id         = 'ALV_BACKGROUND'
                    i_callback_program      = w_repid
                    i_default               = 'X'
                    i_save                  = 'A'
                    is_variant              = w_variant
                    is_layout               = w_layout
                    i_callback_user_command = w_callback_ucomm
                    it_fieldcat             = i_fieldcat_alv
                    it_events               = i_events
                    it_event_exit           = i_event_exit
                    is_print                = w_print
               tables
                    t_outtab                = i_data.
      endcase.
    endform.
    *       FORM user_command                                             *
    form callback_ucomm  using r_ucomm like sy-ucomm
                               rs_selfield type slis_selfield.
      message i000(zz) with r_ucomm.
      case r_ucomm.
        when '&IC1'.
          set parameter id 'RID' field rs_selfield-value.
          call transaction 'SE38'.
        when others.
      endcase.
    endform.
    *&      Form  get_data
    form get_data.
      select * up to 15 rows from trdir
             into corresponding fields of table i_data
             where name in s_name.
    endform.
    *       FORM ALV_TOP_OF_PAGE                                          *
    form alv_top_of_page.
      clear: i_list_comments[].
      w_list_comments-typ  = 'H'. "H=Header, S=Selection, A=Action
      w_list_comments-key  = ''.
      w_list_comments-info = 'Info 1'.
      append w_list_comments to i_list_comments.
      w_list_comments-typ  = 'A'. " H = Header, S = Selection, A = Action
      w_list_comments-key  = ''.
      w_list_comments-info = 'Begin of list'.
      append w_list_comments to i_list_comments.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                i_logo             = 'ENJOYSAP_LOGO'
                it_list_commentary = i_list_comments.
    endform.
    *&      Form  event_build
    form event_build.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = i_events.
      read table i_events
           with key name = slis_ev_top_of_page
           into w_events.
      if sy-subrc = 0.
        move 'ALV_TOP_OF_PAGE' to w_events-form.
        modify i_events from w_events index sy-tabix.
      endif.
      read table i_events
           with key name = slis_ev_end_of_list
           into w_events.
      if sy-subrc = 0.
        move 'ALV_END_OF_LIST' to w_events-form.
        modify i_events from w_events index sy-tabix.
      endif.
      read table i_events
           with key name = slis_ev_end_of_page
           into w_events.
      if sy-subrc = 0.
        move 'ALV_END_OF_PAGE' to w_events-form.
        modify i_events from w_events index sy-tabix.
      endif.
    endform.
    *       FORM alv_end_of_list                                          *
    form alv_end_of_list.
      clear: i_list_comments[].
      w_list_comments-typ = 'A'. "H = Header, S = Selection, A = Action
      w_list_comments-key = ''.
      w_list_comments-info = 'End of list'.
      append w_list_comments to i_list_comments.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = i_list_comments
                i_logo             = 'ZMYOBJECTKEY'
                i_end_of_list_grid = 'X'.
    endform.
    *       FORM alv_end_of_page                                          *
    form alv_end_of_page.
    endform.
    *&      Form  print_build
    form print_build.
      w_print-no_print_listinfos = 'X'.
    endform.
    *&      Form  layout_build
    form layout_build.
      w_layout-zebra                = 'X'.
      w_layout-no_vline             = 'X'.
      w_layout-colwidth_optimize    = 'X'.
      w_layout-detail_popup         = 'X'.
      w_layout-detail_initial_lines = 'X'.
      w_layout-detail_titlebar      = 'Detail Title Bar'.
    endform.
    *&      Form  event_exit_build
    form event_exit_build.
      clear: i_event_exit[].
    * Pick
      w_event_exit-ucomm  = '&ETA'.
      w_event_exit-before = ' '.
      w_event_exit-after  = 'X'.
      append w_event_exit to i_event_exit.
    endform.
    *       FORM HTML_TOP_OF_PAGE                                         *
    form html_top_of_page using r_top type ref to cl_dd_document.
      data:
        text     type sdydo_text_element,
        s_table  type ref to cl_dd_table_element,
        col_key  type ref to cl_dd_area,
        col_info type ref to cl_dd_area,
        a_logo   type ref to cl_dd_area.
    * Split TOP-Document
      call method r_top->vertical_split
                exporting split_area  = r_top
                          split_width = '30%'
                importing right_area  = a_logo.
    * Fill TOP-Document
      call method r_top->add_text
                exporting text  = 'Example of a Heading'
                sap_style       = 'HEADING'.
      call method r_top->new_line.
      call method r_top->new_line.
      call method r_top->add_table
                exporting no_of_columns = 2
                          with_heading  = ' '
                          border        = '1'
                importing table         = s_table.
      call method s_table->add_column importing column = col_key.
      call method s_table->add_column importing column = col_info.
      text = 'A key value marked'.
      call method col_key->add_text
                exporting text         = text
                          sap_emphasis = 'Strong'.
      call method col_info->add_gap exporting width = 6.
      text = '600' .
      call method col_info->add_text
                exporting text      = text
                          sap_style = 'Key'.
      call method col_info->add_gap  exporting width = 3.
      text = 'Block brick units'.
      call method col_info->add_text exporting text  = text.
      call method s_table->new_row.
      text = 'Storage Bin'.
      call method col_key->add_text
                exporting text         = text
                          sap_emphasis = 'Strong'.
      call method col_info->add_gap exporting width = 7.
      text = 'C-A-004'.
      call method col_info->add_text exporting text = text.
      call method s_table->new_row.
      text = 'Warehouse number' .
      call method col_key->add_text
                exporting text         = text
                          sap_emphasis = 'Strong'.
      call method col_info->add_gap  exporting width = 6.
      text = '200' .
      call method col_info->add_text
                exporting text      = text
                          sap_style = 'Success'.
      call method col_info->add_gap  exporting width = 3.
      text = 'marked success'.
      call method col_info->add_text exporting text = text.
      call method s_table->new_row.
      call method r_top->new_line.
      text = 'This last line is a comment in italics.'.
      call method r_top->add_text
                exporting text         = text
                          sap_emphasis = 'EMPHASIS'.
      call method r_top->new_line.
      call method a_logo->add_picture
    *           exporting picture_id = 'ZZTESTBMP'.
                exporting picture_id = 'ENJOYSAP_LOGO'.
    endform.
    *&      Form  exclude_build
    form exclude_build.
      w_excluding = '&GRAPH'. "Graphic
      append w_excluding to i_excluding.
    endform.                    " exclude_build

  • Print /add logo in reports 10g which is running in linux

    hi
    i want to print /add logo in reports 10g which is running in linux environment and want to change logo programmatically.
    how can i achieve this
    reports version is Report Builder 10.1.2.0.2

    Hi Thanesh,
    There are two possibilities either create a 'Z' one or go through standard one. I prefer you to try the standard one.
    Have a look on this link.
    [Add logo in PE51;
    Hope this will solve your problem.
    Regards,
    Gaurav

  • How to include Logo created to transport request?

    Hi guys,
    How to include Logo created to transport request?
    I have created a logo via se78 and i want to incldue in the transport. How?
    Thanks!

    Hi,
    In Se78 select the logo and click on the truck button..then it will prompt for TR..
    Regards,
    Omkaram.

  • To include logo in layout

    Hi everybody,
    I want to know how to include a company's logo in a layout as a header.The layout that i have with me is in GIF format.The name of the logo is logo.gif
    How it can be done?
    Regards,
    Varadharajan

    Hi varadharajan,
    1. RSTXLDMC
       This is the standard SAP Program
       to UPLOAD .TIF files.
       Please convert your gif file
       to .TIF file
       (may be using PHOTO EDITOR , KODAK Image Editor , etc)
    2. Use this program,
       to upload this image.
       This program has OPTIONS
       like Colour logo,B&W logo,
       Positioning (absolute or relative)
      These options are also important !
      Because they will Specify where the logo
      appears in your sapscript
      (Top Left, Bottom, Middle Etc)
      (However, using window in layout,
       and including logo in that window,
      we can FURTHER CONTROL the POSITION of logo)
    3. /: INCLUDE XXYYZZ OBJECT TEXT ID ST
       Use this above line
       in your sapscript layout
       to include the logo.
       (XXYYZZ is the name by which u uploaded
       thru the above program)
    regards,
    amit m.
    Message was edited by: Amit Mittal
    Message was edited by: Amit Mittal

  • Is Voyager included with Crystal Reports Server 2008 V1?

    Hi all,
    Is Voyager included with Crystal Reports Server 2008 V1?
    Regards,
    Janice

    Hi
    the CRS licensing model does not support Voyager. You may want to consider installing BO Edge or BO Enterprise for this. I would recommend to contact your local SAP sales office to get more information on this.
    Regards,
    Stratos

  • Including LOGO of company in form

    hi,
    Can anyone tell me how to include logo of some company in the form?

    Hi,
    Follow these steps....... hope this will help you.
    1. The logo should be of Bitmap Image.
    2 Goto SE78-> Graphics-> Import.
    Give filename as the location where your logo is present.
    In save as:
    Name - your desired name for the logo
    Descriotion - description of your logo
    type- either Black& White or Color according to ur Requirement.
    In print attributes
    Check both Reserve high automatically and compression and press ENTER.
    After that Transport this Bitmap image.
    And in Form u can directly use the name of the Logo with which u have saved it.
    In smartforms
    in the page where you want to print the logo, create a graphic window.
    Name: name of the logo
    object: graphics
    id: bmap
    select the radio button according to your requirement(b&w, or color..)
    and resolution of your wish.
    And in the conditions tab give the condition according to the requirement(acc. to the company code..)
    Reward if useful,
    Regards,
    Shaheen.

  • SOA includes FORMS and REPORT service???

    Hi all,
    Is any one know the Oracle SOA Suite 10g Release 3 (10.1.3.1.0) includes forms and report service ??? Thanks in advance.
    Thanks,
    -james.

    Hi James,
    No, forms and reports are not included. You have to setup another iAS instance for that. The latest iAS release including forms/reports is 10.1.2.x.
    Kind regards,
    H

  • Including Photos in Report output

    How can i include Photos in the output of a Report?

    Hi,
      You can't upload your photos through normal report.By using ALV reports we can do this.By the help of the FM 'REUSE_ALVE_COMMENTARY_WRITE' we can upload the logo into ALV Report.
    Cheers,
    Bujji

  • Logo in report

    Hi
    How to print a logo in any  program?? If possible give me sample code also plz
    Helpfull points will be rewarded
    Regards
    Pavan

    Hi,
    Here is a sample alv which includes a logo, just go through this:
    *& Report  ZDEMO_ALVGRID                                               *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic requirement for this demo is to display a number of       *
    *& fields from the EKKO table.                                         *
    REPORT  zdemo_alvgrid                 .
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform build_events.
    perform build_print_params.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    gd_layout-totals_only        = 'X'.
    gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
                                            "click(press f2)
    gd_layout-zebra             = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
                it_events               = gt_events 
                is_print                = gd_prntparams 
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.                      "Here it inserts a logo.
    endform.
          FORM USER_COMMAND                                          *
          --> R_UCOMM                                                *
          --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
      Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
        Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
        Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
        Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    *&      Form  BUILD_EVENTS
          Build events table
    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_end_of_page
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_PAGE' to ls_event-form.
        append ls_event to gt_events.
      endif.
        read table gt_events with key name =  slis_ev_end_of_list
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_LIST' to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " BUILD_EVENTS
    *&      Form  BUILD_PRINT_PARAMS
          Setup print parameters
    form build_print_params.
      gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
      gd_prntparams-no_coverpage = 'X'.
    endform.                    " BUILD_PRINT_PARAMS
    *&      Form  END_OF_PAGE
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *&      Form  END_OF_LIST
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    Hope this info helps.
    Regards,
    Kumar.

  • Print Logo in Report

    Hi All
    I want to print the report along with Logo in the reporting.
    Is it possible via ALV or Classical reporting or whether we should go for Smartform or Adobe
    Regards
    MD

    Hi,
    Use this program
    REPORT y_pic_show .
    DATA:
    docking TYPE REF TO cl_gui_docking_container,
    picture_control_1 TYPE REF TO cl_gui_picture,
    url(256) TYPE c .
    DATA : sum(4) , num1(4) , num2(4).
    PARAMETERS: p_dummy(4) DEFAULT '4' .
    PARAMETERS: p_dummy1(4) DEFAULT '5' .
    AT SELECTION-SCREEN OUTPUT.
    PERFORM show_pic.
    START-OF-SELECTION.
    num1 = p_dummy.
    num2 = p_dummy1.
    sum = num1 + num2.
    WRITE : / sum.
    *& Form show_pic
    FORM show_pic.
    DATA: repid LIKE sy-repid.
    repid = sy-repid.
    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 = 150
    left = 700
    top = 10
    width = 138.
    CALL METHOD picture_control_1->load_picture_from_url
    EXPORTING
    url = 'd:/subhadip.bmp'.
    IF sy-subrc NE 0.
    * Fehlerbehandlung
    ENDIF.
    ENDFORM. "show_pic
    <b>Reward Points if this helps,</b>
    Satish

  • How to include logos in pdf forms??

    hi all,
    i am working with the pdf forms for the first time and dont yet kno the tricks of trade 
    can ne1 tell me how do i include graphic logo in the form?? here, i am referring to the logos we can access by TXN SE78 (the ones we use while working with SAPscripts and smartforms)
    thanks to all...

    Hi,
    some pointers -
    If it is a static logo, you can directly paste it. or else, you can give the link in the object pallette, or to my knowledge, there is an option in the context tab of the SFP transaction to bind an image to one ofthe fields to store the link.
    Hope these may help.
    Do update.
    Thanks and Regards,
    Anto.

Maybe you are looking for

  • ITunes TV Show Season Pass Issues - How is it working for you?

    I love iTunes Season passes.  I love letting a show accumulate without worrying about storms, sports messing up recording times, power outages, storage of my DVR, etc...  The shows are always going to be there to watch.  However for well over a year

  • Using dictionary in Webdynpro for Java

    Hello, I'm very newbie in Webdynpro in Java and I have an issue, I need that a function returns me 2 fields in 2 variables, but this is not possible in Java, for that reason I have thought to create a structure in the dictionary with 2 fields in orde

  • Open cursor for PLSQL table of records

    Is it possible to open a cursor for all data in a PLSQL table of records? something like cursor c (p1 number) is select * from <plsqltab> where <plsqltab>.col = p1

  • Procedure of EXCISE INVOICE cancellation

    Hi, Experts want to cancel the EXCISE INVOICE but system wont allow for cancellation it is saying CEIV modvat a/c not updated. Can you give the solution for that., tell the procedure of reverse also. For ARE1 whats the procedure for cancellation or r

  • Adobe Reader Multimedia Shortcuts

    Hello Adobe, I have some pencast pdf files that have the multimedia windows where I can play my pencasts. I want to know what are the keyboard shortcuts for play/pause and play forward/backward