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

Error message: types are not compatible

Former Member
0 Likes
2,850

Guys, the coding'd be as blew: and issue an error: The type of "S031~Spmon" or the result type of the function. "S031~Spmon" and the type of "S_ZYEAR" are not compatible for the operation in question.

What should I do?

thanks!

Select - options:
  S_ZYEAR for S031-Spmon.

Select ~
Inner join S031
        on S031~SPMON = @S_ZYEAR.
1 ACCEPTED SOLUTION
Read only

abo
Active Contributor
1,967

"select option" is just a "range", which is a table with a given structure.

You cannot join on a range, only on a database table.

Perhaps you should use:

WHERE spmon in S_ZYEAR
1 REPLY 1
Read only

abo
Active Contributor
1,968

"select option" is just a "range", which is a table with a given structure.

You cannot join on a range, only on a database table.

Perhaps you should use:

WHERE spmon in S_ZYEAR