11-16-2005 10:41 AM
Hi,
sorry, I'm notoriously curious:
On ALV Grid & List display we use user commands (like double-click) to branch to whatever we like.
But on the detail screen there is only Find and Enter.
It would be nice to have the same functions on the detail screen.
Usually we use the ALV functions, not the Objects.
Any ideas?
TIA,
C.
11-16-2005 10:45 AM
Hi Clemens,
YOu can just as well have the same functionality of the main alv for even the secondary lists also. Only thing you have to do is to build the field catalog , layout etc for the secondary list data also and then call the same ALV GRID function module.
Regards,
Ravi
11-16-2005 10:48 AM
Hi Clemens,
Can u please clarify what is exactly required.
I could make out that some basic list is there.
Upon double-click, it goes to detail screen.
Regards,
Amit M
11-16-2005 10:57 AM
Sorry.
do you know what an ALV Detail screen is?
Look at the Grid or List Display:
Top row is Menu (List, Edit, Goto...)
Second row is system & GUI command Icons (Enter, Back, find...)
Thirs row is user status icons as defined in the ALV or User Status. ALV provides the lens icon (ICON_SELECT_DETAIL) for the ALV command '&ETA'.
Click there. See what you get. Understand my question.
You can use SE16 GRID display as an example.
Or ask more.
C.
11-16-2005 11:04 AM
Hi,
Go to SE24 and give the class name CL_GUI_ALV_GRID .
In the second screen you can all the methods in it.
For example dbl_click_ method is used for double click event for the ALV grid..
So you can handle all the events in this way.
SE24 transaction helps you a lot.
Or go to any se16 table entries and change the layout as ALV grid display and observe.
You can also check the same in debuggind mode for se16 table entries.
11-16-2005 12:27 PM
11-16-2005 12:49 PM
HI Clemens,
I now understand you question. YOu were talking about the standard functionality that ALV Grid has provided by default. For that default functionality the PF-Status fir the popup has been defined as 'STDPOPUP'. it has only few buttons as you have already mentioned.
If you want to have a rather wide range of functionality in addition to the standard ENTER and FIND, you have to customize it and handle it in your code (Just as you do for the interactive ALV GRID reports).
Regards,
Ravi
11-16-2005 1:41 PM
Get the OKcode for that detail and handle the sy-ucomm.
and instead of Standard pop up, give ur own pop up
and PF-status.
use this FM to show the popup REUSE_ALV_POPUP_TO_SELECT.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
I_TITLE =
I_SELECTION = 'X'
I_ALLOW_NO_SELECTION =
I_ZEBRA = ' '
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_CHECKBOX_FIELDNAME =
I_LINEMARK_FIELDNAME =
I_SCROLL_TO_SEL_LINE = 'X'
I_TABNAME =
I_STRUCTURE_NAME =
IT_FIELDCAT =
IT_EXCLUDING =
I_CALLBACK_PROGRAM =
I_CALLBACK_USER_COMMAND =
IS_PRIVATE =
IMPORTING
ES_SELFIELD =
E_EXIT =
TABLES
T_OUTTAB =
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
what ever pf status you want keep them and excllude rest using it_excluding.
this will solve ur problem
07-24-2008 9:12 PM