10-16-2008 9:39 PM
Hello Gurus,
Can you please suggest me the ALV function module to copy the row after alv display.
Ex: I have output
vbeln posnr qntry
xxxxxx xx xx.xx
i want to copy the xxxx row and put it in the next row. I heard there is a ALV Function module to do tht task.
Appreciate your reply
Thanks
Nishanth
Edited by: Nishanth Reedy on Oct 16, 2008 10:40 PM
10-16-2008 10:16 PM
Hi,
Not come across of a Alv FM that will copy the row..
You can use the OO alv to display the ALV with the Edit option set in the layout parameter...Then you can will automatically get the option of the copy button...
Thanks
Naren
10-17-2008 9:22 PM
Naren,
Thanks for the reply- appreciate you.
My requirement was once I got the editable ALV display I need the same row as a second row with same entries which contains the first row.
Ex : ( I will get the output as follows)
title : vbeln posnr Inb_qty
row1 : 0870001 10 5.00
Now I need
title : vbeln posnr Inb_qty
row1 : 0870001 10 5.00
row2 : 0870001 10 5.00
When user click on create or any other button he needs to copy the row1 into row2 ( row2 is copied from row1)
Hope I have given a clear inputs.
I have seen a ALV report BCALV_EDIT_04 , it is almost same but looking for better alternative.
Thanks
Nishanth.
Edited by: Nishanth Reedy on Oct 17, 2008 10:22 PM
10-17-2008 9:26 PM
Naren,
Thanks for the reply- appreciate you.
My requirement was once I got the editable ALV display I need the same row as a second row with same entries which contains the first row.
Ex : lets say-
vbeln ( Inb delivery) = 0870001
posnr ( Item) = 10
Inb-quantity = 5.00
( I will get the output as follows)
title : vbeln posnr Inb_qty
row1 : 0870001 10 5.00
Now I need
title : vbeln posnr Inb_qty
row1 : 0870001 10 5.00
row2 : 0870001 10 5.00
When user click on create or any other button he needs to copy the row1 into row2 ( row2 is copied from row1)
Hope I have given a clear inputs.
I have seen a ALV report BCALV_EDIT_04 , it is almost same but looking for better alternative.
Thanks
Nishanth.
10-17-2008 9:41 PM
Hi,
Well..this may be done using the OO ALV......
Refer to Class cl_gui_alv_grid and the Interfaces given below:
cl_gui_alv_grid=>mc_fc_loc_copy_row.
cl_gui_alv_grid=>mc_fc_loc_delete_row.
cl_gui_alv_grid=>mc_fc_loc_append_row.
cl_gui_alv_grid=>mc_fc_loc_insert_row.
cl_gui_alv_grid=>mc_fc_loc_move_row.
cl_gui_alv_grid=>mc_fc_loc_copy.
cl_gui_alv_grid=>mc_fc_loc_cut.
cl_gui_alv_grid=>mc_fc_loc_paste.
cl_gui_alv_grid=>mc_fc_loc_paste_new_row.
See the Thread
10-20-2008 8:51 PM
Hey Ajay,
Thanks for the info but still I have a issues with it as I got the output using Function module REUSE_ALV_GRID_DISPLAY_LVC . Does it mandatory to use the above function module where I am trying to copy the same row as a second row after output display.Also where should I exactly implement your logic which you have sent me in previous comunication. Sorry for the trouble as I am new to OO concepts in ALV.
Thanks
Nishanth