Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

interactive OOALV-problem

Former Member
0 Likes
690

My requirement is that 1 button already has been added in the menu bar od ALV. Now, when that push button is clicked, there will be 2 more pushbutton should appear on the menu bar of ALV.

How can achieve this?

5 REPLIES 5
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
665

It's simple :

set handler for toolbar and user_command.

when 'PUSH1'.

call method :

METHOD handle_toolbar.

DATA: ls_bar TYPE stb_button.

CLEAR ls_bar.

*add user button to the ALV toolbar

MOVE 'TRANS' TO ls_bar-function.

MOVE text-004 TO ls_bar-quickinfo.

MOVE icon_transport TO ls_bar-icon.

MOVE text-005 TO ls_bar-text.

CLEAR ls_bar-disabled.

APPEND ls_bar TO e_object->mt_toolbar.

Read only

0 Likes
665

I am getting dump while doing this.

dump is Access via 'NULL' object reference not possible.

Read only

Former Member
0 Likes
665

You can have the menu in the initial stage itself. By default, disable it. If the user command is 'PUSH', enable those menu functions.

Cheers

Sujay

Read only

0 Likes
665

any body has worked on this.

Read only

Former Member
0 Likes
665

use button_click mehtod