Skip to Content

Interactive ALV Report

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

alv.png (147.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Feb 17, 2017 at 07: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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 20, 2017 at 06: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 20, 2017 at 10:55 AM

    I can use the Hotspot functionality also.

    So is there any reference program which we can use?

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 21, 2017 at 06: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.

    Add comment
    10|10000 characters needed characters exceeded