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

Question about field population

Former Member
0 Likes
999

Hi all,

I got 2 fields in my program. I need to know whether is it possible to populate Field B with something if I change the content of Field A instantly, without have to go through any PBO or PAI? Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
971

Hi Mil, As you know ABAP is event driven language. Without trigerring any event i doubt if we can make any changes. Unlike Check Box, Pushbutton, Radio button performing actions w.r.t key stroke on text field is not possible.

Hi all,

I got 2 fields in my program. I need to know whether is it possible to populate Field B with something if I change the content of Field A instantly, without have to go through any PBO or PAI? Thanks in advance.

7 REPLIES 7
Read only

Former Member
0 Likes
971

Hi,

I guess IMPORT and EXPORT can solve your problem.

Read only

Former Member
0 Likes
971

Hi,

after you give the value in FIELDA, save the data into some variables and refresh the screen with the values given already and the value in FIELDB should be assigned accordingly with FIELDA.

this may help you out.

just a thot...but not sure,

regards,

teja.

Read only

0 Likes
971

No, I do not want any interaction at all. refresh, IMPORT or EXPORT needs to have at least some user interaction. I guess it's not possible.

Read only

Former Member
0 Likes
972

Hi Mil, As you know ABAP is event driven language. Without trigerring any event i doubt if we can make any changes. Unlike Check Box, Pushbutton, Radio button performing actions w.r.t key stroke on text field is not possible.

Read only

0 Likes
971

Hi Eswar,

THanks for your help. What if I changed both fields into dropdown list? Can I like select the list in fieldA and change fieldB instantly without any user interaction?

Read only

0 Likes
971

Hi Mil, Yes you can try with Drop Down List Boxes. Please refer to Program: DEMO_DYNPRO_DROPDOWN_LISTBOX

Read only

0 Likes
971

Hi,

u can do this way

suppose A= 10

store the value of A in a temporary vairable say 'temp'

thn check whether the value of is same as temp if not change assign value to B as u want

eg.

if temp <> A.

B = 0.

endif.