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

selection-screen

Former Member
0 Likes
755

hi to all experts.

i want given some value at selection-screen field.

while the exection of program default value showing at

selection-screen field .then i want to do this field

in decable mode that cause no budy can change at selection

screen.

thanks in advance and reward also.

regard : deep.

8 REPLIES 8
Read only

Former Member
0 Likes
735

hi,

try like this in pbo module

parameter: p_matnr like mara-matnr default '100-100'.

loop at screen.

if screen-name = 'p_matnr'.

screen-input = 0.

modify screen.

endif.

endloop.

if helpful reward some points.

with regards,

Suresh Aluri.

Read only

Former Member
0 Likes
735

hi deep,

try to to use loop at screen.....endloop.

and in selection screen add modif id....

this will work....

please rewad,

prashant

Read only

former_member196280
Active Contributor
0 Likes
735

LOOP at screen will help you, try to make the screen input false.

Regards,

SaiRam

Read only

vinod_vemuru2
Active Contributor
0 Likes
735

Hi Deep Try like this

PARAMETERS: po_vkorg TYPE vbak-vkorg DEFAULT 'ZDST'.

LOOP AT screen.

IF screen-name = 'PO_VKORG'.

screen input = 0.

exit.

ENDIF.

ENDLOOP.

If it is select option do the same for both LOW and HIGH values.

Thanks,

Vinod.

Read only

0 Likes
735

Sorry forgot to mention MODIFY SCREEN after screen input = 0.

Read only

Former Member
0 Likes
735

Hi,

Screen is a internal table which is used to change the screen attributes dynamically.

screen has a field called input, output, modif id etc.

There is a modif ID provided to each field on the selection-screen.

If you add input eq 0 for a given modif id. The screen field would be grayed out, where you cannot eneter any values.

Regards,

Rama Murthy.P

Read only

Former Member
0 Likes
735

hello deep,

This is the code you need to have in your program.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'MYSELFLD'.

SCREEN-INPUT = 0.

MODIFY-SCREEN.

ENDIF.

ENDLOOP.

regards,

anuj

Read only

Former Member
0 Likes
735

hi,

the up all works which think.

and try this easy for more than one ID

parameter: p_matnr like mara-matnr default '100-100' modif id GD,

p1 type c default 'A' modif id GD.

AT SELECTION-SCREEN OUTPUT.

loop at screen.

if screen-group1 = 'GD'.

screen-input = 0.

modify screen.

endif.

endloop.

regards