2010 Mar 25 9:19 AM
Dear All,
How to read multiple rows from the basic list which is displayed using reuse_alv_grid_display, and i need to capture it into another internal table and display it on another screen. If possible plz provide me some sample code.
Thanks in Advance,
2010 Mar 25 9:24 AM
hi,
first of all let me clear, you r displaying ALV Report , and you need to display multiple rows from that which you want to have in another table, so for that r u selecting all those rows or based on which kind of records you want to have from this list?
please clarify it?
Thanks,
Saurin
2010 Mar 25 9:24 AM
hi,
first of all let me clear, you r displaying ALV Report , and you need to display multiple rows from that which you want to have in another table, so for that r u selecting all those rows or based on which kind of records you want to have from this list?
please clarify it?
Thanks,
Saurin
2010 Mar 25 9:50 AM
Let us assume that in the basic list i have 10 records displayed. From that i will select 4 records using check box.Now i need to display these 4 records on the next screen.
2010 Mar 25 10:06 AM
hi,
Suppose i have itab like ..
DATA:BEGIN OF ITAB OCCURS 0,
boxfld type C,
MATNR LIKE A306-MATNR, "MATERIAL NUMBER
MATKL LIKE MARA-MATKL, "Material group
MAKTX LIKE MAKT-MAKTX, "Material Description
ZKBETR LIKE KONP-KBETR,
END OF ITAB.
get one field type C first and than
before using 'REUSE_ALV_GRID_DISPLAY' FM .....
Declare...
DATA WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
Assign...
WA_LAYOUT-BOX_FIELDNAME = 'BOXFLD'.
Call FM...
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_user_command = 'ALV_USER_COMMAND'
is_layout = WA_layout
i_structure_name = 'ITABGRID'
i_save = 'A'
it_events = it_events
it_fieldcat = gt_fieldcat[]
TABLES
t_outtab = ITAB
EXCEPTIONS
program_error = 1
OTHERS = 2.
Put 'ALV_USER_COMMAND' as 'i_callback_user_comman' and create perform with same name..
FORM ALV_USER_COMMAND
USING ucomm TYPE syucomm
selfield TYPE slis_selfield.
BREAK-POINT.
ENDFORM.
Now When you execute report and select multiple rows by pressing CTRL and at last double click via mouse by pressing CTRL Key ,this perform gets triggered and u will find BOXFLD field of ITAB having value 'X' for whichever rows selected.
Please do needful.
Regards,
Saurin Shah
2010 Mar 25 10:09 AM
Hi Jyostna,
after user command Loop the basic list table for those all records r flagged and move those entries into another interna table and
display
Regards,
Rajesh S
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |