on 04-23-2007 7:54 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.