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

parameter field for input and for display

Former Member
0 Likes
1,092

i have 2 fields here,

p_1 and p_2, for input and for display, respectively.

now when i put value in p_1, and press enter the value corresponding to that should be displayed in p_2.

any idea?

thanks, aud...

i have 2 fields here,

p_1 and p_2, for input and for display, respectively.

now when i put value in p_1, and press enter the value corresponding to that should be displayed in p_2.

any idea?

thanks, aud...

5 REPLIES 5
Read only

Former Member
0 Likes
909

Heys ,

I hope p1 and p2 are parameters.

You can achieve this

selection screen output.

loop at screen

if screen-name = p1.

p2 = p1.

modify screen

endif.

endloop.

Regards,

Uma Dave

Read only

MarcinPciak
Active Contributor
0 Likes
909

Sounds like there is some catch behind it you didn't tell us about If not I think all you need is


PARAMETERS: pa1(4) TYPE c,
            pa2(4) TYPE c.

AT SELECTION-SCREEN.
  pa2 = pa1.

Regards

Marcin

Read only

Former Member
0 Likes
909

Hi,,

Follow the procedure, u can get..

parameters : p1(4) type c .

parameters : p2(4) type c.

at selection-screen output.

loop at screen.

if p1 is not initial.

p2 = p1.

clear p1.

modify screen.

endif.

endloop.

Read only

Former Member
0 Likes
909

Hi..

Try using this code..This will copy the value in parameter P1 to P2 and make it input disabled as well.


PARAMETERS : p1 TYPE char2 ,
             p2 TYPE char2 MODIF ID mi1.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF p1 IS NOT INITIAL.
      p2 = p1.
      CLEAR p1.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

  LOOP AT SCREEN.
    IF p1 IS INITIAL AND p2 IS NOT INITIAL.
      IF screen-group1 = 'MI1'.
        screen-active = '1'.
        screen-input = 'X'.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.

Regards,

Karthik

Read only

ThomasZloch
Active Contributor
0 Likes
909

Too basic, please invest a minimum of own research before posting.

Thread locked.

Thomas