Application Development and Automation 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: 
Read only

Slin Error

Former Member
0 Likes
669

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

4 REPLIES 4
Read only

Former Member
0 Likes
635

Hi,

VBELN is of type character and hence the error in SLIN. You can ignore the error in EPC.

Regards,

Srini.

Read only

former_member404244
Active Contributor
0 Likes
635

Hi,

You can hide this with the below statement. also check this OSS notes 353681

"#EC PORTABLE

Regards,

Nagaraj

Read only

ThomasZloch
Active Contributor
0 Likes
635

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

Read only

Former Member
0 Likes
635

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 >.