Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8627

Add options at right click on package

$
0
0

Hi all,

 

I have added two options on the right click on package(SE80), like this:

Capture.PNG

This is the code from BADI WB_OBJ_CTMENU with filter value type K - Packages:

************

DATAsubsubmenu TYPE REF TO cl_ctmenu.

 

    CREATE OBJECT subsubmenu.

    CALL METHOD subsubmenu->add_function

      EXPORTING

        fcode       = 'Z_OPT1' "' WB_DISPLAY'

        text        = 'Option1'


CALL METHOD subsubmenu->add_function

      EXPORTING

        fcode       = 'Z_OPT2'

        text        = 'Option2'.

 

    CALL METHOD p_context_menu->add_submenu

      EXPORTING

        menu = subsubmenu

        text = 'Z_Options'.

**************

Now, I want at click on "Option1" to run a Z* transaction.

I tried all the parameters from class cl_ctmenu, but nothing.

 

It's working only with standar options from table WBACTIONS.

 

Regards,

Adi


Viewing all articles
Browse latest Browse all 8627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>