2008 Feb 21 9:05 AM
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.
2008 Feb 22 2:19 AM
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.
2008 Feb 21 9:48 AM
2008 Feb 21 10:24 AM
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.
2008 Feb 22 2:02 AM
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.
2008 Feb 22 2:19 AM
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.
2008 Feb 22 3:12 AM
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?
2008 Feb 22 3:35 AM
Hi Mil, Yes you can try with Drop Down List Boxes. Please refer to Program: DEMO_DYNPRO_DROPDOWN_LISTBOX
2008 Feb 22 4:05 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |