2013 May 08 2:20 PM
<Subject line changed>
Hi experts,
I have a simple question ...
There are two fields on screen. Some calculations are made while pressing enter on both field. I can press enter only on first field.
How to trigger pressing enter event on second field (from code) ?
thanks in advance.
Moderator Message - Please use informative subject line for your question.
Message was edited by: Suhas Saha
2013 May 09 7:28 AM
try to use
CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'
by passing function code of enter '/00'
<Subject line changed>
Hi experts,
I have a simple question ...
There are two fields on screen. Some calculations are made while pressing enter on both field. I can press enter only on first field.
How to trigger pressing enter event on second field (from code) ?
thanks in advance.
Moderator Message - Please use informative subject line for your question.
Message was edited by: Suhas Saha
2013 May 08 2:29 PM
Hi Daniel,
It depends where you are webdynpro, module pool or report.
But if you're in a Z report, you can set the "AT SELECTION-SCREEN ON myfield" event.
Best regards,
Jonathan
2013 May 09 6:49 AM
I forgot about details.
This case concern VA02 transaction. When user change delivery date it trigger userexit_move_field_to_vbak. It influences on the data on sales order items. After that I want to save SO. But data related to items will not be saved, because user didn't press enter on items area .
When user press enter there will be triggered some specific PAI, modules .etc and after that data will be saved and this is OK. But like I said before I want to avoid of pressing enter in items area - just save data...
thanks again.
2013 May 08 2:39 PM
PARAMETER : p_par1 type ebeln,
p_par2 type ebelp.
AT SELECTION-SCREEN on p_par1.
if p_par1 is INITIAL.
MESSAGE i208(00) WITH 'Enter value for par1. '.
endif.
AT SELECTION-SCREEN on p_par2.
if p_par2 is INITIAL.
MESSAGE i208(00) WITH 'Enter value for par2. '.
endif.
2013 May 09 7:28 AM
try to use
CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'
by passing function code of enter '/00'
2013 May 09 8:02 AM
2013 May 09 8:15 AM
Hi,
you can try below two methods,
1) *---------- after modification pressing enter
call method gr_grid->register_edit_event
exporting
i_event_id = cl_gui_alv_grid=>mc_evt_enter
exceptions
error = 1
others = 2.
2) ** after modification, "moving to next cell
call method gr_grid->register_edit_event
exporting
i_event_id = cl_gui_alv_grid=>mc_evt_modified
exceptions
error = 1
others = 2.
regards
2013 May 14 6:58 AM
Hi,
finally there was no need to program enter code.
But FM above seem to working fine.
thanks for help
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |