How to input logo with REUSE_ALV_GRID_COMMENTARY_SET

HEllo guys,
Im facing a problem,
Im trying to include a logo in my TOP_EVENT, but i don't know what do i need to do.
I have this call,
CALL FUNCTION 'REUSE_ALV_GRID_COMMENTARY_SET'
     EXPORTING
       document = dg_dyndoc_id
       bottom   = space
     IMPORTING
       length   = dl_length.
But i couldn't find the method to include the logo in dg_dyndoc_id.
Anybody could help me?
Thanks,
Lucas Antoni.

Hi Lucas,
Use the method
CALL METHOD o_dyndoc_id->add_picture
    EXPORTING
      picture_id
      ='ENJOYSAP_LOGO'.
Please refer following code for your reference.
DATA: it_flight TYPE TABLE OF sflight.
DATA: ok_code LIKE sy-ucomm, save_ok LIKE sy-ucomm.
DATA:  g_container TYPE scrfname VALUE 'CONTROL',
       o_dyndoc_id  TYPE REF TO cl_dd_document,
       o_splitter   TYPE REF TO cl_gui_splitter_container,
       o_parent_grid TYPE REF TO cl_gui_container,
       o_parent_top TYPE REF TO cl_gui_container,
       o_html_cntrl TYPE REF TO cl_gui_html_viewer.
*       CLASS LCL_EVENT_HANDLER DEFINITION
CLASS lcl_event_handler DEFINITION .
  PUBLIC SECTION .
    METHODS:
*Event Handler for Top of page
     top_of_page FOR EVENT top_of_page  OF cl_gui_alv_grid
     IMPORTING e_dyndoc_id.
ENDCLASS.                    "LCL_EVENT_HANDLER DEFINITION
"lcl_event_handler DEFINITION
*       CLASS LCL_EVENT_HANDLER IMPLEMENTATION
CLASS lcl_event_handler IMPLEMENTATION.
  METHOD top_of_page.
* Top-of-page event
    PERFORM event_top_of_page USING o_dyndoc_id.
  ENDMETHOD.                            "top_of_page
ENDCLASS.                    "LCL_EVENT_HANDLER DEFINITION
*LCL_EVENT_HANDLER IMPLEMENTATION
DATA: g_custom_container TYPE REF TO cl_gui_custom_container,
      g_handler TYPE REF TO lcl_event_handler.
"handler
START-OF-SELECTION.
  SELECT * FROM sflight UP TO 20 ROWS INTO TABLE it_flight.
END-OF-SELECTION.
  IF NOT it_flight[] IS INITIAL.
    CALL SCREEN 100.
  ELSE.
    MESSAGE  'NO DATA FOR THE SELECTION' TYPE 'I'.
  ENDIF.
*  MODULE STATUS_0100 OUTPUT
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'STATUS'.
  SET TITLEBAR 'TITLE'.
  IF g_custom_container IS INITIAL.
    PERFORM create_and_init_alv.
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT
*  MODULE USER_COMMAND_0100 INPUT
MODULE user_command_0100 INPUT.
  CASE sy-ucomm.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&      Form  CREATE_AND_INIT_ALV
*       text
FORM create_and_init_alv .
  DATA: g_grid TYPE REF TO cl_gui_alv_grid.
  CREATE OBJECT g_custom_container
    EXPORTING
      container_name = g_container.
* create top-document
  CREATE OBJECT o_dyndoc_id
    EXPORTING
      style = 'ALV_GRID'.
* create splitter for custom_container
  CREATE OBJECT o_splitter
    EXPORTING
      parent  = g_custom_container
      rows    = 2
      columns = 1.
  CALL METHOD o_splitter->get_container
    EXPORTING
      row       = 1
      column    = 1
    RECEIVING
      container = o_parent_top.
  CALL METHOD o_splitter->get_container
    EXPORTING
      row       = 2
      column    = 1
    RECEIVING
      container = o_parent_grid.
* set height for g_parent_html
  CALL METHOD o_splitter->set_row_height
    EXPORTING
      id     = 1
      height = 5.
  CREATE OBJECT g_grid
    EXPORTING
      i_parent = o_parent_grid.
  CREATE OBJECT g_handler.
  SET HANDLER g_handler->top_of_page FOR g_grid.
