Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

can any body tell me how to catch the enter in module pool.

Former Member
0 Kudos

this is my first objet in module pool...

when user provides val in the screen and if he presses enter then i want to diaply other vals in same screen how....please tell me

6 REPLIES 6

Former Member
0 Kudos

create one Pushbutton , when he clicks that button then u can display second screen.

regards

prabhu

0 Kudos

i should no tcreate a button just after preeing enter only i want to display the other details....

Former Member
0 Kudos

in

case sy-ucomm

when ' ' .

Ur code to display data.

endcase.

' ' - for enter key

Former Member
0 Kudos

Hi,

in the PAI, Display your values when SY-UCOMM = SPACE.

There is no specific function code for Enter. Hence use SPACE as SY-UCOMM.

Regards,

Vara

gopi_narendra
Active Contributor
0 Kudos

if u have given any fucnction code for Enter ie the OK_CODE, u need to handle it in the sy-ucomm,

by default the sy-ucomm for enter is ' '(Space).

so now in the user command of PAI.

case sy-ucomm.

when ' '.

" move screen values to table values.

endcase.

and make sure u dont give any Error messages in the user_command

Regards

- Gopi

Former Member
0 Kudos

Hi Kamala,

suppose..two fields are there in screen Material and Material desctiption.

After entering Material if u press enter material description aslo dispaly in the corresponding field.

for this.

PBO.

>>>>>>>>>

PAI.

MODULE get_materail_description.

Mobule Get_materail_descripton.

If sy-ucom is SPACE.

Select Maktx into (screen field) from MAKT.

ENDIF.

END MODULE.

Regards,

Sunil.