‎2017 Feb 17 3:45 AM

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
‎2017 Feb 17 7:03 AM
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
‎2017 Feb 20 3:28 AM
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
‎2017 Feb 20 7:36 AM
‎2017 Feb 20 6:52 AM
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.
‎2017 Feb 20 10:55 AM
I can use the Hotspot functionality also.
So is there any reference program which we can use?
‎2017 Feb 21 6:10 AM
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.