Skip to Content
author's profile photo Former Member
Former Member

To get logo on the screen

Hi,

i have designed one screen and in tht i want to display the company logo for tht wht i have to do please can any one help i will reward points for sure

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 12:00 PM

    Sunil,

    Try 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 = 'PIX PATHNAME'.
    IF sy-subrc NE 0.
    * Fehlerbehandlung
    ENDIF.
    
    ENDFORM. "show_pic

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 04:23 PM

    Hi Sunil,

    If you like to do it on top of an ALV-List, you could use the functionality of the function reuse_alv_commentary_write.

    regards

    Sven

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.