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: 

RE:DIALOG

Former Member
0 Kudos

Hi,

My Problem is if the VAL = Y also it is going into message , if VAL NE 'Y' or 'N' only it should go into message

WHEN 'ENTR'.

GET CURSOR FIELD FLD VALUE VAL.

IF FLD = ZPACKLISTFLAG AND VAL <> 'Y' OR VAL <> 'N'.

MESSAGE E398(00) WITH 'Please Enter the Y/N for Packing List Flag'.

ELSEIF FLD = ZPROFORMADOFLAG AND VAL <> 'Y' OR VAL <> 'N'.

MESSAGE E398(00) WITH 'Please Enter the Y/N for Proforma/DO Flag'.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I think you need to add '.

check this and see if it works.

WHEN 'ENTR'.

GET CURSOR FIELD FLD VALUE VAL.

IF <b>FLD = 'ZPACKLISTFLAG' </b>AND ( VAL <> 'Y' OR VAL <> 'N' ).

MESSAGE E398(00) WITH 'Please Enter the Y/N for Packing List Flag'.

ELSEIF <b>FLD = 'ZPROFORMADOFLAG' </b>AND ( VAL <> 'Y' OR VAL <> 'N' ).

MESSAGE E398(00) WITH 'Please Enter the Y/N for Proforma/DO Flag'.

5 REPLIES 5

Former Member
0 Kudos

I think you need to add '.

check this and see if it works.

WHEN 'ENTR'.

GET CURSOR FIELD FLD VALUE VAL.

IF <b>FLD = 'ZPACKLISTFLAG' </b>AND ( VAL <> 'Y' OR VAL <> 'N' ).

MESSAGE E398(00) WITH 'Please Enter the Y/N for Packing List Flag'.

ELSEIF <b>FLD = 'ZPROFORMADOFLAG' </b>AND ( VAL <> 'Y' OR VAL <> 'N' ).

MESSAGE E398(00) WITH 'Please Enter the Y/N for Proforma/DO Flag'.

0 Kudos

Hi,

When i check in debug , still it is displaying the message if val NE 'Y' or 'N'

0 Kudos

I am not clear with your requirement but it looks like condition val NE 'Y' or val NE 'N' is creating some problem. May be OR needs to be replaced by AND.

Check this and let me know if we are having same understanding -

WHEN 'ENTR'.

GET CURSOR FIELD FLD VALUE VAL.

IF FLD = 'ZPACKLISTFLAG' AND ( VAL <> 'Y' AND VAL <> 'N' ).

(If FLD value is ZPACKLISTFLAG and VAL is not equal to Y and VAL is not equal to N then display this message)

MESSAGE E398(00) WITH 'Please Enter the Y/N for Packing List Flag'.

ELSEIF FLD = 'ZPROFORMADOFLAG' AND ( VAL <> 'Y' AND VAL <> 'N' ).

(If FLD value is ZPROFORMADOFLAG' and VAL is not equal to Y and VAL is not equal to N then display this message)

MESSAGE E398(00) WITH 'Please Enter the Y/N for Proforma/DO Flag'.

0 Kudos

Hi,

Change like bwlow

WHEN 'ENTR'.

GET CURSOR FIELD FLD VALUE VAL.

IF FLD = ZPACKLISTFLAG AND VAL <> 'Y' <b>AND</b> VAL <> 'N'.

MESSAGE E398(00) WITH 'Please Enter the Y/N for Packing List Flag'.

ELSEIF FLD = ZPROFORMADOFLAG AND VAL <> 'Y' <b>AND</b> VAL <> 'N'.

MESSAGE E398(00) WITH 'Please Enter the Y/N for Proforma/DO Flag'.

Regards,

Atish

0 Kudos

Hi,

Thanks Ashish , problem solved