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 Report

Former Member
0 Likes
1,408

Hi All,

I am doing an interactive ALV report where I want to display the secondary ALV by clicking on the button in the primary ALV report, but the screen remains the same.(i.e I need to expand the list with the same batches by clicking on the button).

In the primary report there is only the details of the material with batch number, by clicking on the button in the material line, I will get another report with details of quantity and price.

Please help me on this.

Thanks in Advance.

Best Regards,

Jayant Kumar

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,223

Thi standard button is provided to expland/compress the current list (Look for 'Defining the Breakdown of the Summation Levels' in online help) Are you looking for an event to handle and change standard behavior? On the other hand, could you consider adding an icon with hotspot attribute set in the list and handle the click on this icon?

Regards,
Raymond

Read only

0 Likes
1,223

Hi Raymond,

Thank you for the reply,

It is a customizing report not the standard one,

The business needs the button to expand the list.

Is there any reference program for this.

Best Regards,

Jayant Kumar

Read only

0 Likes
1,223

None that I know. You could try to handle event BEFORE_USER_COMMAND, butyou don't keep it simple...

Read only

former_member185116
Active Participant
0 Likes
1,223

Hi jayant,

instead of using standard button why don't you use hotspot functionality on column field

and when user selects hotspot , display the required secondary alv data.

thanks and regards,

vinay.

Read only

Former Member
0 Likes
1,223

I can use the Hotspot functionality also.

So is there any reference program which we can use?

Read only

former_member185116
Active Participant
0 Likes
1,223

hi jayant,

in the fieldcat declare as

clear wa_fcat1.
wa_fcat1-col_pos = 4.
wa_fcat1-fieldname = 'WTR_COUNT'.
wa_fcat1-tabname = 'IT_PRPS1'.
wa_fcat1-outputlen = 4.
wa_fcat1-coltext = 'any suitable text'.
wa_fcat1-style = ALV_STYLE_FONT_BOLD.
wa_fcat1-just = 'C'.
wa_fcat1-emphasize = 'C601'.
wa_fcat1-hotspot = 'X'.
APPEND wa_fcat1 to it_fcat1.
clear wa_fcat1.


FORM user_command USING r_ucomm type sy-ucomm
rs_selfield type slis_selfield.

case r_ucomm.

when '&IC1'.

if rs_selfield-tabindex ne 0.

if rs_selfield-fieldname eq 'any suitable text'.

write your logic here..

endif.

endif.

endcase.

endform.