2009 Jun 08 8:43 AM
Hi All,
I am trying to valiadate the selction screen based on a check box and plant.
1) When ever sent email box is checked then message should be displayed as given below.
first message: 1) Email will be sent only to 3 particular plants only.
2) when ever user want to execute the sent email functionality with 2 plants then below message to be displayed.
sent email option will work with only single plant
would be grateful if someone provide me a best option.
Thanks in advance.
2009 Jun 08 11:58 AM
hi
see this sample code:
report zprem_0001
no standard page heading.
parameters: p_plant1 as checkbox,
p_plant2 as checkbox,
p_plant3 as checkbox.
at selection-screen.
if p_plant1 is initial
and p_plant2 is initial
and p_plant3 is initial.
message e001(00) with 'Email will be sent only to 3 particular plants only'.
else if
p_plant1 is not initial
p_plant2 is initial
and p_plant3 is initial.
message e002(00) with 'email option will work with only single plant '.
endif.