How to hide command pront in SAP screen

Hi,
I have a requirment that i need to hide the command pront in SAP screen, it is very very urgent for me, please help me.
Reward for every usefull answer.
Saleem.

Hi,
Thanks for your responce...but the problem is i need to do from the program.
Saleem.

Similar Messages

  • How to hide fields in Table maintenace screen

    I have created a view with table maintenance generator. I would like to hide some fields. With event I am able to fill in those fields but I want to hide those from screen.

    HI, 
    This is reff with ur below post, I have been stuck with same problem,
    I got your code, how its functioning, but didn't get get where i have to write it.
    plz tell me in brief.
    Thanks in Advance.
    Regards
    Vivek
    Re: How to hide fields in Table maintenace screen  
    Posted: Feb 6, 2009 11:42 AM   in response to: Aarti Ramdasi in response to: Aarti Ramdasi           
    Click to report abuse...             Click to reply to this thread      Reply
    Hi,
    You can hide the fields like this..
    For example
    select-options:
    s_carrid for spfli-carrid modif id gr1,
    s_connid for spfli-connid modif id gr1,
    s_cityto for spfli-cityto modif id gr2.
    I am going to hide last fied..To do this
    at selction-screen output.
    if s_carrid is initial or s_connid is initial.
    loop at screen.
    if screen-group1 CS 'GR2'.
    screen-active = 0.
    modify screen.
    endif.
    endloop.
    endif.
    whenever u click on any one of the field i.e. carrid or connid the third field will displayed.Otherwies the last field cityto is not visible initially
    Regards
    Kiran

  • How to change the color of SAP screen?

    Hi Frens,
    I know it has nothing to do with SD Community, but still I am asking. Can anyone tell me "How to change the color of SAP screen?" It is needed especially when you are working on System Landscape including PRD, Qua & Dev. There are chances that you end up making a test case in PRD instead of Dev or Qua. To avoid that, different color of SAP screen may be very useful and safe.
    Regards
    Vikas Chhabra
    SD/CIN Consultant

    We had a clone of SAP for testing
    Only GUIXT solution was available for users to distinguish between real Prod & Clone as SID was same
    Created 2 scripts n C:\guixt\scripts
    saplsmtr_navigation.e0100.txt
    Esession.txt
    BOTH having identical code
    if V[_ashost=10.3.3.18]
      TitlePrefix "CLONE18"
      TitleSuffix "(CLONE8)"
    endif
    if V[_ashost=10.3.3.25]
      TitlePrefix "PROD25"
      TitleSuffix "(PROD25)"
    endif
    After much research - this was only solution.
    GUIXT will be around; like SAPSCRIPT & SMARTFORMS
    despite the enticement of Adobe Forms!
    After some time you may set GUIXT profile start window HIDDEN
    This you do by clicking profile button of GUIXT menu
    If you want to see GUIXT Window again
    CMD.exe Dos prompt
    cd C:\Program Files\SAP\FrontEnd\SAPgui
    guixt visible
    Regards
    Jayanta Narayan Choudhuri
    Kolkata
    URL: http://ojnc.byethost11.com

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • How to hide table control in a screen

    Hi, Gems,
    I want to hide the table control.Using "loop at screen" I am able to hide all other components except table control.
    Can anyone tell me how to hide table control in a screen?
    Any help will be appreciated.
    -Thanks
    Surajit.

    Hi,
    In the PBO (in a module outside to the LOOP...ENDLOOP), use this
    MODULE status_0100 OUTPUT.
    IF sy-ucomm EQ space.   "Give the function code on which you want to make your table control go invisible
                                              "Give a space if you want your table control to remail invisible on display of the screen
        CLEAR: t_header[].
        LOOP AT tabcontrol1-cols[] INTO wa_control1.
          wa_control1-invisible = '1'.
          MODIFY tabcontrol1-cols[] FROM wa_control1 INDEX sy-tabix.
        ENDLOOP.
    ENDMODULE. 

  • How to hide display details in sap gui and create ad-hoc request in UWL?

    Hi,
    how to hide display "details in sap gui" and "create ad-hoc request" in UWL?
    Please telme the step-by-step procedure to hide "details in sap gui" and "create ad-hoc request".
    Thanks,
    Rashmi

    Hi,
    Thanks for the information. It was very helpfull.
    Can you please tellme where can we fine UWL iView? I tried to find this out in two ways.
    1) Portal Content -> Content Provided by SAP -> End User Content -> Standard Portal Users -> Views -> com.sap.coll.iviews -> Universal Worklist (finally i got this iView). Here i dint find any property called "List of UWL Actions to exclude". In the link which you had given, its written that we can modify the iView and add the name of the actions under the Actions to exclude from the UWL property.
    Which iView do we need to modify and where can i find that property?
    2) I downloaded the xml file and then tried to find this property "List of UWL Actions to exclude" or " Actions to exclude from the UW". But i couldnt find both the properties in xml file.
    Thanks,
    Rashmi

  • How to hide F8 function on selection screen.

    Hi,
    How to hide F8 function on selection screen.

    Just create a customer status and SET this status in your INITIALIZATION block.
    <i>You can copy the standard status from program RSSYSTDB status %_00.</i>
    Regards

  • How to hide installbase components in SAP CRM 2007 on UI screen

    Hi Experts,
    How to hide Installbase and its Components on UI Screen of SAP CRM 2007.In which BSP component Installbase and its components are there and how to remove it.Advanced thanks for suggestions.
    Regards
    Krish

    Hi Krishna,
    First I would like to know that your scenarios are B2B or B2C. Based on Scenario...in SPRO Master Data->Define Account Identification Profiles.
    Under Object Components remove ICCMP_IBASE.
    Hope this will solve your issue.
    <<text removed>>
    Regards,
    Albert
    Edited by: Matt on Apr 29, 2009 3:23 PM
    Edited by: Matt on Apr 29, 2009 3:24 PM - do not ask for points

  • Hide Command Box through Sap ECC 6.0

    Hi, SAP GURU's
    How is it possible to globally hide command box in a Sap ECC 6.0. or hide it only from Enterprise Portal.
    Regards
    Sumeet Sharma

    Hello Sumeet Sharma
    Hiding the command box in SAPgui for windows is not possible.
    Disabling it would probably mean you have to rewrite the SAPgui interface (not feasible).
    Restricting your users from accessing content they are not supposed to access is based on authorizations, if you give everyone all rights you are bound to heading for trouble and issues restricting where they are going. Also when you get an audit they will surely flag this point as being dangerous.
    You can check with SAP by opening a customer message.
    Kind regards
    Tom

  • How to hide particular block in selection screen

    Hi,
    I am having different blocks in a selection screen.
    How to show the blocks dynamically according to a radio button selection.
    means how to Hide/show entire block.
    Thanks,
    anandan

    Hi Anandan,
    Try this program.
    REPORT  zvk_collect.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME NO INTERVALS.
    PARAMETER : p_plant RADIOBUTTON GROUP g1 USER-COMMAND radio DEFAULT 'X',
                      p_mrp   RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME NO INTERVALS.
    PARAMETER : p_werks TYPE marc-werks MODIF ID sp1.
    SELECTION-SCREEN END OF BLOCK b2.
    *SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME NO INTERVALS.
    *PARAMETER : p_berid TYPE smdma-berid MODIF ID sp2.
    *SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        CHECK screen-group1 = 'SP1' OR
              screen-group1 = 'SP2'.
        IF p_plant = 'X'.
          IF screen-group1 = 'SP2'.
            screen-input = 0.
            screen-active = 0.
            screen-required = 1.
            MODIFY SCREEN.
          ENDIF.
        ELSE.
          IF screen-group1 = 'SP1'.
            screen-input = 0.
            screen-active = 0.
            screen-required = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Execute with Comments ON and Without Comments and See the difference
    Reward if found helpful

  • How to hide a block in Selection screen ?

    Hello abap gurus,
    I have a requirement where I have to hide a block on Selection screen. Can anyone of u give the command for that or code..
    Its urgent !
    Om Sai Ram,
    aRgD

    Hi,
    Just paste the following code in abap editor.
    *Selectionscreen elements..............................................
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS:
      p_uname     LIKE sy-uname
                  MODIF ID bl1.            " User name
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS:
      p_fname(10) TYPE c MODIF ID bl2
                         OBLIGATORY,       " First name
      p_lname(10) TYPE c MODIF ID bl2
                         OBLIGATORY,       " Last name
      p_empid(5)  TYPE n MODIF ID bl2
                         OBLIGATORY.       " Employee id
    SELECTION-SCREEN END OF BLOCK b2.
    *" Data declarations...................................................
    Work variables                                                      *
    DATA:
      w_uname     LIKE sy-uname.           " User name
                 AT SELECTION-SCREEN OUTPUT EVENT                       *
    AT SELECTION-SCREEN OUTPUT.
      PERFORM validate.
                AT SELECTION-SCREEN ON FIELD EVENT                      *
    AT SELECTION-SCREEN ON p_uname.
      PERFORM validate_uname.
                      END OF SELECTION EVENT                            *
    END-OF-SELECTION.
      PERFORM output.
    FORM VALIDATE                                                      *
    This subroutine disables all parameters if user name is not        *
    initialized or user name is not valid.                             *
    There are no interface parameters to be passed to this subroutine. *
    FORM validate.
      w_uname = sy-uname.
      IF p_uname IS INITIAL OR p_uname NE w_uname.
        LOOP AT SCREEN.
          IF screen-group1 EQ 'BL2'.
            screen-active = '0'.
          ELSE.
            screen-active = '1'.
          ENDIF.                           " IF screen-group1 EQ 'BL2'.
          MODIFY SCREEN.
        ENDLOOP.                           " LOOP AT SCREEN.
      ELSEIF p_uname EQ sy-uname.
        LOOP AT SCREEN.
          IF screen-group1 = 'BL1'.
            screen-active = 0.
            MODIFY SCREEN.
          ELSEIF screen-group1 = 'BL2'.
            screen-active = 1.
            screen-output = 1.
            screen-input = 1.
            screen-invisible = 0.
          ENDIF.                           " IF screen-group1 = 'BL1'.
          MODIFY SCREEN.
        ENDLOOP.                           " LOOP AT SCREEN.
      ENDIF.                               " IF p_uname IS INITIAL...
    ENDFORM.                               " VALIDATE
    Form VALIDATE_UNAME                                                *
    This subroutine gives error message and validates the user name.   *
    There are no interface parameters to be passed to this subroutine. *
    FORM validate_uname .
      IF p_uname IS INITIAL.
        MESSAGE 'Enter the user name'(001) TYPE 'E'.
      ELSEIF p_uname NE sy-uname.
        MESSAGE 'Authorization unsuccessful'(002) TYPE 'E'.
      ENDIF.                               " IF p_uname IS INITIAL.
    ENDFORM.                               " VALIDATE_UNAME
    Form  OUTPUT                                                       *
    This subroutine is used to print the output.                       *
    There are no interface parameters to be passed to this subroutine. *
    FORM output .
      IF p_fname IS NOT INITIAL.
        WRITE: / 'First name:'(003),p_fname.
        WRITE: / 'Last name:'(004),p_lname.
        WRITE: / 'Employee id:'(005),p_empid.
      ENDIF.                               " IF p_fname IS NOT INITIAL.
    ENDFORM.                               " OUTPUT
    I think this solves your problem.
    Reward if it helps you.....
    Regards,
    Sandhya

  • How to hide  gui buttons in selection screen

    In Selection screen how to hide buttons like back, exit,cancel buttons.
    can any  one help.

    Hi,
    Create a new GUI Status for your program.. put whatever button you require for it..
    In the AT SELECTION-SCREEN OUTPUT event..
    SET pf-status xxx.
    Regards,
    Anand

  • How to hide menu bar in SAP EP 7.4

    Dear all,
    We are upgrading our system from EHP4 to EHP7.
    How to hide the menu bar (Back, forward,history, favorites, etc..) in the SAP Enterprise portal  7.4 version ?
    Please help me to resolve the issue. Thanks in advance.

    Hi,
    This can be achieved in Framework Page Configuration.
    Navigate to Content Administration -->Portal Display -->Framework Page Configuration.
    Then choose the Frame work Page which is configured .
    In Menu area uncheck the options which you want to hide it in the Framework Page.
    Regards,
    Srinivasan V

  • How to add drop down in SAP screen module pool

    Hi,
    Can you please advise me on how to add drop down in SAP module pool screen (a drop down with fixed set of values).
    Thanks
    Mohit

    Hi,
    Hope it helpful.
    Refer the Program : rsdemo_dropdown_listbox
    Regards,
    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

Maybe you are looking for