*calling the method for alv output
  CALL METHOD g_grid->set_table_for_first_display
    EXPORTING
      i_structure_name = 'SFLIGHT'
    CHANGING
      it_outtab        = it_flight[].
  CALL METHOD o_dyndoc_id->initialize_document
    EXPORTING
      background_color = cl_dd_area=>col_textarea.
* processing events
  CALL METHOD g_grid->list_processing_events
    EXPORTING
      i_event_name = 'TOP_OF_PAGE'
      i_dyndoc_id  = o_dyndoc_id.
ENDFORM.                    "CREATE_AND_INIT_ALV
"CREATE_AND_INIT_ALV
*&      Form  EVENT_TOP_OF_PAGE
*       text
*      -->DG_DYNDOC_ID  text
FORM event_top_of_page USING   dg_dyndoc_id TYPE REF TO cl_dd_document.
  DATA : dl_text(255) TYPE c.
  "Text
  CALL METHOD dg_dyndoc_id->add_text
    EXPORTING
      text         = 'Flight Details'
      sap_style    = cl_dd_area=>heading
      sap_fontsize = cl_dd_area=>large
      sap_color    = cl_dd_area=>list_heading_int.
  CALL METHOD dg_dyndoc_id->add_gap
    EXPORTING
      width = 200.
  CALL METHOD o_dyndoc_id->add_picture
    EXPORTING
      picture_id
      ='ENJOYSAP_LOGO'.
* add new-line
  CALL METHOD dg_dyndoc_id->new_line.
  CALL METHOD dg_dyndoc_id->new_line.
  CLEAR : dl_text.
* program id
  dl_text = 'Program Name :'.
  CALL METHOD dg_dyndoc_id->add_gap.
  CALL METHOD o_dyndoc_id->add_text
    EXPORTING
      text         = dl_text
      sap_emphasis = cl_dd_area=>heading
      sap_color    = cl_dd_area=>list_heading_int.
  CLEAR dl_text.
  dl_text = sy-repid.
  CALL METHOD o_dyndoc_id->add_text
    EXPORTING
      text         = dl_text
      sap_emphasis = cl_dd_area=>heading
      sap_color    = cl_dd_area=>list_negative_inv.
* add new-line
  CALL METHOD dg_dyndoc_id->new_line.
  CLEAR : dl_text.
  CLEAR : dl_text.
* program id
  dl_text = 'User Name :'.
  CALL METHOD dg_dyndoc_id->add_gap.
  CALL METHOD o_dyndoc_id->add_text
    EXPORTING
      text         = dl_text
      sap_emphasis = cl_dd_area=>heading
      sap_color    = cl_dd_area=>list_heading_int.
  CLEAR dl_text.
  dl_text = sy-uname.
  CALL METHOD o_dyndoc_id->add_text
    EXPORTING
      text         = dl_text
      sap_emphasis = cl_dd_area=>heading
      sap_color    = cl_dd_area=>list_negative_inv.
* add new-line
  CALL METHOD dg_dyndoc_id->new_line.
  CLEAR : dl_text.
* run date
  dl_text = 'Run Date :'.
  CALL METHOD dg_dyndoc_id->add_gap.
  CALL METHOD o_dyndoc_id->add_text
    EXPORTING
      text         = dl_text
      sap_emphasis = cl_dd_area=>heading
      sap_color    = cl_dd_area=>list_heading_int.
  CLEAR dl_text.
* move date
  WRITE sy-datum TO dl_text.
  CALL METHOD o_dyndoc_id->add_text
    EXPORTING
      text         = dl_text
      sap_emphasis = cl_dd_area=>heading
      sap_color    = cl_dd_area=>list_negative_inv.
* add new-line
  CALL METHOD dg_dyndoc_id->new_line.
  CLEAR : dl_text.
*timedl_text = 'Time :'.
  CALL METHOD dg_dyndoc_id->add_gap.
  CALL METHOD o_dyndoc_id->add_text
    EXPORTING
      text         = dl_text
      sap_emphasis = cl_dd_area=>heading
      sap_color    = cl_dd_area=>list_heading_int.
  CLEAR dl_text.
* move time
  WRITE sy-uzeit TO dl_text.
  CALL METHOD o_dyndoc_id->add_text
    EXPORTING
      text         = dl_text
      sap_emphasis = cl_dd_area=>heading
      sap_color    = cl_dd_area=>list_negative_inv.
