‎2010 Nov 30 6:52 AM
Hi Forum,
I need a code for copy function in ALV to copy a row to another row suing OOPS functionality
Regards
Lovleen
‎2010 Nov 30 8:00 AM
Hi, llovleen
Welcome to SCN
What is your Requirement Please explain in details, I think your question is not explaining your requirements clearly, your subject line is also not more meaningful.
Thanks and Regards,
Faisal
‎2010 Nov 30 8:18 AM
Well, you can reuse existing functionality which ALV offers by standard (using copy row function)
MODULE pai_0100 INPUT.
DATA l_save_ok TYPE sy-ucomm.
DATA l_fcode type sy-ucomm.
l_save_ok = ok_code.
CLEAR ok_code.
if l_save_ok = 'FCODE'. "your function code
"trigger copy row function
l_fcode = cl_gui_alv_grid=>MC_FC_LOC_COPY_ROW.
r_alv->set_function_code( CHANGING c_ucomm = l_fcode ).
endif.
ENDMODULE.
Remeber that ALV must be editable.
Regards
Marcin
‎2010 Dec 01 5:27 AM
Hi Forum,
Case :-
I have a list of data in an ALV,
Requirement : -
When i click on Copy button on ALV Toolbar - The Row that i have selected for copy should come in another ALV Popup.
with source row and as well as target row. so two rows should come in ALV Popup (copy from row and copy to row).
Thankls