06-15-2007 9:15 AM
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
06-15-2007 9:17 AM
Hi,
try this
if bukrs is intial.
if EBELN is initial.
message e000 with ' enter ebeln value'
endif.
endif.
regards,
venkatesh
06-15-2007 9:36 AM
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.
06-15-2007 9:38 AM
AT SELECTION-SCREEN.
IF p_ebeln is initial.
message E138(ZCLASS) with 'PO Number is mandatory'.
ENDIF.
Regards
Gopi