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 mandatory dynamically

Former Member
0 Likes
469

HI,

Can anybody send sample code for following logic?

i am having three fields as select options.

consider

BSART

BUKRS

EBELN

In selection screen if BUKRS is initial, I want to change EBELN as mandatory.

else if BUKRS is not initial, EBELN is not mandatory.

usefulll answers will be rewarded.

Thanks & Regards,

Naveen

3 REPLIES 3
Read only

Former Member
0 Likes
440

Hi,

try this

if bukrs is intial.

if EBELN is initial.

message e000 with ' enter ebeln value'

endif.

endif.

regards,

venkatesh

Read only

Former Member
0 Likes
440

hi,

your test must be in the at selection-screen section.

at selection-screen.

if bukrs is initial and ebeln is initial.

message e000 with 'Enter burkr or ebeln value'

endif.

regards.

Read only

gopi_narendra
Active Contributor
0 Likes
440
AT SELECTION-SCREEN.
  IF p_ebeln is initial.
    message E138(ZCLASS) with 'PO Number is mandatory'.
  ENDIF.

Regards

Gopi