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: 

Validate plant

Former Member
0 Kudos
69

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.

1 REPLY 1

Former Member
0 Kudos
35

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.