10-07-2010 8:46 AM
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
10-07-2010 1:16 PM
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.
10-07-2010 1:16 PM
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.