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 List Display With a Pushbutton in the basic list

Former Member
0 Likes
492

i have displayed the po details in teh basic list. I have used the double clicking functionality. It worked well. Now instead of double clicking, i will place the cursor on the po and click a push button. then it should show the other details.

Can anyone please guide me how to create the pushbuttons on the basic list ?

i have displayed the po details in teh basic list. I have used the double clicking functionality. It worked well. Now instead of double clicking, i will place the cursor on the po and click a push button. then it should show the other details.

Can anyone please guide me how to create the pushbuttons on the basic list ?

3 REPLIES 3
Read only

Former Member
0 Likes
459

Hi,

You create your own GUI status.Pass the name of GUI status to FM REUSE_ALV_GRID_DISPLAY.

e.g.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = sy-repid

CALLBACKPF_STATUS_SET = 'PF'

i_callback_user_command = 'USER_COMMAND'

i_grid_title = text-020

is_layout = wa_layout

it_fieldcat = it_fieldcat[]

TABLES

t_outtab = it_basic

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.

FORM PF.

SET PF_STATUS 'P1'.

ENDFORM.

On pressing that button go to secondary list.

Read only

Former Member
0 Likes
459

Hi,

Go to se41 , create pf-status and provide a button in the application tool bar.

then pass it to reuse_alv_list_display.

and also write the coding in user_command event.

u can get all the events in reuse_alv_events_get or directly u can pass it to user_command parameter in reuse_alv_list_display.

Hope this solve ur problem.

Rgds.,

subash.

Read only

Former Member
0 Likes
459

I Myself solved the issue.