Application Development 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: 

Define buttone in CL_GUI_DIALOGBOX_CONTAINER

Former Member
0 Kudos

Hello,

May I know if it is possible to define our own buttun, if we use CL_GUI_DIALOGBOX_CONTAINER to create a dialog box. And

how can I? thank you very much.

Best regards,

Shumin

5 REPLIES 5

former_member217544
Active Contributor
0 Kudos

Hi,

If you havent checked til now, then check with the where-used list of the class. Seems there are some standrad programs using this class.

Regards,

Swarna Munukoti

Former Member
0 Kudos

Hello,

I have used "where used list", but mostly, they do not have their own button.

Thanks,

Shumin.

Clemenss
Active Contributor
0 Kudos

Hi Shumin,

the CL_GUI_DIALOGBOX_CONTAINER is nothinmg but a resizable popup without content. When created, it has only the close window cross on the upper right corner. If you want this to work, you have to define and register the handler for the close event.

If you want other buttons on it, you have to place a control on the dialogbox. If you place a CL_GUI_ALV_GRID control, you have a grid including a toolbar with buttons. If you want a button only, you may use dynamic document like CL_DD_BUTTON_ELEMENT. I prefer to use a CL_GUI_TOOLBAR where I can add buttons freely.

Please check report DD_ADD_FORM_BUTTON and/or SAP_FULLSCREEN_CONTAINER_DEMO for details, SAP_FULLSCREEN_CONTAINER_DEMO uses the dialog control (flag 'display in popup') and toolbars but no CL_DD_BUTTON_ELEMENT.

Kind regards,

Clemens

Former Member
0 Kudos

Hello,

Thank you very much for answer and helping, after trying CL_GUI_TOOLBAR, I think maybe it can not solve my problem, because besides the CL_GUI_TOOLBAR, I also want to add CL_GUI_ALV_GRID to the CL_GUI_DIALOGBOX_CONTAINER. and the toolbar I want just like the application toolbar in the GUI status.

Thanks a lot.

Best regards,

Shumin

Former Member
0 Kudos

Hi Wang,

I have a similar requirement to add a button on the alv grid report displayed in a dialog container. How did you solve this? Please post here.

Thanks,

Lavanya