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 input disbled

Former Member
0 Likes
547

Hi

i have a parameter p1 and i want to set the default value as abc and input disabled

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
467

Please try this.



report zrich_0001.



parameters: p_abc(3) type c default 'ABC'.


at selection-screen output.

  loop at screen.
    if screen-name = 'P_ABC'.
      screen-input = '0'.
      modify screen.
    endif.
  endloop.

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
468

Please try this.



report zrich_0001.



parameters: p_abc(3) type c default 'ABC'.


at selection-screen output.

  loop at screen.
    if screen-name = 'P_ABC'.
      screen-input = '0'.
      modify screen.
    endif.
  endloop.

Regards,

Rich Heilman

Read only

ibrahim_u
Active Participant
0 Likes
467

parameters : p1(3) default 'abc' no-display.

or


parameters : p1(3) default 'abc' modif id AAA.

at selection-screen output.
  loop at screen.
    if screen-group1 eq 'AAA'.
      screen-input = 0.
      modify screen.
    endif.
  endloop.

Read only

Former Member
0 Likes
467

hi kiran,

parameter: p1 like <table-field> default 'abc'.

at selection-screen.

loop at screen.

if screen-field = 'p1'.

screen-input = '1'.

modify screen.

endif.

endloop.