‎2022 Mar 17 2:27 PM
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
‎2022 Mar 17 7:02 PM
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.