Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV detail user command?

Clemenss
Active Contributor
0 Likes
1,493

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.

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.

8 REPLIES 8
Read only

Former Member
0 Likes
1,249

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

Read only

Former Member
0 Likes
1,249

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

Read only

Clemenss
Active Contributor
0 Likes
1,249

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.

Read only

Former Member
0 Likes
1,249

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.

Read only

0 Likes
1,249

Usually we use the ALV functions, not the Objects.

Read only

0 Likes
1,249

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

Read only

Former Member
0 Likes
1,249

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

Read only

Clemenss
Active Contributor
0 Likes
1,249

enough answers.