Application Development 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: 

Making field mandatory dynamically

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

try this

if bukrs is intial.

if EBELN is initial.

message e000 with ' enter ebeln value'

endif.

endif.

regards,

venkatesh

Former Member
0 Kudos

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.

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

Regards

Gopi