Skip to Content
author's profile photo Former Member
Former Member

Line_exists - odd compiler error

I was trying to use line_exists today and ran into an unexpected issue you can see below. When I use line_exists for an if statement expression, it handles the usage correctly. If I try to save the value directly to a boolean variable however, it will fail with the odd "line_exists( expected, not line_exists(" error. Just curious if anybody knew if there was a note out there to address this problem or if this is not allowed usage for line_exists.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 08, 2016 at 08:32 PM

    Hello,

    According to SAP Help, the table expression line_exists is only used to check the existence of the specified row. No temporary result is created.

    I think you can't assign the result to a variable, the result doesn't exist.

    Thanks.

    Abde.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.