Skip to Content
0

Interactive ALV Report

Feb 17, 2017 at 03:45 AM

147

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Raymond Giuseppi Feb 17, 2017 at 07:03 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

0
VINAY REDDY Feb 20, 2017 at 06:52 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 20, 2017 at 10:55 AM
0

I can use the Hotspot functionality also.

So is there any reference program which we can use?

Share
10 |10000 characters needed characters left characters exceeded
VINAY REDDY Feb 21, 2017 at 06:10 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded