在select语句中,我给出了正确的条件,但没有得到数据。
当我从se16n尝试这些条件时,它会让我变成一行,但是当我尝试使用select语句的程序时,它会让我变成空的内部表。这是示例代码。
gt_tcurr是一个包含kurst fcurr tcurr gdatu ukurs组件的内部表。
SELECT kurst fcurr tcurr gdatu ukurs
INTO TABLE gt_tcurr
FROM tcurr
WHERE kurst = p_kurst " as M
AND gdatu = p_budat " as 21.09.2011
AND fcurr = p_waers " as EUR
AND tcurr = lv_waers. " as TRY
正如我所说的那样;有了这些条件,se16n-> tcurr表会让我变成一行,但是select语句会把我变成一个空行。有没有人有任何想法?
答案 0 :(得分:0)
CONVERT DATE p_budat INTO INVERTED-DATE gv_date." solution :)
SELECT ukurs
INTO gs_tcurr-ukurs
FROM tcurr
WHERE kurst = p_kurst
AND gdatu = gv_date
AND fcurr = p_waers
AND tcurr = lv_waers.