Application Development 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: 

function code .

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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&COPY_ROW' to ls_excl-func.
append lt_excl from ls_excl-func.

  set pf-status 'D0100' excluding lt_excl.

regards,

Advait

Former Member
0 Kudos

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.

Former Member
0 Kudos

thanks for the help guys