Skip to Content

Report ME1L dump SAPSQL_PARSE_ERROR

Hi,

We have problem with running report ME1L. When the user has restrictions on plant (WERKS) the user get a runtime error. The error is:

Category ABAP programming error

Runtime Errors SAPSQL_PARSE_ERROR

Except. CX_SY_DYNAMIC_OSQL_SYNTAX

ABAP Program SAPDBIFM

Error analysis:

An exception has occurred which is explained in more detail below. The exception is assigned to class 'CX_SY_DYNAMIC_OSQL_SYNTAX' and was not caught in procedure "PUT_EINE" "(FORM)", nor was it propagated by a RAISING clause. Since the caller of the procedure could not have anticipated this exception, the current program was terminated. The reason for the exception is: The current ABAP program attempted to execute an Open SQL statement containing a dynamic entry. The parser returned the following error: ""~" is invalid here (due to grammar). contains an invalid character or it is a"

I can see when I debugg that when the authorization is checked an internal table, called LT_WHERE_TAB, is filled with value

Row 1: ( ~WERKS = '' OR ( ( WERKS = 'Z' OR WERKS = '2030' OR WERKS = '2020' )

Row 2: ) )


If the user don't have restrictions on plant, it works.


I suspect that the ~ sign is the trouble. Anyone who knows how to solv the problem.

Best Regards

Annsi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 18, 2018 at 05:03 AM

    Hello Annsi,

    Please implement the following notes and retest.

    2348724

    2402671

    Best regards,

    Diana

    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.