2006 Jun 26 9:16 AM
Hello,
I use 'REUSE_ALV_GRID_DISPLAY' to display a grid after getting parameters from a selection screen, and it displays everything fine, how do get the screen to respond to standard tick ( green circle with a tick ) in my code?
I know 'REUSE_ALV_GRID_DISPLAY' has i_callback_user_command = 'USER_COMMAND'
But this does not recognise the tick box.
Thanks.
2006 Jun 26 9:20 AM
If the TICK has a user command, then it will respond.
You can to that in the USER COMMAND subroutine.
You can probably try sy-ucomm = 'ENTR'.
Regards,
Ravi
2006 Jun 26 9:20 AM
If the TICK has a user command, then it will respond.
You can to that in the USER COMMAND subroutine.
You can probably try sy-ucomm = 'ENTR'.
Regards,
Ravi
2006 Jun 26 9:22 AM
How do I set the user command, there is not a screen to do this, the function generates the screen, and I use select options on the first screen?
Thanks
2006 Jun 26 9:44 AM
Hi Vijay,
almost there, the bit about the ok code, I can't see in your reply, it seems to have truncated, where do I set the OK_CODE?
Thanks
2006 Jun 26 9:48 AM
hi,
.
Go to SE41 give the Program name SAPLKKBL
and status as STANDARD
now click Copy status (CTRL+F6), now give your Program name , and PF-status and copy it. now save it and activate the pf-satus which you have copied.and add OKCODE TO ENTER BUTTON (GREEN TICK BUTTON) <b>in the FUNCTION KEYS PART you can see the Green Tick button</b> . and use it in your PF-status form.
pass that status using the parameter call back status option.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = g_repid
<b>i_callback_pf_status_set = 'STATUS'</b>
i_callback_user_command = 'USER_COMMAND'
....FORM STATUS USING P_EXTAB TYPE SLIS_T_EXTAB.
*- Pf status
SET PF-STATUS 'STATUS' excluding p_extab.
"this is i copied it from standard program
ENDFORM. " STATUSHope now this is clear..
Regards
vijay
2006 Jun 26 9:53 AM
2006 Jun 26 9:57 AM
Hi,
what I have is below?
Standard Toolbar
OKCODE &F03 &F15 &F12 &RNT %SC %SC+ P-- P- P+ P++ &ELP
Reserved function keys
F4 <..> Possible entries
Shift-F10 <..> Context menu
Recommended function key settings
F2 &IC1 Choose
F9 <..> Select
Shift-F2 <..> Delete
Shift-F4 <..> Save without check
Shift-F5 <..> Other <object>
2006 Jun 26 10:05 AM
Hi,
The First one in Standard tool bar is the One which responds for ENTER(the key borad button).
You can Give anything in OKCODE the same thing you have to check in the user_command form.
Standard Toolbar
<b>ENTR</b> &F03 &F15 &F12 &RNT %SC %SC+ P-- P- P+ P++ &ELP
i hope you gave OKCODE for ENTER,if that is the case then you have to handle the same in user_command form.
case ucomm.
when 'OKCODE'.
"do some thing here..
endcase.Regards
vijay
2006 Jun 26 9:21 AM
hi,
you have to set the pf-status for the green tick button.
say function code for it as 'ENTR'.
now in user_command
handle that..
case r_ucomm.
when 'ENTR'.
ENDCASE.
regards
vijay
2006 Jun 26 9:23 AM
Hi,
steps..
1.
Go to SE41 give the Program name SAPLKKBL
and status as STANDARD
now click Copy status (CTRL+F6), now give your Program name , and PF-status and copy it. now save it and activate the pf-satus which you have copied.and add OKCODE TO ENTER BUTTON (GREEN TICK BUTTON) to it. and use it in your PF-status form.
pass that status using the parameter call back status option.
2. use this..
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = g_repid
i_callback_pf_status_set = 'STATUS'
i_callback_user_command = 'USER_COMMAND'3.
FORM STATUS USING P_EXTAB TYPE SLIS_T_EXTAB.
*- Pf status
SET PF-STATUS 'STATUS' excluding p_extab.
"this is i copied it from standard program
ENDFORM. " STATUS4.
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
case r_ucomm.
when 'ENTR'.
when 'BUTTON'.
"do what ever you want here..
endcase.
ENDFORM. "USER_COMMANDREGARDS
VIJAY
Message was edited by: Vijay Babu Dudla
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |