on 10-16-2018 7:41 AM
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
Hello Annsi,
Please implement the following notes and retest.
2348724
2402671
Best regards,
Diana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.