* add new-line
  CALL METHOD dg_dyndoc_id->new_line.
  PERFORM display.
ENDFORM.                    " EVENT_TOP_OF_PAGE
*&      Form  DISPLAY
*       text
FORM display.
*creating html control
  IF o_html_cntrl IS INITIAL.
    CREATE OBJECT o_html_cntrl
      EXPORTING
        parent = o_parent_top.
  ENDIF.
  CALL METHOD o_dyndoc_id->merge_document.
  o_dyndoc_id->html_control = o_html_cntrl.
* display document
  CALL METHOD o_dyndoc_id->display_document
    EXPORTING
      reuse_control      = 'X'
      parent             = o_parent_top
    EXCEPTIONS
      html_display_error = 1.
  IF sy-subrc NE 0.
    MESSAGE  'Error in displaying top-of-page' TYPE 'I'.
  ENDIF.
ENDFORM.                    " display
Regards,
Gurunath D

Similar Messages

  • How can upload logo with Title in Dreamweaver CS3

    Hi I want to upload the logo with the title but i am not getting the option to upload the logo with the title

    on the top with the title of the page
    In lots of website we see the img or logo
    that I want to upload
    like "facebook.com"

  • How to input values with lsmw?

    Hi,
    I'm trying to maintain pricing master data with object of LSMW as below.
    Object               0070   Condition record
    Method               0000
    Program Name         RV14BTCI
    Program Type         B   Batch Input
    but I can't find where I can input the fields 'Max.condition value' and 'Max.cond.base value'.
    pls help.
    tks in advance.

    Hi ,
    In Lsmw , we will input through flat file or an excel file.
    please check in steps of lsmw , where first we have to define a structure of the file and then say the either input the values from the flat file or word with a tab separator.
    thanks
    Kuntla

  • I have a late 2011 model MacBook Pro running Mountain Lion.  I love the AirPlay mirroring feature with Apple TV...BUT, how do I mirror with TVs that don't have Apple TV?  I used to run a cable from my mini display port to the HDMI input of a TV.

    I have a late 2011 model MacBook Pro running Mountain Lion.  I love the AirPlay mirroring feature with Apple TV...BUT, how do I mirror with TVs that don't have Apple TV?  I used to run a cable from my mini display port to the HDMI input of a TV.  This feature seems to be lost in the Mountain Lion upgrade.  Did Apple feel that once Mountain Lion came out that EVERYONE would have Apple TV?  There are no settings in System Preferences/Display like there used to be...only for AirPlay Mirroring.

    Running a cable to the HDMI port is still supported. (and still works on mine).
    If the Arrangement tab in System Preferences > Displays isn't present then it doesn't recognize the physical connection.  Double check all cables.  If that doesn't work try a PRAM reset:
    http://support.apple.com/kb/ht1379

  • How to link bindvariable with ViewAccessor to make it ADF Input with LOV

    I have create a view object by sql query in which i have two bind variables. I want to create a search form by these two bind variables as search criteria so i drag "Execute with Params" operation from Viewobject Data Control to a jspx page as a ADF Search Form. Now i want to create these two parameters as a ADF Input LOV so i changed control type in view Object for these two bind variables but i am not able to fine how to attach viewaccessor with it for data source. Kindly help me.

    Hi,
    in this case - if th ebind variables are not based on an attribute that has a LOV defined - you replace the components in the input form. To do this, remove the input text field and drag the attribute (the argument) onto the form again. Choose select one choice to create a drop down and then map it to the VO that providesthe values. Note that this doesn't create a LOV binding so you use lists for this.
    Frank

  • While i was updating my ipod touch it had an error and froze at the apple logo with a loading bar underneath.How do I fix it? Its stuck there,  tried everything, turn off button home screen button even the volume buttons, nothing is working.

    I was updating my ipod touch and the updation had an error and it froze at the apple logo with the loading bar underneath. How do I fix it? I tried the turn off button home screen button and even the volume buttons. I cant get anything to work. Please help me.

    Connect to itunes and retore.

  • How to insert a logo with final cut express 4?

    How to insert a logo with final cut express 4? like this
    http://www.milano.nl/sbs6_2005.jpg

    I'm not certain, but I think, if there's not a background color saved as part of the original file, you'll retain the transparency. Give it a try.
    What application are you using to create the original file?

  • How to input password automatically with below html code

      I want to display one pdf file with password(I know the password) on website.How to input password automatically
    with below html code:
    <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="760" height="411" border="0">
          <param name="_Version" value="65539">
          <param name="_Password" value="1234">
    it seems <param name="_Password" value="1234"> does not work.
    Is there any way to input password of PDF file automatically on server side so that Client user don't need to input password.

    Not possible.

  • I was in the middle of updating to 7.0.3 and Itunes stopped working. Now my phone is stuck in limbo (apple logo with status bar under) My power button doesnt work (of course) How do I get it back to normal?

    I was in the middle of updating to 7.0.3 and Itunes stopped working. Now my phone is stuck in limbo (apple logo with status bar under) My power button doesnt work (of course) How do I get it back to normal?

    I have same issue. I click on the home button and Wake/sleep at the same time for 30 seconds or more and then the phone entered in Recovery mode. It is erasing my content now and installing the update. Let´s see how this ends. I have iCloud, iTunes match, and backups from previos versions, hope I can restore all my content.
    Otherwise I´ll go to the Genius Bar to do a checkup.
    Good luck!
    It did not work the first time... The iPhone4 kept in limbo. Then I did disconnect as suggested above and tried again to enter in Recovery mode.  This second time it works. And after restoring the iPhone4 with 7.0.3, it asked me if I want to recover from backup. I did recover from my latest back up and now it is syncing the content.

  • HT4623 iPhone 4s will not boot after trying to install ios7 beta 4. Stops at apple logo with progress line under it. how can I reset it or get it back up to do a restore then try the iOS 7 beta 4 install again. Issue was probably caused by disconnection

    iPhone 4s will not boot after trying to install ios7 beta 4. Stops at apple logo with progress line under it. how can I reset it or get it back up to do a restore then try the iOS 7 beta 4 install again. Issue was probably caused by disconnection

    Obviously since you have iOS 7 you're a developer.  As a developer, you signed a NDA with Apple not to discuss the iOS on a public forum.  Please log in to the Developer Forum using your credentials and ask for help there, lest you risk having your credentials terminated.
    Thanks, and best of luck to you.
    GDG

  • How to read the 'Input help with fixed values' of domain .

    How to read the 'Input help with fixed values' of domain .
    The domain has a Value range i want to read those values .
    Are these values stored in any table ?
    Plz help me i need it ver badly...
    Thanks in Advance...

    Hi Chandra Shekhar,
    To read the 'Input help with fixed values' of domain , you can use the function module : HR_P_GET_FIXED_VALUE_TEXT.
    iIf you enter the domain name, you will find the fixed values entered in the domain.
    These values are stored in a table DD07L(DD zero 7 L). Here the values are stored based on domain name.
    See if it works for you.
    Award points if its helpful.
    Regards,
    Bhanu

  • How do I replace 2 pantone colors with 2 new pantone colors globally? I have a 2 PMS logo with many tint variations in it . When I replace PMS in Swatches pallette. The logo does not globally replace the selected color. es

    I have a 2-PMS color logo with many tints in it of the 2 colors. When I replace the  swatches in the logo to new colors, they convert from Book Color to CMYK. Can the printer work with that? How can I kee it a 2-color separation?
    MaryFl

    This is what I understand. You have a logo in a document that uses PMS 'A' and PMS 'B' colors and you want to change to colors PMS 'C' and PMS 'D'. If this is correct there are different ways to do this, but here is a traditional way:
    Make sure Select Same Tint is turned OFF in the Preferences. And all objects are unlocked in the document.
    Get the two PMS (C and D) in the document's Swatches Panel.
    Select PMS 'A' and bring the 'Fill' box in focus.
    From the Select menu choose Same > Fill Color.
    Click on PMS 'C' in Swatches panel to replace all PMS 'A' fills with PMS 'C'.
    Deselect all.
    Again select PMS 'A' and this time bring 'Stroke' box in focus.
    From the Select menu choose Same > Stroke Color.
    Click on PMS 'C' in Swatches panel to replace all PMS 'A' strokes with PMS 'C'.
    Deselect all.
    Similarly using the same approach replace PMS 'B' wit PMS 'D'.
    If you have CS3 / CS4 and the PMS colors in the logo are easily identifiable, you can use Live Color to change the colors pretty easily.
    Hope this helps!
    - Neeraj
    New Note: If there are gradients / blends that use these PMS colors the above approach would not work, but Live Color can.

  • When i try to access iwork on iCloud on my mac, i get an ipage logo with 2 options learn/get image. I already have ipage on my mac. How can i get to the file  management page?

    When i try to access iwork on iCloud on my mac, i get an ipage logo with 2 options learn/get image. I already have ipage on my mac. How can i get to the file  management page?

    Lion will only let you add documents to iCloud through iCloud.com, iCloud.com requires the iOS apps before you can use it.
    Mountain Lion will let you add documents to iCloud from the iWork apps themselves, you don't then need the iOS apps before they can be opened on another Mac.

  • How do I send my business logo with my new email

    Hi , can someone please explain how to attach my business email header with business logo to every email I send. It is a htm file and I can do it via PC but I don't know how to do it with my mail on the mac.
    Cheers chris

    Is this something you want to embed into the email header, or make as the top line in the message body? Or would it be okay to attach it as a signature at the bottom.
    I don't think you can stick it into the message header to be displayed as an X-face. I think there used to be a 3rd-party add-on that would do that for Panther, but it no longer works (or never worked) for Tiger.
    Not certain about htmls, and not quite certain that this is what you would want, but there is another post here in this forum, dated today, that asked about inserting hyperlinks into email messages.
    If you wanted to insert this as the first line in your message, you could convert the html to gif or jpg and drag the resulting file into the message. At least in Mac's Mail.app, those would expand automagically at the receiver. Don't know whether Windows in general or other Mail programs, regardless of platform, would do that expansion automagically, though.
    You could do a similar thing if you would be okay with a "business card" attached as a signature to the email. Just go through the motions like you are going to create a new signature, but rather than type anything in the signature text box, just drag your jpg or gif file into the text box instead.
    Or suppose that none of the above is exactly what you want. You say you could do this on a PC so do it again on a PC and send it to you and retrieve your mail on your Mac in Mail.app. Then keep that message, essentially, as a template, and just ⇧⌘D (Mail > Message > Send again). That basically pulls that message up in a new window, you can re-edit it, re-address it, and send it on its way while retaining the original template that you mailed to yourself indefinitely.

  • A lock logo with an arrow encircling it has appeared besides the battery percentage symbol in my iphone 4s. What does that mean and how to get rid of it ?

    a lock logo with an arrow encircling it has appeared besides the battery percentage symbol in my iphone 4s. What does that mean and how to get rid of it ?

    Its the screen orientation lock, and is covered in the User Guide.
    Double-tap the home button, swipe to the right on the dock area and tap the left-most icon.

