Skip to Content
avatar image
Former Member

single field in second main window

Hi,

I have created 2 main windows vertically set in the same page to display the line items in the layout. I have to display 5 fields in the main window but i am able to display only 4 fields in the first main window. My requirement is, i have to display the 5th field beside the line items in the main window. Is it possible to shuffle between 2 main windows? Can anybody provide me a solution for this.

Thanks

Geeta

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 23, 2007 at 06:59 PM

    You can switch from your first Main window to the second Main window by doing this:

      call function 'CONTROL_FORM'
           EXPORTING
                command   = 'NEW-WINDOW'
           EXCEPTIONS
                unopened  = 01
                unstarted = 02.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 23, 2007 at 07:05 PM

    Hello,

    Try to create a window with a splitter control, and add 2 alv grids inside each window.

    Hope this helps.

    Gabriel

    Like this :

    DATA container TYPE REF TO cl_gui_custom_container.

    DATA splitter TYPE REF TO cl_gui_easy_splitter_container.

    DATA right TYPE REF TO cl_gui_container.

    DATA left TYPE REF TO cl_gui_container.

    IF container IS INITIAL.

    CREATE OBJECT container

    EXPORTING container_name = 'CONTAINER'.

    CREATE OBJECT splitter

    EXPORTING parent = container

    orientation = 1.

    left = splitter->top_left_container.

    right = splitter->bottom_right_container.

    ENDIF.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 23, 2007 at 07:12 PM

    Hi,

    Thanks for your answers. I am using standard print program. So, I will not be able to write any code in the print program. I am writing code in the perform statement in the script to fetch the value for the field BSEG-SGTXT (item text) based on the line item fields BELNR and BUKRS. My requirement is i have to print the SGTXT field beside each line item. But it is not fitting in my main window.

    Pls suggest how to do it?

    Thanks

    Geeta

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      The matter is that you are not able to use 2 main windows, so you will have to do it only on 1 main window.

      Try to make the window wider or put the long text in a new line.

      Also, try to create a second window on the top of the main window, but it will be tricky to arrange it.

      Hope this helps!!

      Gabriel