Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Report

Former Member
0 Likes
648

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,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
602

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

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,

4 REPLIES 4
Read only

Former Member
0 Likes
603

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

Read only

0 Likes
602

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.

Read only

0 Likes
602

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

Read only

former_member632458
Participant
0 Likes
602

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