‎2011 Feb 10 10:13 AM
Dear All,
I am getting the following error in slin:
Error: "Greater than/less than comparisons with character type operands may not be portable"
my code is as follows:
if w_likp-vbeln gt outbo.
outbo = w_likp-vbeln.
endif.
Note: "outbo" also the same type of vbeln.
Can any one help to rectify this issue?.
- Ganesh
‎2011 Feb 10 10:38 AM
Hi,
VBELN is of type character and hence the error in SLIN. You can ignore the error in EPC.
Regards,
Srini.
‎2011 Feb 10 10:39 AM
Hi,
You can hide this with the below statement. also check this OSS notes 353681
"#EC PORTABLE
Regards,
Nagaraj
‎2011 Feb 10 11:33 AM
Don't hide errors, correct them.
Result of GT/LT between character fields depends on code page, which might be different in different systems, thus the message.
If VBELN contains only numbers, consider using two helper fields of a comparable format to get rid of the message.
Also search for further information using this error message, you're not the only one facing such errors.
Finally please use more meaningful subject lines when posting.
Thomas
‎2011 Feb 10 12:30 PM
ignore that citation with '#EC * if you like or correct. GT may not work in all dbms or operating systems.....
SLIN is referring to the GT (greater than). To remove this citation, change GT to >.