Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

class CL_GUI_CUSTOM_CONTAINER->set_height

Hello Friends,

I have created a container from the class CL_GUI_CUSTOM_CONTAINER,

And I want to set the height of this container at runtime.

My code looks like this:

Data: textedit_custom_container type ref to cl_gui_custom_container,

create object textedit_custom_container

exporting container_name = 'NOTE_EDITOR'

exceptions cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5.

I want to call the method set_height, but I am not sure how to do this,

Could anyone provide an example? it would be much appreciated...

Best regards to you all..

Ballo

Tags:
Former Member
replied

You can do it like this:

data: i_height type i.

call method textedit_custom_container->set height 
exporting height = i_height.  " << i_height is your height say 20

Regards,

Naimesh Patel

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question