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

Module pool programming

Former Member
0 Likes
558

Hi,

In Module pool,

I am creating a screen with 4 input fields

how can i display the field value in a particular label (Text field) automatically when i enter some input in the selection.

<LOCKED BY MODERATOR - USE APPROPRIATE TITLES>

Edited by: Alvaro Tejada Galindo on Dec 28, 2009 2:35 PM

4 REPLIES 4
Read only

Former Member
0 Likes
529

Hi,

That does not happen automatically. We have to write special / small code for that.

One option is to write it in the PBO section wherein we can write the SELECT statement

to fetch the corresponding text.

So that everytime select does not happen, we can check if the value in the field has not changed since the last value (last PBO), then the select query can fire.

Regards,

Amit Mittal.

Read only

Former Member
0 Likes
529

Please use a meaningful subject line and search in SCN before posting. You will have to code your logic to fetch the text in the PBO of the particular screen

Read only

Former Member
0 Likes
529

Hi,

Plz chk this..

Read only

sridhar_meesala
Active Contributor
0 Likes
529

Hi,

You cannot do it with lables. You take input fields and make them output only in the attributes window. Now make them invisible initially in the PBO of the screen. After that you can display your message in those output only fields for the corresponding input fields.

Sample code to make the field invisible is:

LOOP AT SCREEN.
    IF screen-name = 'field1'.
      screen-invisible = 1.
      MODIFY SCREEN.
    ENDIF.
    IF screen-name = 'field2'.
      screen-invisible = 1.
      MODIFY SCREEN.
    ENDIF.
    IF screen-name = 'field3'.
      screen-invisible = 1.
      MODIFY SCREEN.
    ENDIF.
ENDLOOP.

Or else you can group all the four fields and

LOOP AT SCREEN.
    IF screen-group1 = 'group1'.
      screen-invisible = 1.
      MODIFY SCREEN.
   ENDIF.
ENDLOOP.

Thanks,

Sri.