‎2009 Feb 10 1:08 PM
Hi Guru,
I am displaying one ALV using class.
I have one INSERT button if user clicks on that it will insert one row.
But when the user press ENTER thro keyboard it sud do some validation.
I tried as sy-ucomm as ENTE, '/00' but its not working.
Cud u pls suggest.
Answer will be highly apperciated.
‎2009 Feb 10 1:19 PM
Hi Sandeep,
'ENTE' is a bc_okcode.
Sy_ucomm's Value for enter is SPACE.
Try using this.It ll work.
Hope it helps!
Much Regards,
Amuktha.
‎2009 Feb 10 1:09 PM
Hi,
Some time the enter sy-ucomm value is different...try out with debugging..
try out this value 'AB' or 'AF' instead of /00
Regards
Kiran
Edited by: Kiran Saka on Feb 10, 2009 2:11 PM
‎2009 Feb 10 1:13 PM
Hi,
try with
if sy-ucomm eq ' '.
message...
endif.
OR
Try with sscrfields structure sy-ucomm.
‎2009 Feb 10 1:16 PM
See what is the problem that when I enter the values then I start debugging. Then I press ENTER.
But it is not going in debugging so I am not able to get the SY-UCOMM.
Is there any event or sth like that.
‎2009 Feb 10 1:21 PM
Hi,
Try with 'ENTR'. This should work. If not put a break point (/H) before pressing enter and then check.
Hope ENTR would work.
Thanks,
Prashanth
‎2009 Feb 10 1:25 PM
Sandeep Wrote:
See what is the problem that when I enter the values then I start debugging. Then I press ENTER.
But it is not going in debugging so I am not able to get the SY-UCOMM.
Is there any event or sth like that.If you put /h in the command line and hit enter, still not go'g.
then define the GUI Status for that sceen and give one one item in the Application Toolbar and for that item write the code for disabling so that it will not show in the output.
with the GUI status the status will be set and it will go to Debugging when you hit the enter for the /h
disabling the PF status code
set pf-status 'STATUS_400' excluding z_dummy_toolbar.its solves your problem
Regards!
Edited by: Prasanth M on Feb 10, 2009 6:59 PM
Edited by: Prasanth M on Feb 10, 2009 7:07 PM
‎2009 Feb 10 1:15 PM
‎2009 Feb 10 1:19 PM
Hi Sandeep,
'ENTE' is a bc_okcode.
Sy_ucomm's Value for enter is SPACE.
Try using this.It ll work.
Hope it helps!
Much Regards,
Amuktha.
‎2009 Feb 10 1:32 PM
DATA:
text(22) TYPE c.
START-OF-SELECTION.
CALL SCREEN 100.
*&---------------------------------------------------------------------*
*& Module STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
SET PF-STATUS 'TEST'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0100 INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN ' '.
IF text IS INITIAL.
MESSAGE 'Enter a value in field' TYPE 'S'.
ENDIF.
CALL SCREEN 100.
WHEN 'ENT'.
WRITE:/ text.
LEAVE TO LIST-PROCESSING.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUTThis will definetly work.
thanks
sarves