02-05-2014 6:54 AM
hi,
How can we capture the event on entering something in an input field.
I have seen this in screen painter.Please refer the screen shots.
before
after inputted something in input field
Please let me know how we can achieve this.
Regards
Sreekanth
02-05-2014 7:01 AM
Hi Sreekanth,
It would be better if you elaborate your issue. As of my understanding you rather need to capture an event or recognize that some input is given in input field.
For this you can define the fields in CHAIN and ENDCHAIN. Like as below.
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1>.
ENDCHAIN.
You can also refer to the link below
Input Checks in Dialog Modules (SAP Library - ABAP Programming (BC-ABA))
And regarding your screen shots,
'Get From Directory' is an option to assign the properties to an input field as that are defined in Data dictionary referring through Data Element.
regards,
Vijay
02-05-2014 7:09 AM
hi Vijay,
Thanks for your replay.
Your solution is works only in the case of when my PAI get invoked.
But in my case i am just inputted a letter in an input field, at the same time the screen got refreshed
and the button become active.
pls let me know how can i do this.
02-05-2014 7:23 AM
Hi Sreekanth,
I have doubt, lets say Input Field length is 5. By the time I enter 1 char/num if system takes it as input, then how to take complete input or whether it has to read 5 times?
What is the length of input field??
- Vijay
02-05-2014 7:28 AM
hi vijay,
I don't know how its happens. Better you please observe this in screen painter.
i hope you will consider my request.
Regard
Sreekanth
02-05-2014 7:58 AM
Hi Sreekanth,
If ur input input filed is not initail , then use loop at scrren , and make the field group active = 0.
ex :
if Input_filed is not initial.
loop at screen
if screen-group1 = '001'. " give the screen group for the button which want to be active or in-active
screen-active = 0.
modify-screen.
endif.
endloop.
endif.
Any doubts ???
Regards,
Vijay SR
02-05-2014 8:16 AM
Hi vijay,
Here i did't press any button or menu on screen and not enter Enter key through keyboard.
And my doubt is how the screen got refreshed?
Code behind the button get active and deactivate is might be that you have provided.
But how this code got invoked while i just typing in the input field.
Regards
Sreekanth
02-05-2014 8:35 AM
Hi srikanth,
I doubt whether the screen painter is developed using abap. I guess Screen Painter is a 3rd party windows application integrated into SAP, ie. Just as same way Adobe LiveCylce designer is integrated for creating Adobe forms.
Regards,
Anoop
02-05-2014 8:49 AM
Hi Anoop,
You may right, its look and feel seems so.
Regards
Sreekanth