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

How we can create standard Menu bar using opps concept

Hi Friends,

How we can create standard menu bar using class and methods.in that menu bar i need Drop down like below

1.Print preivew,

2.Export->Word proceesing

->Spread Sheet

->Local File

3.Import

4.print

When click the menu any option it should perform that operation .I was tried using the FM (REUSE_ALV_GRID_DISPLAY).it is working but oops how we can do.

Please Help me and send any sample code

Thanks

Nani

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 08:04 AM

    Hi,

    Try doing this

    While defining your calss add this method.

    • context menu

    METHODS handle_context_menu

    FOR EVENT context_menu_request OF cl_gui_alv_grid

    IMPORTING e_object.

    data :menu type ref to cl_ctmenu,

    submenu type ref to cl_ctmenu.

    CREATE OBJECT submenu.

    *--Add Display All.

    CALL METHOD e_object->add_function

    EXPORTING

    fcode = 'DALL'

    text = 'Display All'.

    CALL METHOD e_object->add_submenu

    EXPORTING

    menu = submenu

    text = 'Display'.

    Regards,

    theja

    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.