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: 

Custom controller iue in OOPS ALV

Former Member
0 Kudos

Hi All,

I have created a ALV report by OOPS. I have used custom controller. In my sytem the outpout creen are id different and in other system the output screen area is different. How to avoid this issue? I want the report output should be system independent and it should take complete screen area?

Please help..

Regards,

Jeetu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Jeetu,

You should not drag-drop & create a container in screen layout.

Instead you need to declare docking container using class cl_gui_docking_container.

Sample code below:

CONSTANTS: lc_height TYPE i VALUE 1200.

IF sy-batch IS INITIAL.

CREATE OBJECT go_container

EXPORTING

repid = sy-repid

dynnr = sy-dynnr

side = 2 " Top

extension = lc_height

metric = 1 " Pixel

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

OTHERS = 6.

ENDIF.

Regards,

Nisha Vengal.

1 REPLY 1

Former Member
0 Kudos

Hi Jeetu,

You should not drag-drop & create a container in screen layout.

Instead you need to declare docking container using class cl_gui_docking_container.

Sample code below:

CONSTANTS: lc_height TYPE i VALUE 1200.

IF sy-batch IS INITIAL.

CREATE OBJECT go_container

EXPORTING

repid = sy-repid

dynnr = sy-dynnr

side = 2 " Top

extension = lc_height

metric = 1 " Pixel

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

OTHERS = 6.

ENDIF.

Regards,

Nisha Vengal.