Maybe you are looking for

  • Need Help to Silentinstallation and Listener Config

    Hallo, have anyone a Tip to me? We plan to install many Servers (Oracle 10gR2 on Windows 2003) by silent installationscripts, but we have problems with Listener configuration. How can we get a listener.ora with the actual Hostname given by the Window

  • All Adobe plug-ins no longer work or install under FF 3.6.6

    As soon as I upgraded, Adobe Reader and Adobe Flash stopped working, with a message saying I needed a newer version. When I tried to install those, however, I get an error message saying additional plug-ins are needed to continue. When I click to loa

  • I want to sell my iMac G4 and the install disk doesn't work. What do I do?

    I want to sell or give away my iMac G4 but the install disk won't run. I've formatted the drive and installed Panther from disks I bought when it first came out. I've installed them it to the point at which the animation comes up and you are asked to

  • Corrupt or damaged file after sending to print

    I'm using CS3 and when I email files to print they are not able to open bc damaged or corrupt. We use at least 4 printers-this is the only one that has problems with the files. I've heard I need to save down to CS1 is this correct? Or not necessary-T

  • C# WPF read a .txt file line by line and store it to listview with GridViewColumn

    I have a .txt file with text in the following format: Name Pid CPU Thd Hnd Priv CPU Time Elapsed Time Idle 0 99 8 0 0 203:18:16.647 26:02:53.315 I want to store it in a listview with a GridViewColumn. Name is one GridViewColumn and in this I want to