‎2006 Feb 24 3:30 PM
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
‎2006 Feb 24 3:46 PM
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
‎2006 Feb 24 3:32 PM
Hi Robby,
Thats one of the thing you can do.Remove the checkbox/pushbutton.
‎2006 Feb 24 3:46 PM
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
‎2006 Feb 24 3:49 PM
‎2006 Feb 24 4:09 PM
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