‎2007 Jul 25 5:45 PM
hi experts,
i have developed a initial screen as selection screen for table control.
data is displayed in second screen(table control).
<b></b>when user enters inputs in selection screen and presses enter on keyboard
it should execute to second screen. code for enter button. <b></b>
‎2007 Jul 25 5:53 PM
Hi,
goto the PF Status. in that you will have green color button with tick mark.
give the ok code as 'ENTER'.
activate the PF status.
now in user command module,
if sy-ucomm eq 'ENTER'.
<< do your code here>>
endif.
Regards,
Niyaz
‎2007 Jul 25 5:55 PM
Hi,
1.It may be space. In case statments for SY-UCOMM you can write
When Others to handle it.
like,
AT USER-COMMAND
case ucomm.
when 'A'.
when others.
endcase.
2. Else put break point at case statment and execute program and press Enter and see the comm code.
Reward if useful!
‎2007 Jul 25 6:38 PM
Hello,
in the PBO process should you have the next code:
for example:
case sy-ucomm.
when 'ENTER'.
CALL SCREEN 0200. " The second window
when 'SAVE'.
. . .
when ...
endcase.
You should have all conditions in the case statement, otherwise you have a error.
Regards,
‎2007 Jul 25 10:04 PM
Just put the program in debug mode and press the key you want to check, then see what's in SY-UCOMM. That will tell what you want to know.