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

Making field obligatory(conditional)

Former Member
0 Likes
1,403

hi all,

i neeed to make on field mandatory dependending on

weather a check bbox is checked.

4 REPLIES 4
Read only

Former Member
0 Likes
913

I think you have to handle this thru Error message .

If Check box is checked .

then check for the field which u need mandatory .

IF Initial then throw an error message and set the curson on the field.

otherwise make to diff screen which can be operated(hide and unhide) depends upon u r check box value.

Rewards if u find useful.

Read only

Former Member
0 Likes
913

Loop at screen.

if p_chk = 'X'.

if screen-name = 'P_PERNR'.

screen-required = 'X'.

modify screen.

endif.

endif.

endloop.

Read only

S0025444845
Active Participant
0 Likes
913

Hi,

you can do it in event.

at selection-screen output.

loop at screen.

check if checbox is checked or not and then depending upon that.

IF screen-name = '<fieldname in caps>'.

screen-required = 1.

MODIFY SCREEN.

ENDIF.

regards,

sudha

Read only

Former Member
0 Likes
913

Hi,

Use below code.

parameters: p_check as checkbox,

p_name(20), P_name1(30).

at selection-screen output.

loop at screen.

if p_check = 'X'.

if screen-name = 'P_NAME'.

screen-required = '1'.

endif.

endif.

modify screen.

endloop.