How to implement user control events in dialog programming?

Question: Hi all, I am new to ABAP, especially dialog programming and want to seek help from all of you.

I have the followings questions:
1. How to enable a textbox after user checked a checkbox?
2. How to load value into a textbox after user input some values in another textbox and press enter/leave the textbox?

Actually, they are correponding to checked change event, leave event of controls in some other programming language like java.

Thanks.

Answer:
Hi ywchan,

For question 1:

U can tie a user-command to the checkbox that u wanna bring up any action. Then u have to LOOP AT SCREEN to control the text box's visiblity
at the event "AT SELECTION-SCREEN OUTPUT".


For question 2:
Load a value into a textbox can be code at "AT SELECTION-SCREEN".

Hope it helps.

Cheers.
Vitamin
Copyright ?2007 - 2008 www.jt77.com