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

Query cannot get value in ABAP Editor when WHERE statement parameter started with double zero (00)

0 Likes
600

Dear All,

I have a problem trying to get data with a query when the value of the parameter in the where statement starts with two zero digits (00). However, the query runs normally when the parameter value starts with only one zero digit (0).

Example:

p_invno = '001/SPK/2022'. " this is get 0 result

p_invno = '01/02/SPK/2022'. " this is get 1 result

SELECT * FROM table INTO TABLE lt_tab WHERE invoiceno = p_invno.

Please help and the solution.

Thank You

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
482

The only reason why you don't get the line is that p_invno value is different from invoiceno.

Check value of p_invno in debug, at hexadecimal level to be sure.

Read invoiceno column from table in debug (do a select via a test program), at hexadecimal level to be sure.

And compare.

NB: don't believe what you see in the screens, believe what you see in hexadecimal IN DEBUG.