‎2011 May 03 7:35 AM
Hi ABAPers,
I have a requirement where ion i have to capture the inout entered in the table control and enter it into a internal table.
I have one input field outside table control :
werks : AB01
desciption: xyz store
table control:
vendor desc mon tue wed thu fri sat
101 a1 agency X X
102 a2 agency X XIn above WERKS and VENDOR are input fields X are check boxes.
Now the problem is both input fileds(WERKS & VENDOR ) are getting trggered ( sy-ucomm = 'ENTE' ) when I pres enter . Can I give a different function codes for table controll and one for outside table control.
My program type is executable program and not type M.
Regards,
DEP
‎2011 May 03 10:47 AM
Hi,
I think that u wrote code for both werks and vendor for sy-ucomm = 'ENTE'. and dont use sy-ucomm directly., instead do like this..
data ok_code type sy-ucomm.
ok_code = syucomm.
case ok_code.
when ......
then clear ok_code.
And.., Yes u can assign different function codes to werks and vendor.
hope this helps u.,
Thanks & Regards
Kiran
‎2011 May 03 10:47 AM
Hi,
I think that u wrote code for both werks and vendor for sy-ucomm = 'ENTE'. and dont use sy-ucomm directly., instead do like this..
data ok_code type sy-ucomm.
ok_code = syucomm.
case ok_code.
when ......
then clear ok_code.
And.., Yes u can assign different function codes to werks and vendor.
hope this helps u.,
Thanks & Regards
Kiran
‎2011 May 05 6:16 AM
HI,
I think this is ur requirement. Apply the below logic in the PAI
FIELD werks MODULE check_werks on request. " Write code in this module
FIELD description MODULE check_description on request. " Write code in this module
These two module will be trigerred only when u change the data in the two fields.
Regards,
Madhukar Shetty
‎2011 May 05 10:41 AM
Hi Guys Thank for your reply, I have used a push button instead of working on 'Enter' key. thi sresolves my problem
Regards,
Deepak