Skip to Content
0
Mar 10, 2009 at 11:52 AM

UI Programming

27 Views

Please use more informative subject in future.

Hi Every one,

I have a screen with two input fields "from" and "to", one push button, and three output only fields.

The two input fields has drop down list.

My requirement is that, when I fill the from and to fields using the drop down list and click on the push button then it should validate both the fildes and display the corresponding data in the output only fields.

I have written the following code in the PAI module but its not working.

In PAI:

CASE sy-ucomm.

WHEN 'push button'.

IF from = to.

ERR MSG.

ELSEIF from = 'a' AND to = 'b'.

o/p field 1 = 'x'.

o/p field 2 = 'y'.

o/p field 3 = 'z'.

ENDIF.

ENDCASE.

Please suggest me a solution.

thanks,

sri.

Edited by: Matt on Mar 12, 2009 10:58 AM