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

Interactive ALV

Former Member
0 Likes
666

Hello Gurus,

Can any one please send me threads or docus for 'Interactive ALV'.

Regards,

Sumanth.

1 ACCEPTED SOLUTION
Read only

Former Member
5 REPLIES 5
Read only

Former Member
Read only

abdul_hakim
Active Contributor
0 Likes
595

Check the program BCALV_GRID_03.

Abdul

Read only

Former Member
0 Likes
595
Read only

Former Member
0 Likes
595

Thanks for all your response!!!

Now i come out with the prob..

Iam trying to display 2 ALVs; the basic alv (REUSE) has material# and some more fields. On double click of a particular matnr, iam trying to display another alv (REUSE) with further details of the matnr selected. This is working fine.

But, once the user comes back form the secondary dispaly and selects some other matnr there some going back to secondary grid....below is the code, kindly suggest on this...

BASIC ALV

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = 'XYZ'

i_callback_user_command = user_command

it_fieldcat = t_fieldcat_lvc[]

TABLES

t_outtab = it_material[]

EXCEPTIONS

program_error = 1

OTHERS = 2.

**********************************************

SECONDARY ALV....

FORM user_command USING r_ucomm LIKE sy-ucomm

p_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN '&IC1'.

IF p_selfield-sel_tab_field = 'IT_MATERIAL-MATNR'.

PERFORM display_alv_output USING p_selfield-value .

ENDIF.

ENDCASE.

ENDFORM. "user_command

****************

FORM display_alv_output USING p_value.

DATA :it_display1 LIKE it_display OCCURS 0.

MOVE it_display[] TO it_display1[].

DELETE it_display1[] WHERE matnr NE p_value.

IF it_display1[] IS INITIAL.

EXIT.

ENDIF.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = 'XYZ'

it_fieldcat = t_fieldcat_lvc[]

TABLES

t_outtab = it_display1[]

EXCEPTIONS

program_error = 1

OTHERS = 2.

ENDFORM. " DISPLAY_ALV_OUTPUT

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
595

Hi,

module USER_COMMAND_9001 input.

CASE sy-ucomm.

when 'BACK'.

set screen '0'.

leave screen.

ENDCASE.

endmodule. " USER_COMMAND_9001 INPUT

Kindly reward points by clicking the star on the left of reply,if it helps.