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: 

Dynamic Screen on entering something in an input field.

former_member202818
Active Contributor
0 Kudos

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

8 REPLIES 8

VijayaKrishnaG
Active Contributor
0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Hi Anoop,

              You may right, its look and feel seems so.

Regards

Sreekanth