Skip to Content
0
Former Member
Jan 10, 2007 at 06:27 AM

Secondary List in REUSE_ALV_GRID_DISPLAY

283 Views

Hi Experts,

I have made an REUSE_ALV_GRID_DISPLAY ALV Report in PP Module..it working fine ...

I want the functionality of secondary list i.e. when i double click on any line on the report it should show the detail list may be in a popup screen.

For reference The report has all the operations in it. If i select any line then i should be able to get the Split Quantities for that particular Operation.

For Ref. i am already having 6 buttons lined up...si i require the popup functionality for making report simpler. Currently if i double click on any line i get a popup which has the details of that particular line itself(i need to replace this).

FORM user_command USING ucomm LIKE sy-ucomm

selfield TYPE slis_selfield .

IF NOT ucomm IS INITIAL.

READ TABLE i_mat INDEX selfield-tabindex.

IF sy-subrc EQ 0.

SET PARAMETER ID 'ANR' FIELD i_mat-aufnr.

SET PARAMETER ID 'MAT' FIELD i_mat-matnr.

SET PARAMETER ID 'WRK' FIELD i_mat-werks.

SET PARAMETER ID 'RES' FIELD i_mat-rsnum.

SET PARAMETER ID 'RCK' FIELD i_mat-rueck.

SET PARAMETER ID 'RZL' FIELD i_mat-rmzhl.

SET PARAMETER ID 'AGR' FIELD i_mat-arbpl.

SET PARAMETER ID 'CAG' FIELD i_mat-plnnr.

ENDIF.

CASE ucomm.

WHEN 'CO02'.

CALL TRANSACTION 'CO02' AND SKIP FIRST SCREEN.

WHEN 'CM01'.

CALL TRANSACTION 'CM01' AND SKIP FIRST SCREEN.

WHEN 'CO13'.

CALL TRANSACTION 'CO13' AND SKIP FIRST SCREEN.

WHEN 'CO14'.

CALL TRANSACTION 'CO14' AND SKIP FIRST SCREEN.

WHEN 'CA03'.

CALL TRANSACTION 'CA03'.

WHEN 'MB23'.

CALL TRANSACTION 'MB23' AND SKIP FIRST SCREEN.

ENDCASE.

ENDIF.

ENDFORM.

Pls let me know if further light is required.

Regards,

Abhishek