Displya image through SAP Report ?

Dear experts,
I have requirement to Display images witch is store in local PC, and the image output will display as sap report.
Each time user captures the image of material before entering, the material in our plant and this image is saving into the local image server and we have provided entry screen through which user can enter the local image server path, and this path is saving into the SAP tables.
Now we want to prepare a report to view these images in SAP from the local path.
Note: We are not saving these images in SAP server, only path of these images we are saving.
Please help me to solve this issue.
Thanks,
Abhilash

hi ,
Full Program
*& Module Pool       ZUPLOADIMAGE
*&Author: Tanmaya Gupta
*&Date: 24-09-09
*&Description: This Program will upload Image/Logo in the Module Pool Program.
INCLUDE ZUPLOADIMAGETOP                         .    " global Data
INCLUDE ZUPLOADIMAGEO01                         .  " PBO-Modules
INCLUDE ZUPLOADIMAGEF01                         .  " FORM-Routines
*& Include ZUPLOADIMAGETOP                                   Module Pool      ZUPLOADIMAGE
PROGRAM  ZUPLOADIMAGE.
DATA CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA PICTURE TYPE REF TO CL_GUI_PICTURE.
DATA URL(256).
*&  Include           ZUPLOADIMAGEO01
*&      Module  STATUS_0100  OUTPUT
*       text
module STATUS_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
    CREATE OBJECT CONTAINER
       EXPORTING CONTAINER_NAME = 'CONTAINER'.
    CREATE OBJECT PICTURE
       EXPORTING  PARENT = CONTAINER
       EXCEPTIONS ERROR = 1.
CLEAR url.
    PERFORM load_pic_from_db CHANGING url.
CALL METHOD picture->load_picture_from_url
EXPORTING
url = url.
endmodule.                 " STATUS_0100  OUTPUT
*&  Include           ZUPLOADIMAGEF01
*&      Form  LOAD_PIC_FROM_DB
*       text
*      <--P_URL  text
form LOAD_PIC_FROM_DB  changing p_url.
  DATA query_table LIKE w3query OCCURS 1 WITH HEADER LINE.
  DATA html_table LIKE w3html OCCURS 1.
  DATA return_code LIKE  w3param-ret_code.
  DATA content_type LIKE  w3param-cont_type.
  DATA content_length LIKE  w3param-cont_len.
  DATA pic_data LIKE w3mime OCCURS 0.
  DATA pic_size TYPE i.
  REFRESH query_table.
  query_table-name = '_OBJECT_ID'.
  query_table-value = 'ZLOGO.GIF'."name of 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.
  IF sy-subrc = 0.
    pic_size = content_length.
  ENDIF.
  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.
ENDFORM.                    " LOAD_PIC_FROM_DB
Thanks
Tanmaya

Similar Messages

  • Can we call a wepage through sap report

    Hi
      experts can u people please tell me that can a webpage (like yahoo.com) be called from a report.

    Hi,
    go through the following example....
              I N T E R N A L     T A B L E
    DATA: BEGIN OF URL_TABLE OCCURS 10,
          L(25),
          END OF URL_TABLE.
         S T A R T - O F - S E L E C T I O N
    START-OF-SELECTION.
    *-append internal table---
    URL_TABLE-L = 'http://www.yahoomail.com'.
    APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.gmail.com'.
    APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.sap.com'.
    APPEND URL_TABLE.
    URL_TABLE-L = 'http://email.rapidigm.com'.
    APPEND URL_TABLE.
             P R I N T    T H E    U R L    L I N K
    LOOP AT URL_TABLE.
      SKIP. FORMAT INTENSIFIED OFF.
      WRITE: / 'Single click on '.
      FORMAT HOTSPOT ON.
      FORMAT INTENSIFIED ON.
      WRITE: URL_TABLE.
      HIDE URL_TABLE.
      FORMAT HOTSPOT OFF.
      FORMAT INTENSIFIED OFF.
      WRITE: 'to go to', URL_TABLE.
    ENDLOOP.
    CLEAR URL_TABLE.
            E V E N T  F O R  C L I C K
    AT LINE-SELECTION.
    IF NOT URL_TABLE IS INITIAL.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
                commandline     = URL_TABLE
                INFORM         = ''
              EXCEPTIONS
                PROG_NOT_FOUND = 1.
    *- sy-subrc check----
      IF SY-SUBRC <> 0.
         WRITE:/ 'Cannot find program to open Internet'.
      ENDIF.
    ENDIF.
    *-- End of Program
    **********do rewards if usefull
    vijay

  • Error while uploading BITMAP image in SAP through SE78.

    Hello all,
    I am getting below error while uploading image into SAP through SE78.
    'Bitmap file: No color table available (True Color, Bitcount 32)'.
    I have tried searching for solution and got some help from below reply from a thread:
    You may do these options:
    1. Lower the resolution of the image
    2. Lower the file size of the image
    Regards,
    Reymar
    I have got a image size of 6.14 KB and resolution of 72*72 dots per inch.
    Thanks in Advance.
    - Jayant Sahu.

    Hi Daniel,
    First of all, if you dont mind, start a new thread for your question please.
    Anyways, answer to your question is --
    You need to save your picture with lower-most bits BITMAP Type. When you were saving your picture as .bmp, take care you are passing lower-most BITMAP type and not 24-bit as it may be as default.
    This way, your problem would be resolved.
    Thanks.
    Kumar Saurav.

  • Error Crystal report When viewed through SAP B1

    Dear Experts
    SAP B1 8.8 PL 16,SQL 2008
    I am facing error (Unable to retrive data from database)(Vendor code-156) while accessing Crystal report from client machine throgh SAP B1.I have imported Crystal report through manage layout.The crystal reported is in shared in SAP server B1 SHR folder.I am able to access data from crystal report when viewed otherwise.When accessed crsytal report through SAP b1 on SAP Server crystal report is working fine.
    Thanks & Regrds
    Saurabh Lamba

    Hi Saurabh Lamba,
    Go To Administration / System Initialisation / Authorisation / General Authorisation & Set Authorisation for user.
    If you have to Set Authorisation for user allready then follow this steps.
    1.Restore Database as Test Company.
    2.Export Report From Live Company.
    3.Import this Report in Test Company as different name.
    4.Export Report from Test Company have you Imported as deifferent name.
    5.Again Import this Report in Live company as different name
    I don't know what's the logic behind it.
    Thanks,
    Srujal Patel

  • Problem in connecting to Sap R/3 system through Crystal Reports

    Hi
    while I am connecting to Sap R/3 system through crystal reports i am getting an error
    (" you do not have a necessary rights to design reports against sap system ")
    can anyone sort out this problem?
    Thanking in advance

    you need to add some transport files while installing the integration kit for sap solutions.check whether all transport files are added

  • Drill Down Report in SAP B1 through Crystal Reports

    Hi Gurus,
    Is it possible to make a reports through Crystal Reports in SAP B1 ....
    Please help or give some examples if you can ....
    Thanx SK

    Hi,
    You can enable Drill Down function by right clicking Section Name and choose
    Drilldown OK.
    Refer to the link for the complete details.
    http://crystal-reports.blogs.webucator.com/2010/05/28/crystal-reports-drill-down/
    Thanks.
    Clint

  • To upload a RTF and a PDF file to SAP R/3 and print the same through SAP

    Hi,
    I have a requirement to upload a PDF file and a RTF file to SAP R/3 and print the same.
    I wrote the following code for uploading a RTF file to SAP R/3 and print the same. However, the problem is , the formatting present in the RTF document( bold/italics..etc) is not being reflected when I do the 'print-preview' after the executing the code below :
    report z_test_upload .
    data: begin of itab occurs 0,
             rec type string,
          end of itab.
    data: options like itcpo.
    data: filename type string,
          count type i.
    data: filetype(10) type c value 'ASC'.
    DATA: HEADER  LIKE THEAD    OCCURS   0 WITH HEADER LINE.
    DATA: NEWHEADER  LIKE THEAD    OCCURS   0 WITH HEADER LINE.
    DATA: ITFLINE LIKE TLINE    OCCURS   0 WITH HEADER LINE.
    DATA: RTFLINE LIKE HELP_STFA OCCURS   0 WITH HEADER LINE.
    DATA:   string_len TYPE i,
            n1 TYPE i.
    selection-screen begin of block b1.
      parameter: p_file1(128) default 'C:\test_itf.rtf'.
    selection-screen end of block b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
      CALL FUNCTION 'F4_FILENAME'
           IMPORTING
                file_name = p_file1.
    start-of-selection.
    move p_file1 to filename.
    call function 'GUI_UPLOAD'
         EXPORTING
              filename                = filename
              filetype                = filetype
         TABLES
              data_tab                = itab
         EXCEPTIONS
              file_open_error         = 1
              file_read_error         = 2
              no_batch                = 3
              gui_refuse_filetransfer = 4
              invalid_type            = 5
              no_authority            = 6
              unknown_error           = 7
              bad_data_format         = 8
              header_not_allowed      = 9
              separator_not_allowed   = 10
              header_too_long         = 11
              unknown_dp_error        = 12
              access_denied           = 13
              dp_out_of_memory        = 14
              disk_full               = 15
              dp_timeout              = 16
              others                  = 17.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    loop at itab.
      string_len = strlen( itab-rec ).
      n1 = string_len DIV 134.
      ADD 1 TO n1.
      DO n1 TIMES.
        rtfline-line = itab-rec.
        APPEND rtfline.
        SHIFT itab-rec BY 134 PLACES.
      ENDDO.
    endloop.
    HEADER-TDSTYLE = 'S_DOCUS1'.
    HEADER-TDFORM = 'S_DOCU_SHOW'.
    header-tdspras = 'E'.
    CALL FUNCTION 'CONVERT_TEXT'
      EXPORTING
      CODEPAGE               = '0000'
        DIRECTION              = 'IMPORT'
        FORMAT_TYPE            = 'RTF'
       FORMATWIDTH            = 72
        HEADER                 = header
        SSHEET                 = 'WINHELP.DOT'
        WITH_TAB               = 'X'
        WORD_LANGU             = SY-LANGU
        TABLETYPE              = 'ASC'
      TAB_SUBSTITUTE         = 'X09  '
      LF_SUBSTITUTE          = ' '
      REPLACE_SYMBOLS        = 'X'
      REPLACE_SAPCHARS       = 'X'
      MASK_BRACKETS          = 'X'
      IMPORTING
        NEWHEADER              = NEWHEADER
      WITH_TAB_E             =
      FORMATWIDTH_E          =
      TABLES
        FOREIGN                = RTFLINE
        ITF_LINES              = ITFLINE.
      LINKS_TO_CONVERT       =
    if sy-subrc <> 0.
    endif.
    CALL FUNCTION 'PRINT_TEXT_ITF'
      EXPORTING
         HEADER        = newheader
         OPTIONS       = options
    IMPORTING
      RESULT        =
      TABLES
        LINES         = itfline.
    if sy-subrc <> 0.
    endif.
    Any hints or suggestions to solve this problem will be highly appreciated.
    Thanks,
    Avra

    Hi Vishwas,
    Check out the thread [Efficient way of saving documents uploaded|Re: Efficient way of saving documents uploaded by users; and check the blog by Raja Thangamani.
    Also check the thread [Export Images through Function Modules   |Export Images through Function Modules;.
    Hope it helps you.

  • Change of image in web reports (MIME repository : SE80)

    Hello,
    i want to replace company logo in web reports.
    i have changed the logo (image) through MIME repository in SE80 transaction, but i am unable to see the unchanged logo on portal/web reports.
    What can be the issue. Is there any setting anywhere that needs to be done?
    Thanks,
    Shweta.

    Hi,
    Please check the Image name like
    supported ex:
       "company_logo.jpg"
    Not supported Example:
       "company logo.jpg"
       "company_logo.JPG"
       "Company_Logo.Jpg"
    Concerning the missing images in the WAD please check, if the images
    are available in the Mime Repository:
    Transaction SE80 -> MIME Repository -> SAP -> BW -> BEx ->
    Publisher -> GIFS -> WebItem_Previews -> e.g. "broadcast_prev.gif"
    Check the below link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/4cd282bd414e35e10000000a1553f6/frameset.htm
    Thanks,
    Venkat

  • [How .. ]: Load image to SAP Screen.

    Hi All,
    I'm having a project where i should display the corresponding picture.
    These are questions that i'm going to ask :
    1. How can i store the image to SAP Server ? Could you direct me step by step please ..
    2. How can i load the picture from the program ? Could it also be directed step by step ..
    Many thanks all.
    Still need your guidance a lot.
    Kindly Regards,
    Niel.

    Niel,
    Say thanks to Pavan Praveen who helped me with this sometime back.
    To create a logo u have to remember one thing is u have to upload that logo through OAER or SE78
    for uploading logo in OAER
    Enter class name as PICTURES
    Class type as OT
    Object key the name of ur logo want to upload
    then press F8 or execute
    Then it will automatically creates a folder for ur LOGO and upload ur logo in that folder
    After that In the left side bottom of the page u can c the following options
    1)Detail
    2)Document Info
    3)Keywords
    4)Create
    goto Detail in which u can find the Object Id
    which u have to paste in the function module of this program
    Check this program1
    *& Report  ZREPORT_LOGO                                                *
    REPORT  ZREPORT_LOGO.
    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 = 100
    left = 500
    top = 10
    width = 300.
    CALL METHOD picture_control_1->load_picture_from_url
    EXPORTING
    url = 'c:/pic.bmp'.
    IF sy-subrc NE 0.
    ENDIF.
    ENDFORM. "show_pic
    Check this program 2
    program zsap_picture_demo.
    set screen 200.
    TYPE-POOLS cndp.
    CLASS    c_event_receiver
    DEFINITION
    class c_event_receiver definition.
    The class is used to test the events raised by the cl_gui_picture
    class
      public section.
        methods event_handler_picture_dblclick
                for event picture_dblclick of cl_gui_picture
                importing mouse_pos_x mouse_pos_y sender.
        methods event_handler_context_menu
                for event context_menu of cl_gui_picture
                importing sender.
        methods event_handler_context_menu_sel
                for event context_menu_selected of cl_gui_picture
                importing fcode sender.
      endclass.
    DATA
      data function like sy-ucomm.         " OK-Code field in screen 200
      data url  type cndp_url.                " URL-field in screen 200
      data url2 type cndp_url.               " URL-field in screen 200
      data picture_control_1 type ref to cl_gui_picture.
      data picture_control_2 type ref to cl_gui_picture.
      data container_1 type ref to cl_gui_custom_container.
      data container_2 type ref to cl_gui_custom_container.
      data event_receiver  type ref to c_event_receiver.
      data event_tab type cntl_simple_events.
      data event_tab_line type cntl_simple_event.
      data return type i.
    PBO
    before_output
    module before_output output.
      set pf-status 'MAIN0001'.
      IF PICTURE_CONTROL_1 IS INITIAL.
    Create controls
        create object container_1
          exporting container_name = 'PICTURE_CONTROL_1'.
        create object container_2
          exporting container_name = 'PICTURE_CONTROL_2'.
        CREATE OBJECT PICTURE_CONTROL_1 exporting parent = container_1.
        CREATE OBJECT PICTURE_CONTROL_2 exporting parent = container_2.
    Register the events
        EVENT_TAB_LINE-EVENTID = CL_GUI_PICTURE=>EVENTID_PICTURE_DBLCLICK.
        append EVENT_TAB_LINE to EVENT_TAB.
        EVENT_TAB_LINE-EVENTID = CL_GUI_PICTURE=>EVENTID_CONTEXT_MENU.
        append EVENT_TAB_LINE to EVENT_TAB.
    EVENT_TAB_LINE-EVENTID = CL_GUI_PICTURE=>EVENTID_CONTEXT_MENU_SELECTED.
        append EVENT_TAB_LINE to EVENT_TAB.
        CALL METHOD PICTURE_CONTROL_1->SET_REGISTERED_EVENTS
          exporting
            EVENTS = event_tab.
        CALL METHOD PICTURE_CONTROL_2->SET_REGISTERED_EVENTS
          exporting
            EVENTS = event_tab.
    Create the event_receiver object and set the handlers for the events
    of the picture controls
        create object event_receiver.
        set handler event_receiver->event_handler_picture_dblclick
                    FOR PICTURE_CONTROL_1.
        set handler event_receiver->event_handler_context_menu
                    FOR PICTURE_CONTROL_1.
        set handler event_receiver->event_handler_context_menu_sel
                    FOR PICTURE_CONTROL_1.
        set handler event_receiver->event_handler_picture_dblclick
                    FOR PICTURE_CONTROL_2.
        set handler event_receiver->event_handler_context_menu
                    FOR PICTURE_CONTROL_2.
        set handler event_receiver->event_handler_context_menu_sel
                    FOR PICTURE_CONTROL_2.
    Set the display mode to 'normal' (0)
        CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
        CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
    Set 3D Border
        CALL METHOD PICTURE_CONTROL_1->SET_3D_BORDER
           exporting border = 1.
        CALL METHOD PICTURE_CONTROL_2->SET_3D_BORDER
           exporting border = 1.
    new async implementation since 4.6C
    CALL FUNCTION 'DP_PUBLISH_WWW_URL'
      EXPORTING
        OBJID                       = 'HTMLCNTL_TESTHTM2_SAP_AG'
        LIFETIME                    = cndp_lifetime_transaction
      IMPORTING
        URL                         = url
      EXCEPTIONS
        OTHERS                      = 1.
    Load the picture by using the url generated by the data provider.
        if sy-subrc = 0.
          CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL_ASYNC
             exporting url = url.
        endif.
    CALL FUNCTION 'DP_PUBLISH_WWW_URL'
      EXPORTING
        OBJID                       = 'DEMOWORD97SAPLOGO'
        LIFETIME                    = cndp_lifetime_transaction
      IMPORTING
        URL                         = url2
      EXCEPTIONS
        OTHERS                      = 1.
    load image
        if sy-subrc = 0.
          CALL METHOD PICTURE_CONTROL_2->LOAD_PICTURE_FROM_URL_async
             exporting url = url2.
        endif.
      endif.
    endmodule.
    PAI
    after_input
    module after_input input.
      case function.
    At the end of the program destroy the control
        when 'BACK'.
          CALL METHOD container_1->FREE.
          CALL METHOD container_2->FREE.
          leave to screen 0.
    Change the display mode
        when 'NORMAL'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
               EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
               EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
        when 'STRETCH'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
        when 'FIT'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
               EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
               EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT.
        when 'NORMAL_CTR'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
        EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL_CENTER.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
        EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL_CENTER.
        when 'FIT_CTR'.
          CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
          EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT_CENTER.
          CALL METHOD PICTURE_CONTROL_2->SET_DISPLAY_MODE
          EXPORTING DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT_CENTER.
    Clear the picture
        when 'CLEAR'.
          CALL METHOD PICTURE_CONTROL_1->CLEAR_PICTURE.
    Load a new picture
        when space.
          CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
               exporting url = url
               importing result = return.
          call method cl_gui_cfw=>flush.
          if return = 0.
            url = text-000.
          endif.
      endcase.
      clear function.
    endmodule.
    CLASS   c_event_receiver
    IMPLEMENTATION
    CLASS C_event_receiver implementation.
    CLASS   c_event_receiver
    METHOD  event_handler_picture_dblclick
      METHOD EVENT_HANDLER_PICTURE_DBLCLICK.
           for event picture_dblclick of c_picture_control
           importing mouse_pos_x mouse_pos_y.
        DATA pos_x(5) type c.
        DATA pos_y(5) type c.
        pos_x = mouse_pos_x.
        pos_y = mouse_pos_y.
        IF SENDER = PICTURE_CONTROL_1.
          MESSAGE I000(0K) WITH
            'DoubleClick' 'Upper Picture' POS_X POS_Y. "#EC NOTEXT
        else.
          MESSAGE I000(0K) WITH
            'DoubleClick' 'Lower Picture' POS_X POS_Y. "#EC NOTEXT
        endif.
      endmethod.
    CLASS   c_event_receiver
    METHOD  event_handler_context_menu
      METHOD EVENT_HANDLER_CONTEXT_MENU.
        data menu type ref to cl_ctmenu.
        create object menu.
        call method menu->ADD_FUNCTION exporting
          fcode = text-001
          TEXT = TEXT-001.
        call method menu->ADD_FUNCTION exporting
          FCODE = TEXT-002
          TEXT = TEXT-002.
        call method menu->ADD_FUNCTION exporting
          FCODE = TEXT-003
          TEXT = TEXT-003.
        call method menu->ADD_FUNCTION exporting
          FCODE = TEXT-004
          TEXT = TEXT-004.
        call method menu->ADD_FUNCTION exporting
          FCODE = TEXT-005
          TEXT = TEXT-005.
        CALL METHOD SENDER->DISPLAY_CONTEXT_MENU
          EXPORTING CONTEXT_MENU = MENU.
      endmethod.
    CLASS   c_event_receiver
    METHOD  event_handler_context_menu_sel
      METHOD EVENT_HANDLER_CONTEXT_MENU_sel.
        DATA DISPLAY_MODE TYPE I.
        IF FCODE = TEXT-001.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
        ENDIF.
        IF FCODE = TEXT-002.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
        ENDIF.
        IF FCODE = TEXT-003.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT.
        ENDIF.
        IF FCODE = TEXT-004.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL_CENTER.
        ENDIF.
        IF FCODE = TEXT-005.
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT_CENTER.
        ENDIF.
        CALL METHOD SENDER->SET_DISPLAY_MODE
             EXPORTING DISPLAY_MODE = DISPLAY_MODE.
      endmethod.
    endclass.
    Note: While creating this program I had observed the thing is it will accepts the logo which was having the URL so try to create a logo of URL but u can display the Standard SAP logo using this program
    To upload the the logo image on the right hand side of the SAP screen.
    Transaction codeSMW0
    X - Binary data for WebRFC application
    Hit Enter
    Click Execute
    Click Settings -> Maintain MIME types
    Click the Create button
    Fill in :- TYPE : image/gif EXTENSION : .GIF
    Click Save
    Click Back to the Binary data for WebRFC
    Click Create
    Fill in :- Obj. name : ZXXXX.GIF Description : Company Logo
    Click Import and specify the filename where your GIF file is located.File type is BIN. Finish press the Transfer button.
    If successful, your logo will be shown in the Binary data for WebRFC.
    Transaction codeSM30 - Table/View - SSM_CUST
    Click Maintain
    Click New Entries
    Name Value to be set
    START_IMAGE ZXXXX.GIF
    RESIZE_IMAGE NO
    Logoff and Login again
    Check this link
    http://www.sap-img.com/fu002.htm

  • Print Image in Oracle Report

    I have an scan image in my report. I can see the image in the Layout editor but when the report runs all that comes out is a blank piece of paper. The image does not print.
    The version of reports is 2.5. Does anyone have any idea why the image does not print.
    Thank You
    JK

    Hi
    If you are using a scan image (which is a bit map)in rep 2.5 and run them through oracle applications 11 and below you may have do lot of system level programming to support bit map images, because oracle apps 11 and below are charter based they do not support bit map. There may be a work around I had been trying for the past 2 years. But with apps 11i and rep6i this is possible.
    null

  • Add Image in ABAP Report

    Hi All,
    I want add image in ABAP Report.
    Please let me know how it can be done?
    Regards,
    Jagdish More

    Hi Jagdish,
    to upload the image follow these steps.
    1. Upload image in web repository.
    Go to Transaction SMW0 to upload the image in SAP web Repository. elect second radiobutton u201DBinary data for WebRFC applicationsu201D and click on find.
    2.     Click on Execute.
    3.     Click on Create and give the obj.name and description and click on import.
    once the image gets uploaded.in your program do the following
    1.     Create a Screen.Go to Layout and create Custom Control.I have named it as u2018CONTAINERu2019.
    2.     Declare container(Custom Control name),picture(child of Container) and url in Top of the program.
    data container type ref to cl_gui_custom_container.
    data picture type ref to cl_gui_picture.
    data url(256).
    3.     Now create the object Container and Picture.
    create object container
           exporting container_name = 'CONTAINER'.//name of the custom control
        create object picture
           exporting  parent = container
           exceptions error = 1.
    4.     Now we have to load the picture from the database which we have uploaded. For this we need to declare the following:-
      data query_table like w3query occurs 1 with header line.
      data html_table like w3html occurs 1.
      data return_code like  w3param-ret_code.
      data content_type like  w3param-cont_type.
      data content_length like  w3param-cont_len.
      data pic_data like w3mime occurs 0.
      data pic_size type i.
    5.     Refresh the Query table and give the name of Query table as u2018_OBJECT_ID_u2019 and value as the name of logo/Image which u have uploaded.Append the value in the Query Table.
      refresh query_table.
      query_table-name = '_OBJECT_ID'.
      query_table-value = 'ZLOGO.GIF'."name of logo
      append query_table.
    6.     Now call the function WWW_GET_MIME_OBJECT to get the logo/image which u have uploaded and call the function DP_CREATE_URL to create the url where the image is present.
    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.
      if sy-subrc = 0.
        pic_size = content_length.
      endif.
      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.
    7.     Finally we have to upload the image from the URL, this can be done by calling the method: picture->load_picture_from_url
    call method picture->load_picture_from_url
    exporting
    url = url.
    Now Save,Activate and Execute the Program , Image/Logo got successfully uploaded.
    I have already done this program and uploaded the image...
    this will surely help you
    Thanks and regards,
    Tanmaya

  • Image in the reports

    I have to display an image in the report.
    but actually i'm getting it from the database and displaying it (it's a BLOB file).
    Can anybody suggest me , so that i can have the image displayed in a larger size than the size wat i'm getting from the database ?
    Thanks in advance

    Hi Guru,
      Check the below link, it will be useful for you:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0c8bfa4-7348-2c10-b9ae-bc1ff04a9aeb?QuickLink=index&overridelayout=true
    Thanks
    Pawan

  • Exporting data to Excel 2007 from SAP report

    Dear all,
    Earlier we used to have Excel 2003 and while downloading data from MC.9 Report - Export - Transfer to XXL, we could able to download the data.
    Now we have installed Excel 2007 and trying to download the data from MC.9 report, its opening excel, but no data is being copied,,, blank excel sheet,,,, further we could not able to download the data.
    Is there any setting need to be done in SAP reporting or excel 2007 to download the data to Excel 2007.
    thanks in advance.
    urendra

    Pl. go through the following step.
    1. Execute MC.9
    2. Select (click on) key figure column
    3. Select  Time series Button (CtrlShiftF4)
    Now seperate window will come.
    4. Select the button Save to PC file (shift+F8)
    By this procedure you can download to excel
    Regards
    Amol

  • Standard SAP Reports

    Hi MM friends
    Could any suggest report for the below (is it possible or not)
    The required reports & data from SAP :
    u2022Vendor assessment
    1.Creating Inspection inventory to receive all goods inside & deduct the rejected quantity (Quality: # of items rejected / # of items delivered) & creating report clarifying the rejection percentage for each supplier.
    2.Creating report  On- time Deliveries: Difference between the delivery date and the promise date
    3.Price: Fluctuation of prices over the period of the contract
    4.First Time Fill Rate: # of deliveries for every purchase order.
    u2022     Other reports & information needed to be done through SAP
    1.Consumption report /item / flexi period (From u2013to) allowing the buyers to sign a long term agreement with the suppliers.
    2.Reorder point (safety stock) per item- the purchasing department must create the reorder point /each item according to u2013 consumption rate/item- storage area & the dimension of the item u2013 The expiration date /each item.
    3.Reorder policy/each item. The purchasing department must create reorder policy /each item to maximize the efficiency.
    The reorder policies as follows:
    -(Lot for lot- minimum quantity- fixed quantity u2013 minimum lot size- maximum quantity )& all policies must be created according to the item nature & the supplieru2019s conditions and available discounts.
    Regard
    Senthil

    go to SAP1 and SAP2 tcodes for standard reports
    check the required standard reports

  • Standard SAP report for rescheduling.

    Hi Gurus,
    If we see the stock requirement list we sometimes see that the rescheduling coloumn gets populated asking us to reschedule the particular MRP element.
    My client wants to know if there is any specific SAP report which can give me the list of all the materials in a plant which require rescheduling(i.e the rescheduling coloumn is populated in md04) because otherwise he has to go to the stock requirement list of each material to know if the material needs to be rescheduled or not.
    Regards,
    Anshul Goyal

    Hi Anand,
    Thanks for the input but this will not solve my problem.
    I'll explain you the situation.The MRP run takes place once every week so if during the week say for example the material is consumed more than it is planned then in the stock requirement list I see the rescheduling for the MRP element which i want to track.
    Through MD06 the system will give me the rescheduling that will be set during that MRP run.
    Regards,
    Anshul

Maybe you are looking for