09-25-2007 3:52 AM
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'.
09-25-2007 3:55 AM
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'.
09-25-2007 3:55 AM
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'.
09-25-2007 4:02 AM
Hi,
When i check in debug , still it is displaying the message if val NE 'Y' or 'N'
09-25-2007 4:07 AM
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'.
09-25-2007 4:08 AM
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
09-25-2007 4:11 AM