Application Development and Automation 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: 
Read only

capture input value of table control using a function code

Former Member
0 Likes
695

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            X

In 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

1 ACCEPTED SOLUTION
Read only

Kiran_Valluru
Active Contributor
0 Likes
576

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

3 REPLIES 3
Read only

Kiran_Valluru
Active Contributor
0 Likes
577

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

Read only

Former Member
0 Likes
576

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

Read only

Former Member
0 Likes
576

Hi Guys Thank for your reply, I have used a push button instead of working on 'Enter' key. thi sresolves my problem

Regards,

Deepak