Skip to Content
author's profile photo Former Member
Former Member

Custom controller iue in OOPS ALV

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 12: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.