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 Copy FUnction

Former Member
0 Likes
747

Hi Forum,

I need a code for copy function in ALV to copy a row to another row suing OOPS functionality

Regards

Lovleen

3 REPLIES 3
Read only

faisalatsap
Active Contributor
0 Likes
572

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

Read only

MarcinPciak
Active Contributor
0 Likes
572

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

Read only

Former Member
0 Likes
572

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