10-17-2008 2:56 PM
Hii alll....
I have a prblem in knowing the function code for the DUPLICATE ROWS button on the standard alv grid that is been called using classes ...
the issue is i need to remove that button ....
could any one plzzz help me out in solving this issue ...
thanking you all in advance ..
thanks and regards
chandu reddy
10-17-2008 3:02 PM
Hi,
take a look at this example program BCALV_TEST_TOOLBAR
You have to add the function code to a table that you want to exclude and pass that to the set pf-status command.
types: begin of l_ty_s_excl,
func type syucomm,
end of l_ty_s_excl,
l_ty_t_excl type standard table of l_ty_s_excl.
data: lt_excl type l_ty_t_excl,
ls_excl type l_ty_s_excl.
move '&LOCAL©_ROW' to ls_excl-func.
append lt_excl from ls_excl-func.
set pf-status 'D0100' excluding lt_excl.
regards,
Advait
10-17-2008 3:03 PM
The function codes are available as constant attributes of the ALV classes. An example attribute fcode is CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
Regards,
Steve.
10-17-2008 3:32 PM