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

Turning off multiple selection when using SAPLSLVC_FULLSCREEN

Former Member
0 Likes
860

Hi,

I'm using a standard SAP ALV screen Function Module 'REUSE_ALV_GRID_DISPLAY'. Also, with this I've a checkbox/pushbuttons to be able to select item. How do I turn off the multiple select capability? Do I have to remove the checkbox/pushbuttons to be able to do this?

Thanks for any information or help.

Rob

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
770

Hi,

if you want to turn of multiple selection then

remove the FUNCTION CODE for SELECT ALL from the application tool bar. if you have box field that you mentioned in layout remove it.

then it will turn off multiple selection.

<b>

set pf-status excluding P_extab. "add SELECT ALAl to P_EXTAB.</b>

Regards

vijay

4 REPLIES 4
Read only

Former Member
0 Likes
770

Hi Robby,

Thats one of the thing you can do.Remove the checkbox/pushbutton.

Read only

Former Member
0 Likes
771

Hi,

if you want to turn of multiple selection then

remove the FUNCTION CODE for SELECT ALL from the application tool bar. if you have box field that you mentioned in layout remove it.

then it will turn off multiple selection.

<b>

set pf-status excluding P_extab. "add SELECT ALAl to P_EXTAB.</b>

Regards

vijay

Read only

0 Likes
770

hi,

you can use "set pf-status excluding 'XXXX'".

Thanks,

Aditya

Read only

Former Member
0 Likes
770

Hi Robby,

May the following will help you:

a) define I_CALLBACK_PF_STATUS_SET

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = G_REPID

<u> I_CALLBACK_PF_STATUS_SET = 'FRM_PF_STATUS_OBJECT'</u>

I_CALLBACK_USER_COMMAND = 'FRM_USER_COMMAND_OBJECT'

I_GRID_TITLE = VTITLE_P1

IS_LAYOUT = WA_LAYOUT

IT_FIELDCAT = ITAB_FLDCAT1

IT_EVENTS = ITAB_EVENTS

I_SAVE = 'U'

IS_VARIANT = VARIANT

TABLES

T_OUTTAB = I_VAR_TAB

EXCEPTIONS

And add a subroutine :

*---Subroutine to handle PF status.

FORM FRM_PF_STATUS_OBJECT USING RT_EXTAB TYPE SLIS_T_EXTAB.

DATA: BEGIN OF STATUS OCCURS 0,

NAME(30) TYPE C,

END OF STATUS.

Status = 'STAND!'.

SET PF-STATUS 'STANDARD1' EXCLUDING STATUS.

ENDFORM. "FRM_PF_STATUS

Regards,

Lanka